1 |
Virtual functions allow you to |
create an array of type pointer-to-base class that can hold pointers to derived classes.
create functions that can never be accessed.
group objects of different classes so they can all be accessed by the same function code
use the same function call to execute member functions of objects from different
classes (Object-Oriented Programming in C++)
|
2 |
Classes like TwoDimensionalShape and ThreeDimensionalShape would normally be concrete, while
classes like Sphere and Cube would normally be abstract. |
True
False
Not Sure
|
3 |
Graphical representation of the classes and objects is called object model it shows ------- |
Class Name only
Class Name and attributes
Relationships of the objects and classes
all of the given
|
4 |
_______ “is a” relationship |
Inheritance
Polymarphism
abstraction
encapsulation
|
5 |
Which of these are examples of error handling techniques ? |
Abnormal Termination
Graceful Termination
Return the illegal
all of the given
|
6 |
Which of the following operators can not be overloaded? |
Scope resolution operator ( :: )
Insertion operator ( << )
Extraction operator ( >> )
The relation operator ( > )
|
7 |
Which of the following operator(s) take(s) one or no argument if overloaded? |
++
-
+
All of the above
|
8 |
this pointer does not point to current object of any class, |
True
False
Not Sure
|
9 |
In ________, a base class can be replaced by its derived class, |
Sub-typing
Super-typing
Multiple-typing
Restricted-typing
|
10 |
Algorithms can only be implemented using STL containers. |
True
False
Not Sure
|