Ch. 2.2: The cout Object Flashcards

1
Q

cout means what?

A

console out, (print out to console)

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

What is a stream object?

A

Means it works with a stream of data to print a message on the screen.

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

What is a stream insertion operator?

A

When the &laquo_space;operator symbol is used to send a string out to the console pointing to cout. Can be used to send more than one item to cout.

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

What does endl mean?

A

It is a stream manipulator used to instruct cout to use a new line.

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

What is an escape sequence?

A

Allows you to control the way the output is displayed by embedding commands within the string itself.

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

What is a newline escape sequence?

A

\n is interpreted as a special command to advance the output cursor to the next line.

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

What is a horizontal tab escape sequence?

A

\t causes cursor to skip to next tab.

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

What is an alarm escape sequence?

A

\a causes the computer to beep.

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

What is a backspace escape sequence?

A

\b causes the cursor to back up or move left one position.

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

What is the return escape sequence?

A

\r causes the cursor to go to the beginning of the current line, not the next line.

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

What is a backslash escape sequence?

A

\ causes a backslash to be printed.

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

What is a single quote escape sequence?

A

' causes a single quotation mark to be printed.

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

What is a double quote escape sequence?

A

" Causes a double quotation mark to be printed.

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