Basic Input/Output Study Guide Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is this operator called «, and what statement do we use it with?

A

insertion operator, cout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is this operator called&raquo_space;, and what statement do we use with it?

A

cin, extraction operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In the statement:
cout &laquo_space;“Hello you entered: “ &laquo_space;someInt;
What is “Hello you entered!” What is someInt?

A

literal constant of type c-string

variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How would you output a single quote?

A

” ' “ (don’t need spaces)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

val = 341.2576

cout &laquo_space;setprecision (3) &laquo_space;val;

A

341

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

val = 341.2576

cout &laquo_space;setprecision (3) &laquo_space;fixed &laquo_space;val;

A

341.258

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

val2 = 32

cout &laquo_space;setprecision (3) &laquo_space;showpoint &laquo_space;val2;

A

32.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly