Multiple Choice
The state bit is set when an attempted operation has failed.
A) ios::badbit
B) ios::goodbit
C) ios::hardfail
D) ios::failbit
E) None of the above
Correct Answer:

Verified
Correct Answer:
Verified
Q10: File output may be formatted the same
Q23: To access files from a C++ program,
Q24: The may be used to write information
Q25: When the <sup>>></sup><sup> </sup>operator extracts information from
Q27: The data type can be used to
Q29: When you assign a name to a
Q30: The operating system records the information that
Q31: A file must be<br>A)initialized<br>B)closed<br>C)opened<br>D)declared _ before data
Q32: The state bit,<br>A)<sup>ios::eof</sup><br>B)<sup>ios::failbit</sup><br>C)<sup>ios::badbit</sup><br>D)<sup>ios::eofbit</sup> , can be tested
Q36: Only one file stream object can be