Answer the following statements true (T) or false (F)

1. C++ iostream class multiply inherits from both istream and ostream classes.
2. If you have an overloaded output operator that can send data to an ostream, which of the
following are possible left-hand operands to the operator:
3. When an error occurs when reading from an istream, the fail bit is set on the stream and
execution of the program stops.
4. By default, C++ ofstream objects are opened in overwrite mode.
5. No prior knowledge of a file’s structure is needed to be able to read the file in C++.


1. True
2. False
3. False
4. True
5. False

Computer Science & Information Technology

You might also like to view...

The washout effect is perfect to use as a background image.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

As a convenient tool for quickly sharing files with all users in your organization, your OneDrive for Business account contains an initial folder named ________

A) Shared with Everyone B) Shared with Me C) Followed Documents D) Group Share

Computer Science & Information Technology

The code that will swap the first two elements of an array called friends is:

a) friends[0] = friends[1]; friends[1] = friends[0]; b) temp = friends[1]; friends[2] = friends[1]; friends[1] = temp; c) temp = friends[0]; friends[1] = friends[0]; friends[0] = temp; d) temp = friends[0]; friends[0] = friends[1]; friends[1] = temp;

Computer Science & Information Technology

When the TDC is bound to an element, the element's DATASRC attribute should be set to ________.

a) the name of the TDC object preceded by a user defined character b) the filename containing the data c) the field name that the data is in d) the name of the TDC object preceded by a #

Computer Science & Information Technology