Week 9 Quiz
Sign in to Google to save your progress. Learn more
The data type for character is similar to that of integer in several ways. Is it possible to use various comparison operators on char values (e.g. 'a' > 'C' )?
Clear selection
By using the ASCII table, we can search for the integer equivalent for some char value.  What are the integer equivalents for char values 'a' and 'A', respectively?
Clear selection
One way that we have learnt to scan user inputs is to use the scanf function. What is another function we can use to scan for a character input?
Clear selection
Numbers ( '0' - '9' ) are also valid character values. What would be the result of integer 5 + character '2' ?
Note that all the answers refer to integer values
Clear selection
ctype.h offers a list of functions that can be used on a character. What function can be used to check if a character is a upper case letter?
Clear selection
John has typed "apple" and pressed the enter key for inputting a string into a program through the fgets function. What would be the size of the character array required to hold the string in this scenario?
Clear selection
A string can be considered as an array of characters. Is it possible to initialise the string (just like an integer array of any dimensions)? If so, how should the initialisation be done?
Assume the character array declared here is called arr, with a constant SIZE defined as 10 .
Clear selection
While characters have "ctype.h", strings have "string.h" for various functions. What function can be use to find the occurrence of a constant string in a character array?
Clear selection
When looking through the functions offered by "string.h", you might find that there are often two variants for one purpose (such as strcpy and strncpy). What is the key difference between the two variants?
Clear selection
In the past few weeks, we have looked at how to use different data types on different types of operations. Which of the following is not applicable for a string?
Clear selection
Next
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy

Does this form look suspicious? Report