Exam 13: Introduction to Classes
Exam 1: Introduction to Computers and Programming47 Questions
Exam 2: Introduction to C62 Questions
Exam 3: Expressions and Interactivity45 Questions
Exam 4: Making Decisions51 Questions
Exam 5: Loops and Files60 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays and Vectors56 Questions
Exam 8: Searching and Sorting Arrays30 Questions
Exam 9: Pointers47 Questions
Exam 10: Characters, C-Strings, and More About the String Class47 Questions
Exam 11: Structured Data46 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes54 Questions
Exam 14: More About Classes46 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions43 Questions
Exam 16: Exceptions and Templates36 Questions
Exam 17: The Standard Template Library38 Questions
Exam 18: Linked Lists41 Questions
Exam 19: Stacks and Queues47 Questions
Exam 20: Recursion27 Questions
Exam 21: Binary Trees39 Questions
Select questions type
Constructor functions are often used to allocate memory that will be needed by the object.
(True/False)
4.9/5
(31)
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.7/5
(32)
While a class's member functions may be overloaded, the constructor cannot be overloaded.
(True/False)
4.9/5
(39)
Which of the following is automatically called when an object is destroyed?
(Multiple Choice)
4.8/5
(32)
For the following code, which statement is not true?
Class Point
{
Private:
Double y;
Double z;
Public:
Double x;
};
(Multiple Choice)
4.8/5
(31)
What is the output of the following program?
#include <iostream>
using namespace std;
class TestClass
{
Public:
TestClass(int x)
{ cout << x << endl; }
TestClass()
{ cout << "Hello!" << endl; }
};
Int main()
{
TestClass test;
return 0;
}
(Multiple Choice)
4.8/5
(38)
When a constructor has a member initialization list, the initializations take place
(Multiple Choice)
4.8/5
(39)
Which of the following is a directive used to create an "include guard" that allows a program to be conditionally compiled to prevent a header file from accidentally being included more than once?
(Multiple Choice)
4.7/5
(27)
Destructor functions are often used to free memory that was allocated by the object.
(True/False)
4.9/5
(32)
In C++11 you can have one constructor call another constructor in the same class by using
(Multiple Choice)
4.8/5
(26)
Showing 41 - 54 of 54
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)