To determine whether a file was opened successfully, one can use the ___________ fstream member function
a) close( )
b) overloaded operator <<( )
c) open( )
d) eof( )
e) flush( )
e) flush( )
e) fail( ) returns a bool value of true if the file is in a failed state, and false if the file state can provide i/o. Part a) is used without argument to close the file to prevent file corruption, a possibility if the program terminates abnormally. Part b) has nothing to do with opening a file. Part c) is used with a C-string file name (either literal or C-string variable) to open the file and connect the stream to the file name. Part d) returns a type bool value of true if the file pointer has attempted to read at end of file. (To read beyond end of file is an error.)
You might also like to view...
Method getSelectedIndex of class JComboBox returns:
a. the index of the selected item in the JComboBox. b. the selected item in the JComboBox, as a String. c. the index of the previously selected item. d. None of the above.
The Q in SQL stands for Structured ________ Language
A) Question B) Quiz C) Query D) Quick
As shown in the accompanying figure, a typical ____ displays the name or a description of the command.
A. tab B. tool C. ScreenTip D. menu
____ are designed to deal with differences in currencies and fluctuating currency exchange rates, which can cause additional problems in consolidating financial data.
a. Enterprise resource planning systems b. Life cycle management systems c. Catastrophe management systems d. Quality assurance planning systems