Exam 7: Using Classes
Exam 1: An Overview of Object-Oriented Programming and C++55 Questions
Exam 2: Evaluating C Expressions51 Questions
Exam 3: Making Decisions50 Questions
Exam 4: Performing Loops51 Questions
Exam 5: Understanding Arrays, Strings and Pointers55 Questions
Exam 6: Using C++ Functions51 Questions
Exam 7: Using Classes56 Questions
Exam 8: Class Features and Design Issues53 Questions
Exam 9: Understanding Friends and Overloading Operators52 Questions
Exam 10: Understanding Inheritance53 Questions
Exam 11: Using Templates54 Questions
Exam 12: Handling Exceptions51 Questions
Exam 13: Advanced Input and Output55 Questions
Exam 14: Advanced Topics53 Questions
Select questions type
An abstract data type is a type defined by C++.
Free
(True/False)
4.9/5
(44)
Correct Answer:
False
A(n) ____ language is one to which you can add your own data types.
Free
(Multiple Choice)
4.9/5
(33)
Correct Answer:
C
What is the difference in memory allocation between a static and a non-static variable?
(Essay)
5.0/5
(42)
Should you use a static class member with an object name or with the class name?
(Essay)
5.0/5
(31)
The only type of class member function that does not have a this pointer is a ____ member function.
(Multiple Choice)
4.7/5
(40)
Match each term with the correct statement below.
Premises:
intercedes between you and the inner workings of an object
Responses:
access modifier
class
pointer-to-member operator
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(42)
Match each term with the correct statement below.
Premises:
allows the same operation to be carried out differently depending on the object
Responses:
access modifier
implementation section
polymorphism
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(35)
Match each term with the correct statement below.
Premises:
category of objects
Responses:
pointer-to-member operator
this pointer
implementation section
Correct Answer:
Premises:
Responses:
(Matching)
4.9/5
(38)
Write a class with three private fields and then modify it so that the fields are public. Show both versions.
(Essay)
4.9/5
(43)
You may use the this pointer instead of the class name and scope resolution operator when a local variable and a field name conflict.
(True/False)
4.8/5
(33)
All members of a class share a single storage location for a static data member of that same class.
(True/False)
4.8/5
(43)
Match each term with the correct statement below.
Premises:
a type you define
Responses:
polymorphism
access modifier
class variable
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(33)
When you create an object, a block of ____________________ is set aside for the data members.
(Short Answer)
4.9/5
(39)
A class is a new data type you create that is more complex than the basic data types.
(True/False)
4.9/5
(38)
A C++ ____ is an instantiation of a class that can contain both data members and methods.
(Multiple Choice)
4.9/5
(39)
When you create a class, you usually make the functions private.
(True/False)
4.9/5
(42)
Showing 1 - 20 of 56
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)