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

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

To open a file with a user supplied name,you would need to store the name in a variable.If the file name was to have no more than 20 characters in it,which would be an appropriate declaration of the file name variable?

(Multiple Choice)
4.9/5
(31)

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

(True/False)
4.7/5
(52)

Which function returns true if the character argument is a letter?

(Multiple Choice)
4.9/5
(39)

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

(Short Answer)
4.8/5
(40)

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

(True/False)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(35)

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

(True/False)
4.8/5
(36)

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

(Short Answer)
4.9/5
(42)

In the following function declaration,the istream object cin is called a ___________________. void outputistream& in=cin);

(Short Answer)
4.7/5
(30)

Which of the following is the correct way to close a file stream named outFile?

(Multiple Choice)
4.8/5
(36)

What is wrong with the following code? While ! fileIn.eof)) { FileIn >> value; FileOut << value; }

(Multiple Choice)
4.9/5
(39)
Showing 41 - 51 of 51
close modal

Filters

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