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
If setRadius is a Circle class function and myCircle is a Circle object, which of the following statements would set myCircle's radius to 2.5?
(Multiple Choice)
4.8/5
(35)
When the body of a member function is defined inside a class declaration, it is called a(n)function.
(Multiple Choice)
4.8/5
(34)
A C++ member function that uses, but does not change, the value of a member variable is called
(Multiple Choice)
4.8/5
(38)
Accessors are sometimes called _ functions and mutators are sometimes called functions.
(Multiple Choice)
4.8/5
(30)
In C++ and other object- oriented programming languages, ADTs are normally implemented as classes.
(True/False)
4.9/5
(36)
A structure variable is similar to a class object in which of the following ways?
(Multiple Choice)
4.8/5
(41)
member function may be called by a statement in a function that is outside the class.
(Multiple Choice)
5.0/5
(44)
Objects permit data hiding. This means they can keep functions outside the class from
(Multiple Choice)
4.8/5
(40)
If Circle is the name of a class, which of the following statements would create a Circle object named myCircle?
(Multiple Choice)
4.9/5
(33)
If Square is the name of a class, which of the following statements would create a Square object named box?
(Multiple Choice)
4.7/5
(29)
Public members of a class object can be accessed from outside the class by using the
(Multiple Choice)
4.7/5
(39)
A constructor is a public class function that is automatically invoked (i.e., called)whenever a class object is created.
(True/False)
4.8/5
(28)
A constructor is a public class function that gets called whenever you want to re- initialize an object's member data.
(True/False)
4.9/5
(36)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)