Review Game Zone
Flash Cards
(current)
Games
Teachers
Search
Computer Programming 2 - 4
Test Description: Computer Programming 2 - Part 4
Instructions: Answer all questions to get your test result.
1) Inheritance is:
A
Where a class has multiple functions with the same name but different parameters
B
Where a class receives or inherits functions and variables from another class
C
Where a class has a function with the same name as its parent class but different code
D
Where a class uses an object of another class
2) A HAS-A relationship between classes is:
A
Where a class has multiple functions with the same name but different parameters
B
Where a class uses an object of another class
C
Where a class receives or inherits functions and variables from another class
D
Where a class has a function with the same name as its parent class but different code
3) Overriding is:
A
Where a class receives or inherits functions and variables from another class
B
Where a class has a function with the same name as its parent class but different code
C
Where a class uses an object of another class
D
Where a class has multiple functions with the same name but different parameters
4) Overloading is:
A
Where a class uses an object of another class
B
Where a class receives or inherits functions and variables from another class
C
Where a class has multiple functions with the same name but different parameters
D
Where a class has a function with the same name as its parent class but different code
5) A class that cannot have any objects created from it is called:
A
Abstract
B
Virtual
C
Parent
D
Child
6) Functions that are not defined in an abstract class but must be defined in any child classes is:
A
Overload
B
Override
C
Pure virtual
D
Virtual
7) The keyword that makes polymorphism possible is:
A
Pure virtual
B
Protected
C
Virtual
D
Abstract
8) A parent class object can hold an instance of a child class is called:
A
Inheritance
B
Abstract
C
Virtual
D
Polymorphism
9) UML stands for:
A
Unified Modeling League
B
Unified Modeling Language
C
Unified Machine Language
D
Unified Machine Legion
10) Which is NOT a use for UML diagrams?
A
They assist in planning object classes and their relationships
B
They assist in planning class pictures
C
They assist in planning class functions
D
They assist in planning class variables
*select an answer for all questions
Check Results & Get Answers
Play Games with the Questions Above
Teachers: Create FREE classroom games with your questions
Click for more info!
©2007-2024
ReviewGameZone.com
|
About
|
Privacy
|
Contact
|
Terms
|
Site Map
WAIT! Find what you needed?
×
Still Looking for the Answers?
Have Another Question?
Play a Review Game with These Questions?
Want to Make Your Own Test Like This One?