Exam 13: Introduction to Classes
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
When a constructor function accepts no arguments, or does not have to accept arguments because of default arguments, it is called a(n):
Free
(Multiple Choice)
4.7/5
(47)
Correct Answer:
B
In OOP terminology, an object's member variables are often called its _________, and its member functions are sometimes referred to as its behaviors, or ____________.
Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
D
The destructor function's return type is:
Free
(Multiple Choice)
4.7/5
(33)
Correct Answer:
D
Object-oriented programming is centered around the object, which encapsulate together both the data and the functions that operate on the data.
(True/False)
4.8/5
(34)
Objects are created from abstract data types that encapsulate _______ and _______ together.
(Multiple Choice)
4.8/5
(33)
A private member function is useful for tasks that are internal to the class, but is not directly called by statements outside the class.
(True/False)
4.8/5
(37)
In a procedural program, you typically have __________stored in a collection of variables, and a set of __________ that perform operations on the data.
(Multiple Choice)
4.8/5
(44)
A class is a(n) _____________ that is defined by the programmer.
(Multiple Choice)
4.7/5
(26)
The process of object-oriented analysis can be viewed as the following steps:
(Multiple Choice)
5.0/5
(35)
Assume that myCar is an instance of the Car class, and that the Car class has a member function named accelerate. Which of the following is a valid call to the accelerate member function?
(Multiple Choice)
4.8/5
(42)
You must use the private access specification for all data members of a class.
(True/False)
4.9/5
(27)
Objects in an array are accessed with ________, just like any other data type in an array.
(Multiple Choice)
4.9/5
(35)
A ___________ is a member function that is automatically called when a class object is ___________.
(Multiple Choice)
4.8/5
(40)
For the following code, which statement is not true? class Point
{
private:
double y;
double z;
public:
double x;
};
(Multiple Choice)
4.8/5
(34)
Showing 1 - 20 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)