Exam 6: Io Streams As an Introduction to Objects and Classes

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

To open an output file and add to the end of the data already in the file you would write

Free
(Multiple Choice)
4.8/5
(32)
Correct Answer:
Verified

D

What is the output of the following code? Char ch='G'; Cout << tolowerch) << endl;

Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
Verified

C

Data that is sent to an output stream representing a file will be immediately saved to disk.

Free
(True/False)
4.8/5
(35)
Correct Answer:
Verified

False

The member function eof) is true/false) when we are ready to read the end of file character.

(True/False)
4.9/5
(39)

A type whose variables are objects is known as a ___________.

(Short Answer)
4.9/5
(40)

After a stream is opened, before it is used for input and output, it should be

(Multiple Choice)
4.8/5
(45)

A function that is associated with an object is called a _________ function.

(Multiple Choice)
4.7/5
(37)

The _______ function puts one character back into the input stream.

(Short Answer)
4.8/5
(35)

Using directives can be placed either directly after the include directives, or at the beginning of each function definition.

(True/False)
4.9/5
(46)

In order to use the stream manipulators, you must include the ______ library

(Multiple Choice)
4.7/5
(35)

Which command reads one character even if that character is a blank space? ___________

(Short Answer)
4.9/5
(33)

The command outFile.width10) is used to

(Multiple Choice)
4.8/5
(42)

The manipulator used to change the number of decimal places displayed is _________

(Short Answer)
4.8/5
(35)

If a file did not open correctly, you should

(Multiple Choice)
4.8/5
(32)

In order to read data from a file you

(Multiple Choice)
4.9/5
(43)

Streams may be passed to a function.

(True/False)
4.8/5
(38)

You may use a read extraction) as a boolean expression in an if or while statement.

(True/False)
4.8/5
(37)

You may not have more than one input and one output stream open at any one time.

(True/False)
4.9/5
(31)

The flag to display floating point numbers in non-scientific notation is ios:: _________

(Short Answer)
4.9/5
(36)

If you use the width command, it stays in effect for all values that are send to the stream.

(True/False)
4.7/5
(35)
Showing 1 - 20 of 52
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)