CS 230 QUIZZES
40+ (Latest 2025-2026 Edition) 100% Verified Q&A + Answer Key Solutions
Question 1
Conversion specifier c requires a(n) __________ argument.
Correct!
char
Question 2
A printf format control string must be enclosed in
Correct!
double quotes
Question 3
A floating-point value always contains a __________.
Correct!
decimal point
Question 4
What does the \\ do when used in a format control string?
Correct!
It outputs the backslash character
Question 5
Which of the following is the correct way to output the value of 4 left justified?
Correct!
printf( "%-i", 4 );
, Question 6
If the field width is larger than the data being printed, the data will normally be __________ within that field.
Correct!
right justified
Question 7
Values printed with the conversion specifiers e, E and f are output with __________ digits of precision to the right
Correct!
of the decimal point by default.
6
Question 8
Which is not an input formatting capability of scanf?
Correct!
replacing specific characters in the input stream
Question 9
The ________ character reads data from the input stream and discards the data.
Correct!
assignment suppression
Question 10
Which statement is false with regard to format control string flags?
Correct!
To use a flag in a format control string, place the flag immediately to the left of the percent sign.
40+ (Latest 2025-2026 Edition) 100% Verified Q&A + Answer Key Solutions
Question 1
Conversion specifier c requires a(n) __________ argument.
Correct!
char
Question 2
A printf format control string must be enclosed in
Correct!
double quotes
Question 3
A floating-point value always contains a __________.
Correct!
decimal point
Question 4
What does the \\ do when used in a format control string?
Correct!
It outputs the backslash character
Question 5
Which of the following is the correct way to output the value of 4 left justified?
Correct!
printf( "%-i", 4 );
, Question 6
If the field width is larger than the data being printed, the data will normally be __________ within that field.
Correct!
right justified
Question 7
Values printed with the conversion specifiers e, E and f are output with __________ digits of precision to the right
Correct!
of the decimal point by default.
6
Question 8
Which is not an input formatting capability of scanf?
Correct!
replacing specific characters in the input stream
Question 9
The ________ character reads data from the input stream and discards the data.
Correct!
assignment suppression
Question 10
Which statement is false with regard to format control string flags?
Correct!
To use a flag in a format control string, place the flag immediately to the left of the percent sign.