Exam 9: Classes
Exam 1: Introduction to Computers, the Internet and the World Wide Web27 Questions
Exam 2: Introduction to C Programming21 Questions
Exam 3: Control Statements, Part 127 Questions
Exam 4: Control Statements, Part 228 Questions
Exam 5: Functions and an Introduction to Recursion47 Questions
Exam 6: Arrays and Vectors19 Questions
Exam 7: Pointers and Pointer-Based Strings28 Questions
Exam 8: Sequential-Access Files12 Questions
Exam 9: Classes35 Questions
Exam 10: Classes: a Deeper Look, Part 215 Questions
Exam 11: Operator Overloading; String and Array Objects32 Questions
Exam 12: Object-Oriented Programming: Inheritance19 Questions
Exam 13: Object-Oriented Programming: Polymorphism23 Questions
Exam 14: Templates13 Questions
Exam 15: Stream Inputoutput33 Questions
Exam 16: Exception Handling24 Questions
Exam 17: File Processing11 Questions
Exam 18: Class String and String Stream Processing26 Questions
Exam 19: Searching and Sorting10 Questions
Exam 20: Data Structures19 Questions
Exam 21: Standard Template Library Stl56 Questions
Exam 22: Bits, Characters, C Strings and Structs26 Questions
Exam 23: Boost Libraries, Technical Report 1 and C0x21 Questions
Exam 24: Other Topics19 Questions
Exam 25: ATM Case Study, Part 1: Object-Oriented Design With the Uml15 Questions
Exam 26: ATM Case Study, Part 2: Implementing an Object-Oriented Design3 Questions
Exam 27: Game Programming With Ogre23 Questions
Select questions type
Returning references to non-const, private data:
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
C
Member access specifiers public and private) can appear:
Free
(Multiple Choice)
4.7/5
(41)
Correct Answer:
A
When compiling a class's source code file which does not contain a main function), the information in the class's header file is used for all of the following, except:
(Multiple Choice)
4.9/5
(43)
Parameterized stream manipulator setfill specifies the fill character that's displayed when an output is displayed in a field wider than the number of characters or digits in the output. The effect of setfill applies:
(Multiple Choice)
4.9/5
(37)
Which of the following statements is not true of a destructor?
a. It performs termination housekeeping.
b. It's called before the system reclaims the object's memory.
c. If the programmer does not explicitly provide a destructor, the compiler creates an "empty" destructor.
d. It releases the object's memory.
(Short Answer)
4.8/5
(36)
A class-scope variable hidden by a block-scope variable can be accessed by preceding the variable name with the class name followed by:
(Multiple Choice)
4.7/5
(36)
In the source-code file containing a class's member function definitions, each member function definition must be tied to the class definition by preceding the member function name with the class name and ::, which is known as the:
(Multiple Choice)
4.8/5
(37)
If a member function of a class already provides all or part of the functionality required by a constructor or another member function then:
(Multiple Choice)
4.7/5
(40)
Which of the following statements is not true of a constructor and destructor of the same class?
(Multiple Choice)
4.9/5
(36)
When independent software vendors provide class libraries to clients, they typically give the __________ for the class's interface and the __________ for the class's implementation.
(Multiple Choice)
4.8/5
(27)
Given the class definition:
Class CreateDestroy
{
Public:
CreateDestroy) { cout << "constructor called, "; }
~CreateDestroy) { cout << "destructor called, "; }
};
What will the following program output?
Int main)
{
For int i = 1; i <= 2; i++ )
CreateDestroy cd;
Return 0;
}
(Multiple Choice)
4.8/5
(42)
Assuming that Grades.h is found in the current directory and the iostream header file is found in the C++ Standard Library header file directory, which of the following preprocessor directives will fail to find its desired header file?
(Multiple Choice)
4.7/5
(29)
Which of the following preprocessor directives does not constitute part of the preprocessor wrapper?
(Multiple Choice)
4.9/5
(37)
Showing 1 - 20 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)