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

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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

(Short Answer)
4.9/5
(42)

A __________ is a variable that has functions as well as data associated with it.

(Multiple Choice)
4.9/5
(38)

'\n' is two characters.

(True/False)
4.9/5
(34)

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

(True/False)
4.8/5
(33)

If the user types in the characters 10,and your program reads them into an integer variable,what is the value stored into that integer?

(Multiple Choice)
4.8/5
(38)

The command outFile.precision2);

(Multiple Choice)
4.9/5
(37)

open is a __________ function of the ofstream and ifstream class.

(Short Answer)
4.7/5
(36)

"\n" is a ________ and '\n' is a _______________.

(Short Answer)
5.0/5
(48)

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

(Multiple Choice)
4.8/5
(35)

Which of the following loop condition statements will read all the data in the file assuming that each record in the file is two integer values,and you will read the first one into a variable named intOne,and the other into intTwo?

(Multiple Choice)
4.8/5
(38)

We have a file that has a name in it,but the name is written one character per line.We need to write this name to the screen.What is wrong with the following code? Ifstream fileIn; FileIn.open"file.txt"); Char ch; FileIn.getch) While!fileIn.eof)) { Cout.putch); FileIn.getch); }

(Multiple Choice)
4.8/5
(36)

The formatting options that were discussed for cout do not work for output file streams.

(True/False)
4.8/5
(40)

If a file did not open correctly,you should

(Multiple Choice)
4.7/5
(42)

Streams may be passed to a function.

(True/False)
4.8/5
(47)

When is the external name of the file used in the program?

(Multiple Choice)
4.9/5
(36)

Which statement correctly opens an input stream named in_file and attaches it to a file name project.txt?

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(32)

You must use a width statement before each variable that you want output in a certain width

(True/False)
4.8/5
(36)

If the name of the input file was in a variable named filename,which of the following is the correct way to open the input stream named inFile and associate it with this file?

(Multiple Choice)
4.7/5
(37)

A value that can be turned on or off is called a ________.

(Short Answer)
4.9/5
(42)
Showing 21 - 40 of 51
close modal

Filters

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