Font size
WorksheetsRecap Chapter 6, 7, 8
Total questions: 11
Worksheet time: 27mins
Best type of repetition control structures to be used to make a menu item?
While loop
If ...else
Do...while loop
For loop
Display array according to the boxes for the statement below.
char string2[] = "Wonderful";
(a)
Which one of the syntax can read C-string with whitespaces?
cin.getline(arrayName, size);
getline(cin, variableName);
cin >> VariableName;
All of the above
Please write the output for the code based on the picture.
(a)
Header file that used for character testing function.
Example: isupper, islower, isalpha
(a)
What type of dataType that can be used in array?
int & string
char & string
int & double
All kind of dataType
Please write the output for the program as shown in the picture.
Does the output for the program code for best1 and best2 will be the same?
Same
Different
Error
None of the answer
Does array definition below is valid or invalid?
const int VALUES = 7;
int days[VALUES];
Valid
Invalid
Please read and analyze the program code carefully. You can either use Microsoft Visual Studio to run your code or just analyze the program code based on the picture. Please state the output of the program.
Write a simple code to make a character conversion from lowercase sentence into uppercase sentence.
