M4S1 Flashcards

1
Q

In C++, input and output (I/O) operators are used to X

A

take input

and display output.

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

The operator used for taking the input is

known as the X or get from operator (»)

A

extraction

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

the
operator used for displaying the output is known as the
X or put to operator (

A

insertion

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

The standard C++ library includes the header file X,
where the standard input and output stream objects are
declared.

A

iostream

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

is commonly known as the output

operator

A

Insertion operator (

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

The standard output by default is the screen, and the C++ stream
object defined to access it is

A

cout.

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

Multiple insertion operations (

A

chained in a single

statement

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

a new-line

character can be specified as X

A

\n

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

X are used
to represent certain special
characters within string literals and
character literals

A

Escape codes/sequences

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

X is commonly

known as the input operator.

A

Extraction operator (»)

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

The standard input by default is the
keyboard, and the C++ stream object
defined to access it is X

A

cin

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

is a standard library
function in C++ and is used to
read a string or a line from input
stream.

A

getline()

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

is a standard library function in C++ and is used

to read a string or a line from input stream

A

getline()

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