Which of the following statements about a file error state is false?

A. We can test the error status of a file using ferror.
B. A file is put into the error state when an attempt is made to read a file in the write mode.
C. A file is put into the error state when an open fails.
D. Executing any file positioning function resets the file in a non-error state.
E. A file in the error state cannot be read from or written to.


Answer: D

Computer Science & Information Technology

You might also like to view...

If object1 and object2 are objects of the same class, to make object2 a copy of object1 __________.

a. write a method for the class that will make a field by field copy of object1 data members into object2 data members b. use the copy method that is a part of the Java language c. use the default constructor to create object2 with object1 data members d. use an assignment statement to make object2 a copy of object1

Computer Science & Information Technology

For the networks given in Figures 3.1 and 3.5 of this solution manual, and for an unweighted eight-node path graph, estimate the LInE metric.





Computer Science & Information Technology

Bill leaves Chicago at 4:00P.M. traveling east on Interstate 90 at 70 miles per hour toward Toledo. Also at 4:00 P.M., Jim leaves Toledo, 200 miles east of Chicago and heads west for Chicago at 50 miles per hour. At 5:00 P.M. they both stop for one hour for dinner and then continue at their previous speeds. At what time will Bill pass Jim?

Solve the following time-rate-distance problems using the IPO method. Ignore time zones.

Computer Science & Information Technology

Give two examples of employee fraud and explain how the theft might occur.

What will be an ideal response?

Computer Science & Information Technology