Midterm 2 Flashcards

1
Q

Library containing text setting commands (width, precision, etc.)

A

include

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

Command to set fixed notation

A

cout.set(ios::fixed);

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

Command to set scientific notation

A

cout.set(ios::scientific);

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

Command to set precision

A

cout.precision(6);

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

In-line command to set fixed notation

A

cout &laquo_space;fixed «

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

In-line command to set scientific notation

A

cout &laquo_space;scientific «

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

In-line command to set precision

A

cout &laquo_space;setprecision(6) «

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

In-line command to set width

A

cout &laquo_space;setw(6) «

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

Function parameter

A

In function definition

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

Function argument

A

In function call

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

ASCII code for space

A

32

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

ASCII code for 0

A

48

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

ASCII code for A

A

65

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

ASCII code for a

A

97

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

Command to stop fixed notation

A

cout.unsetf(ios::fixed);

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

What to do if you want 6 after the decimal?

A

Include cout.unset(ios::fixed); or in-line fixed

17
Q

What to do if you want 6 sig figs?

A

Do not include fixed, or do cout.unset(ios::fixed);