Computer Programming 2 - 4 Question Preview (ID: 19442)
Computer Programming 2 - Part 4.
TEACHERS: click here for quick copy question ID numbers.
Inheritance is:
a) Where a class receives or inherits functions and variables from another class
b) Where a class uses an object of another class
c) Where a class has a function with the same name as its parent class but different code
d) Where a class has multiple functions with the same name but different parameters
A HAS-A relationship between classes 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 a function with the same name as its parent class but different code
d) Where a class has multiple functions with the same name but different parameters
Overriding is:
a) Where a class has a function with the same name as its parent class but different code
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 multiple functions with the same name but different parameters
Overloading 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 uses an object of another class
d) Where a class has a function with the same name as its parent class but different code
A class that cannot have any objects created from it is called:
a) Abstract
b) Parent
c) Child
d) Virtual
Functions that are not defined in an abstract class but must be defined in any child classes is:
a) Pure virtual
b) Virtual
c) Override
d) Overload
The keyword that makes polymorphism possible is:
a) Virtual
b) Protected
c) Abstract
d) Pure virtual
A parent class object can hold an instance of a child class is called:
a) Polymorphism
b) Inheritance
c) Abstract
d) Virtual
UML stands for:
a) Unified Modeling Language
b) Unified Modeling League
c) Unified Machine Legion
d) Unified Machine Language
Which is NOT a use for UML diagrams?
a) They assist in planning object classes and their relationships
b) They assist in planning class functions
c) They assist in planning class variables
d) They assist in planning class pictures
Play Games with the Questions above at ReviewGameZone.com
To play games using the questions from above, visit ReviewGameZone.com and enter game ID number: 19442 in the upper right hand corner or click here.
To play games using the questions from above, visit ReviewGameZone.com and enter game ID number: 19442 in the upper right hand corner or click here.
TEACHERS / EDUCATORS
Log In | Sign Up / Register
Log In | Sign Up / Register