Exam 7: Introduction to Classes and Objects
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C Plus Plus40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions40 Questions
Exam 5: Looping40 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays40 Questions
Exam 9: Searching, Sorting, Algorithm Analysis40 Questions
Exam 10: Pointers62 Questions
Exam 11: More About Classes and Object-Oriented Programming70 Questions
Exam 12: More on C-Strings and the String Class40 Questions
Exam 13: Advanced File and Io Operations40 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions22 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 Trees38 Questions
Select questions type
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
(44)
A class declaration provides a pattern for creating objects, but doesn't make any objects.
(True/False)
5.0/5
(38)
A class may have ________ default constructor(s) and ________ destructor(s).
(Multiple Choice)
4.8/5
(32)
A class can have a member variable that is an instance of another class. This is called object nesting.
(True/False)
4.8/5
(37)
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
(42)
A private member function may only be called from a function that is a member of the same class.
(True/False)
4.9/5
(42)
Object-oriented programming is centered around objects that include both data and the functions that operate on them.
(True/False)
4.9/5
(30)
In C++ and other object-oriented programming languages, ADTs are normally implemented as classes.
(True/False)
4.9/5
(32)
Which of the following statements correctly creates an enumerated data type and defines an object of that type.
(Multiple Choice)
4.8/5
(30)
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.9/5
(35)
In OOP terminology, an object's member variables are often called its ________, and its member functions are sometimes referred to as its ________.
(Multiple Choice)
4.8/5
(34)
When a member function is defined outside of the class declaration, the function name must be qualified with the class name, followed by
(Multiple Choice)
4.9/5
(38)
A C++ member function that uses, but does not change, the value of a member variable is called
(Multiple Choice)
5.0/5
(38)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)