Chapter 3 Flashcards

1
Q

Bytes are usually characters…

A

unless the program requires other information.

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

What is stream?

A

It is a sequence of characters (or bytes) from source to destination.

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

What is the input stream?

A

It is a sequence of characters that (or bytes) from an input device to a computer

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

What is an output stream?

A

It is a sequence of characters (or bytes) from the computer to the output device.

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

What is the iostream file used for?

A

It is a preprocessor that receives data from the keyboard and send the output to the screen.

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

What is intream?

A

input stream

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

What is ostream?

A

Output stream

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

What is cin?

A

Command that stands for common input.

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

What is cout?

A

Stands for common output.

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

What is the&raquo_space; command?

A

It is an Extraction operator that skips all whitespace and blanks and certain non printable characters.

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

For data input what would be accepted for char?

A

One printable character except the blank.

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

For data input what would be acceptable for int?

A

An integer, possibly preceded by a + or a - sign.

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

For data input what would be acceptable for double?

A

A decimal number, possibly preceded by a + or a - sign. The input is converted to a decimal number with the decimal part equal to 0.

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

What is a function(subprogram)?

A

It is a set of instructions.

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