Exam 7: Introduction to Classes and Objects
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees37 Questions
Select questions type
In OOP terminology, an object's member variables are often called its , and its member functions are sometimes referred to as its .
Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
B
A C++ member function that sets or changes the value stored in a member variable is called
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
C
When a member function is defined outside of the class declaration, the function name must be qualified with the class name, followed by
Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
B
If employee is an instance of a class with 3 member variables (name, salary, and
department), the values of all three members will be output by the statement
cout << employee;
(True/False)
4.8/5
(46)
When a constructor does not require that any arguments be passed to it, it is called a(n)_ constructor.
(Multiple Choice)
4.7/5
(38)
The bundling of an object's data and procedures together is called
(Multiple Choice)
4.8/5
(50)
A(n)member function may only be called from a function that is a member of the same class.
(Multiple Choice)
4.8/5
(41)
A class can have a member variable that is an instance of another class. This is called
(Multiple Choice)
4.8/5
(44)
A structure has member variables, like an object, but they are usually all public and accessed directly with the dot operator, instead of by calling member functions.
(True/False)
4.9/5
(42)
When an object or structure variable is passed to a function as a constant reference
(Multiple Choice)
4.9/5
(37)
An Abstract data type (ADT)is a programmer- defined data type that specifies the values the type can hold, the operations that can be performed on them, and how the operations will be implemented.
(True/False)
4.9/5
(37)
When three different objects of a particular class are created, they are said to be separate of the class.
(Multiple Choice)
4.9/5
(43)
A class declaration provides a pattern for creating objects, so when a class is declared it automatically creates an object.
(True/False)
4.8/5
(41)
A class declaration describes an object, but does not create any objects.
(True/False)
4.8/5
(31)
If setSide is a Square class function and box is a Square object, which of the following statements would set the length of box's side to 5?
(Multiple Choice)
4.9/5
(38)
Object- oriented programming is centered around objects that include both data and the functions that operate on them.
(True/False)
4.9/5
(35)
In an ADT the implementation details are the interface through which a program uses it.
(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)