Which of the following statements will close the output file associated with the object AnsFile?

A. close.AnsFile;
B. "myanswers.txt".close;
C. AnsFile.close();
D. AnsFile.close("myanswers.txt " );


C. AnsFile.close();

Computer Science & Information Technology

You might also like to view...

An example of a common hardware function performed by the operating system is presenting information on a monitor or printer.?

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

Computer Science & Information Technology

List the reasons for entering the blocked state. For each of these, describe how the program will normally leave the blocked state and enter the runnable state.

What will be an ideal response?

Computer Science & Information Technology

The ________ view displays a structural view of a document that can be collapsed or expanded

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ____ function reads the next character in the input stream and assigns it to the function’s character variable.

a. getline() b. get() c. nextChar() d. getChar()

Computer Science & Information Technology