Exam 13: Stream Inputoutput: a Deeper Look

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

2.1 Q2 [C++11] Which of the following statements is false?

(Multiple Choice)
4.9/5
(32)

What will be output by the following statements? double x{1.23456789}; Cout << fixed; Cout << setprecision(5) << x << endl; Cout.precision(3); Cout << x << endl; Cout << x << endl;

(Multiple Choice)
4.8/5
(45)

Which of the following statements restores the default fill character?

(Multiple Choice)
4.7/5
(35)

Overloaded operators can be used to test a stream's state in conditions. The operator! member function, inherited into the stream classes from class basic_ios, returns true if the badbit, the failbit or both are true. The ________ member function (added in C++11) returns false if the badbit is true, the failbit is true or both are true.

(Multiple Choice)
4.8/5
(38)

Which of the following outputs does not guarantee that the uppercase flag has been set?

(Multiple Choice)
4.8/5
(29)

What will be output by the following statement? cout << showpoint << setprecision(4) << 11.0 << endl;

(Multiple Choice)
4.7/5
(33)

Which of the following classes is a base class of the other three?

(Multiple Choice)
4.8/5
(46)

Select the correct statement regarding C++ I/O streams:

(Multiple Choice)
4.9/5
(30)

The stream-extraction operator:

(Multiple Choice)
4.7/5
(28)

Upon encountering the designated delimiter character, the ignore member function will:

(Multiple Choice)
4.7/5
(31)

The difference between the operator! member function and the operator void* member function is that:

(Multiple Choice)
4.9/5
(35)

Which of the following is not a member function of the C++ ostream class?

(Multiple Choice)
4.8/5
(38)

Which of the following is a difference between the read and write functions?

(Multiple Choice)
4.9/5
(35)

Which of the following classes is deepest in the inheritance hierarchy?

(Multiple Choice)
4.7/5
(33)
Showing 21 - 34 of 34
close modal

Filters

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