Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WEEK 11 KAHOOT QUESTIONS AND ANSWERS
- 1) What is a string?
- - An array of characters
- 2) Which of the following is a correct declaration of a CHARACTER variable?
- - char var1 = 'a';
- 3) What chart contains all of character symbols that your computer can process?
- - ASCII and Unicode
- 4) What is an input buffer?
- - A data location for incoming input before it is processed
- 5) Which of the following is a legal character function?
- - isalpha(character);
- 6) Which character function tests if the character is uppercase?
- - isupper(character);
- 7) All strings ends with a "\n" character.
- - False
- 8) Which of the following are legal string declarations?
- - char aString[] = "string";
- 9) What is the difference between a string and an array of characters?
- - The null (\0) character
- 10) Are these strings the same? char anAry[] = "This is a string"; AND char* anAryPtr = "This is a string";
- - True
- 11) Which of the two functions will return the total size of the string (including the null character)?
- - sizeof(string);
- 12) What library do we need to include to use strings/string functions?
- - #include <string.h>
- 13) What library do we need to include to use character functions?
- - #include <ctype.h>
- 14) Which of the two functions will return the length of the string not including the "\0"?
- - strlen(string);
- 15) What format specifier in printf() is used to print strings?
- - %s
Advertisement
Add Comment
Please, Sign In to add comment