Exam 10: Classes and Data Abstraction
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C50 Questions
Exam 3: Inputoutput50 Questions
Exam 4: Control Structures I Selection50 Questions
Exam 5: Control Structures II Repetition50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records Structs50 Questions
Exam 10: Classes and Data Abstraction49 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Searching, Sorting and the Vector Type50 Questions
Exam 17: Linked Lists50 Questions
Exam 18: Stacks and Queues50 Questions
Select questions type
If a function of a class is static, it is declared in the class definition using the keyword static in its ____.
(Multiple Choice)
5.0/5
(32)
If an object is declared in the definition of a member function of the class, then the object can access both the public and private members of the class.
(True/False)
4.9/5
(42)
A(n) ____________________ is a statement specifying what is true after the function call is completed.
(Short Answer)
4.9/5
(29)
You can use arithmetic operators to perform arithmetic operations on class objects.
(True/False)
4.8/5
(37)
Given the declaration
class myClass
{
public:
void print(); //Output the value of x;
MyClass();
private:
int x;
};
myClass myObject;
The following statement is legal.
myObject.x = 10;
(True/False)
4.7/5
(41)
If a class object is passed by ____________________, the contents of the member variables of the actual parameter are copied into the corresponding member variables of the formal parameter.
(Short Answer)
4.8/5
(41)
A ____ sign in front of a member name on a UML diagram indicates that this member is a protected member.
(Multiple Choice)
5.0/5
(42)
Showing 41 - 49 of 49
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)