Midterm 1 Flashcards
What value will the function eof return if there are more characters to be read in the input stream?
false
It is possible for a structure variable to be a member of another structure variable.
true
What will inFile.fail( ) return if the file associated with the stream inFile cannot be opened?
true
The data members of a class are usually placed in the private section of a class.
true
The expression s->m; indicates that s is a structure pointer and m is a structure member.
true
If the implementation of a member function calls another member function, you do not need to use dot notation.
true
A constructor cannot specify a return type.
true
The implementation of the member functions cannot access the private section of the class.
false
Object-oriented design first identifies the objects required in a problem.
true
q In object-oriented design, it is considered a correct procedure to implement a little, then test.
true
- When passing a file stream object to a function, you should always pass it by reference.
true
- You must use the private access specification for all data members of a class.
true
- By default, when an object is assigned to another, each member of one object is copied to its counterpart in the other object.
true
A static member variable can be used when there are no objects of the class in existence.
true
A class may have this many default constructor(s).
at most one