Basic Input/Output Study Guide Flashcards
1
Q
What is this operator called «, and what statement do we use it with?
A
insertion operator, cout
2
Q
What is this operator called»_space;, and what statement do we use with it?
A
cin, extraction operator
3
Q
In the statement:
cout «_space;“Hello you entered: “ «_space;someInt;
What is “Hello you entered!” What is someInt?
A
literal constant of type c-string
variable
4
Q
How would you output a single quote?
A
” ' “ (don’t need spaces)
5
Q
val = 341.2576
cout «_space;setprecision (3) «_space;val;
A
341
6
Q
val = 341.2576
cout «_space;setprecision (3) «_space;fixed «_space;val;
A
341.258
7
Q
val2 = 32
cout «_space;setprecision (3) «_space;showpoint «_space;val2;
A
32.0