Deck 3: Inputoutput

Full screen (f)
exit full mode
Question
An expression such as pow(2,3) is called a(n) ____________________.
Use Space or
up arrow
down arrow
to flip the card.
Question
Which header file contains the sqrt function?
Question
What is the syntax of the ignore function?
Question
The get function presented in this chapter only reads values of type ____________________.
Question
Write a statement to format the output of decimal numbers to two decimal places.
Question
To force the output to show the decimal point and trailing zeros of a decimal number, use the ____________________ manipulator.
Question
The setw manipulator cannot use a string as an argument.
Question
The header file ____________________ needs to be included to use the setw function.
Question
Define a file.
Question
File stream variables are predefined in the fstream header file and associated with input/output sources.
Question
The stream member function ____________________ is used to open files.
Question
Write a statement that closes the file stream outData.
Question
What does these terms refer to:

- \gg Arguments (parameters):
Question
What does these terms refer to:

- \gg Common input:
Question
What does these terms refer to:

- \gg Common output:
Question
What does these terms refer to:

- \gg Dot notation:
Question
What does these terms refer to:

- \gg Fail state:
Question
What does these terms refer to:

- \gg File:
Question
What does these terms refer to:

- \gg File stream variables:
Question
What does these terms refer to:

- \gg Function call:
Question
What does these terms refer to:

- \gg Input failure:
Question
What does these terms refer to:

- \gg Input stream:
Question
What does these terms refer to:

- \gg Input stream variables:
Question
What does these terms refer to:

- \gg istream member functions:
Question
What does these terms refer to:

- \gg Member access operator:
Question
What does these terms refer to:

- \gg Opening a file:
Question
What does these terms refer to:

- \gg Output stream:
Question
What does these terms refer to:

- \gg Output stream variables:
Question
What does these terms refer to:

- \gg Parameterized stream manipulators:
Question
What does these terms refer to:

- \gg Predefined functions:
Question
What does these terms refer to:

- \gg Stream:
Question
What does these terms refer to:

- \gg Stream member functions (stream functions):
Question
What does these terms refer to:

- \gg Stream variables:
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/33
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 3: Inputoutput
1
An expression such as pow(2,3) is called a(n) ____________________.
function call
2
Which header file contains the sqrt function?
cmath
3
What is the syntax of the ignore function?
cin.ignore(intExp, chExp);
4
The get function presented in this chapter only reads values of type ____________________.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
5
Write a statement to format the output of decimal numbers to two decimal places.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
6
To force the output to show the decimal point and trailing zeros of a decimal number, use the ____________________ manipulator.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
7
The setw manipulator cannot use a string as an argument.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
8
The header file ____________________ needs to be included to use the setw function.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
9
Define a file.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
10
File stream variables are predefined in the fstream header file and associated with input/output sources.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
11
The stream member function ____________________ is used to open files.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
12
Write a statement that closes the file stream outData.
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
13
What does these terms refer to:

- \gg Arguments (parameters):
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
14
What does these terms refer to:

- \gg Common input:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
15
What does these terms refer to:

- \gg Common output:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
16
What does these terms refer to:

- \gg Dot notation:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
17
What does these terms refer to:

- \gg Fail state:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
18
What does these terms refer to:

- \gg File:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
19
What does these terms refer to:

- \gg File stream variables:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
20
What does these terms refer to:

- \gg Function call:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
21
What does these terms refer to:

- \gg Input failure:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
22
What does these terms refer to:

- \gg Input stream:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
23
What does these terms refer to:

- \gg Input stream variables:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
24
What does these terms refer to:

- \gg istream member functions:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
25
What does these terms refer to:

- \gg Member access operator:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
26
What does these terms refer to:

- \gg Opening a file:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
27
What does these terms refer to:

- \gg Output stream:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
28
What does these terms refer to:

- \gg Output stream variables:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
29
What does these terms refer to:

- \gg Parameterized stream manipulators:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
30
What does these terms refer to:

- \gg Predefined functions:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
31
What does these terms refer to:

- \gg Stream:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
32
What does these terms refer to:

- \gg Stream member functions (stream functions):
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
33
What does these terms refer to:

- \gg Stream variables:
Unlock Deck
Unlock for access to all 33 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 33 flashcards in this deck.