To open a file for read-write and random access requires

a) The usual definition of an ofstream or ifstream object.
b) A call to open ofstream or ifstream object, but there must be a second
argument to the open function.
c) The stream to be defined using the class fstream. defined in the
header file.
d) The stream to be connected to the physical file object with first argument a C-
string containing the physical file name and a second argument,
ios::in | ios::out that specifies that the i/o with the file should be for
either reading or writing.
e) #include, using std::fstream; and
using std::ios;


c) The stream to be defined using the class fstream. defined in the
header file.
d) The stream to be connected to the physical file object with first argument a C-
string containing the physical file name and a second argument,
ios::in | ios::out that specifies that the i/o with the file should be for
either reading or writing.
e) #include, using std::fstream; and
using std::ios;

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. You cannot prevent client code from creating objects of a class. b. One common use of a private constructor is sharing initialization code among a class’s other constructors. c. Another common use of private constructors is to force client code to use so-called “factory methods” to create objects. d. A factory method is a public static method that creates and initializes an object of a specified type (possibly of the same class), then returns a reference to it.

Computer Science & Information Technology

In Slide Show view, a presentation advances from one slide to the next when you press _____ key.

A. the Enter B. the Tab C. the Shift D. any

Computer Science & Information Technology

An interim plan saves ____ values.

A. duration B. work C. cost D. None of the above

Computer Science & Information Technology

The standard resolution for display on a monitor is ____ dpi.

A. 36 B. 72 C. 144 D. 256

Computer Science & Information Technology