When used with ofstream objects, operator! is not:
a. Overloaded.
b. Used to determine if the open operation succeeded.
c. Used to close a file explicitly.
d. Used to return a nonzero value if an error occurs.
c. Used to close a file explicitly.
You might also like to view...
Which of the following statements is false?
a. The method’s return type specifies the type of data returned to a method’s caller. b. Empty parentheses following a method name indicate that the method does not require any parameters to perform its task. c. When a method that specifies a return type other than void is called and completes its task, the method must return a result to its calling method d. Classes often provide public methods to allow the class’s clients to set or get private instance variables; the names of these methods must begin with set or get.
A PDF file can be viewed and easily changed
Indicate whether the statement is true or false
Case-Based Critical Thinking Questions ? Case 13-5 ? Steve has created a custom object. He wants to use a template for all the properties and methods associated with the object's class. To add a method to a prototype, Steve should apply the _____ command.
A. objName.prototype.function = method; B. objName.prototype.method = function; C. objClass.prototype.method = function; D. objInstance.prototype.method = function;
The ____ contains most of the electronic circuitry in the computer.?
A. ?monitor B. EEPROM C. ?SRAM D. ?system unit