CH8/CH9 Test Flashcards
A(n) ________ can be used in a scanf conversion specifier to indicate that a specific number of characters or digits should be read from the input stream.
field width
The field width and precision in a printf conversion specifier can be controlled with integer expressions by substituting a(n) __ for the field width or for the precision and placing an integer expression in the corresponding argument of the argument list.
asterisk
All input and output is dealt with in the form of __
streams
The __ stream is normally connected to the keyboard *****
standard input
The __ stream is normally connected to the computer screen.
standard output
Precise output formatting is accomplished with the __ function.
printf
The format control string may contain __, __, __, __ and __.
flags, field widths, precisions, conversion specifiers and literal characters.
The conversion specifier __ or __ may be used to output a signed decimal integer
d or i
The conversion specifiers __, __ and __ are used to display unsigned integers in octal, decimal and hexadecimal form, respectively.
o, u and x
The modifiers __ and __ are placed before the integer conversion specifiers
to indicate that short or long integer values are to be displayed.
H and L
The conversion specifier __ is used to display a floating-point value in exponential notation ***
%e
The modifier __ is placed before any floating-point conversion specifier to indicate
that a long double value is to be displayed
L
The conversion specifiers e, E and f are displayed with __ digits of precision to the right of the decimal point if no precision is specified.
6
The conversion specifiers __ and __ are used to print strings and characters, respectively.
s and c
All strings end in the __ character
null
The __ flag causes output to be left justified in a field.
- (minus)
The __flag causes values to be displayed with either a plus sign or a minus sign.
+ (plus)
Precise input formatting is accomplished with the __function
scanf
A(n) __ is used to scan a string for specific characters and store the characters in
an array.
scan set
The conversion specifier __ can be used to input optionally signed octal, decimal
and hexadecimal integers.
%i
The conversion __ specifiers can be used to input a double value
%lf
The __ is used to read data from the input stream and discard it without assigning
it to a variable.
assignment suppression character
A(n) __ can be used in a scanf conversion specifier to indicate that a specific
number of characters or digits should be read from the input stream.
field width
in c it is appropriate to say that a string is a __.
pointer
which character ha dling library function converts lowercase letters to uppercase letters
toupper
function __ inputs the next character from the standard input and returns it as an integer
getchar
what is the output of the following statement
printf(“%s”, strspn(“Cows like to moo.”,”Ceiklosw”);
10