Chapter 3 Checkpoint Questions Flashcards

1
Q

What header file must be included in programs using cin?

A

iostream

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

T/F: cin requires the user to press the [Enter] key when finished entering data.

A

True

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

Assume value is an integer variable. If the user enters 3.14 in response to the following programming statement, what will be stored in value?
cin&raquo_space; value;

A

3

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

A program has the following variable definitions.
long miles;
int feet;
float inches;

A

cin&raquo_space; miles&raquo_space; feet&raquo_space; inches;

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