Which of the following is the correct way to determine if a file stream named inFile opened correctly?

a. if( inFile.open() )
b. if( inFile.fail() )
c. if( inFile.opened() )
d. if( inFile.failed() )


b. if( inFile.fail() )

Computer Science & Information Technology

You might also like to view...

The f:ajax element's ________ attribute specifies a space-separated list of element ids—the values of these elements are submitted as part of the Ajax request.

a. execute. b. render. c. send. d. display.

Computer Science & Information Technology

Explain how to get help as you enter expressions.

What will be an ideal response?

Computer Science & Information Technology

To avoid the look of missing data in a report, use the Hide Duplicates property on ____ fields.

A. visible B. sorted C. similar D. formatted

Computer Science & Information Technology

An operation that is ____ is called a primitive operation of the computing agent carrying out the algorithm.

A. primary B. complementary C. basic D. unambiguous

Computer Science & Information Technology