Exam 10: Classes and Data Abstraction
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 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)
4.8/5
(84)
-Consider the UML class diagram shown in the accompanying figure.According to the UML class diagram, how many private members are in the class?
(Multiple Choice)
4.9/5
(78)
A program or software that uses and manipulates the objects of a class is called a(n) ____________________ of that class.
(Short Answer)
4.8/5
(80)
As parameters to a function, class objects can be passed by reference only.
(True/False)
5.0/5
(83)
Non-static member variables of a class are called the ____________________ variables of the class.
(Short Answer)
4.9/5
(102)
With ____________________ functions, the definitions of the member functions are placed in the implementations file.
(Short Answer)
5.0/5
(78)
A(n) ____________________ contains the definitions of the functions to implement the operations of an object.
(Short Answer)
4.8/5
(81)
If an object is created in a user program, then the object can access both the public and private members of the class.
(True/False)
4.7/5
(69)
A class and its members can be described graphically using a notation known as the ____ notation.
(Multiple Choice)
4.8/5
(93)
If a member of a class is ____, you cannot access it outside the class.
(Multiple Choice)
4.9/5
(79)
-The word ____ at the end of several the member functions in the accompanying figure class clockType specifies that these functions cannot modify the member variables of a clockType object.
(Multiple Choice)
4.8/5
(84)
A ____ sign in front of a member name on a UML diagram indicates that this member is a protected member.
(Multiple Choice)
4.8/5
(78)
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.9/5
(73)
Figure 3:
-Consider the accompanying class and member functions definitions.How many constructors are present in the class definition?
(Multiple Choice)
4.9/5
(77)
A destructor has the character ____, followed by the name of the class.
(Multiple Choice)
4.9/5
(82)
Showing 21 - 40 of 43
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)