Correct Answer
verified
Multiple Choice
A) the program runs but there is no output.
B) 0
C) Hello!
D) the program will not compile
Correct Answer
verified
Multiple Choice
A) subscripts
B) parentheses
C) #include statements
D) output format manipulators
E) None of these
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) Car -> accelerate() ;
B) myCar::accelerate() ;
C) myCar.accelerate() ;
D) myCar:accelerate() ;
E) None of these
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) x is available to code that is written outside the class.
B) The name of the class is Point.
C) x, y, and z are called members of the class.
D) z is not available to code that is written outside the class.
E) All of these are true.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) constructor delegation
B) in-place initialization
C) a member initialization list
D) None of these
Correct Answer
verified
Multiple Choice
A) int
B) float
C) char
D) Nothing; destructors have no return type
E) None of these
Correct Answer
verified
Multiple Choice
A) on separate disk volumes
B) in their own header files
C) in .cpp files, along with function definitions
D) under pseudonyms
E) None of these
Correct Answer
verified
Multiple Choice
A) after any statements in the body of the constructor execute
B) before any statements in the body of the constructor execute
C) when a member is used in the execution of the program
D) None of these
Correct Answer
verified
Multiple Choice
A) #include
B) #guard
C) #ifndef
D) #endif
E) None of these
Correct Answer
verified
Multiple Choice
A) the constructor function
B) the specification deallocator
C) the destructor function
D) the destruction function
E) None of these
Correct Answer
verified
Showing 41 - 54 of 54
Related Exams