OOPS Concept

Test - 1 2052

Q.1 Which of the following is not a type of constructor?

Copy constructor Friend constructor
Default constructor Parameterized constructor

Q.2 Which of the following concepts means adding new components to a program as it runs?

Data hiding Dynamic typing
Dynamic loading Dynamic binding

Q.3 Which of the following statement is correct?

A constructor is called at the time of use of an object. A constructor is called at the time of declaration of an object.
A constructor is called at the time of use of a class. A constructor is called at the time of declaration of a class.

Q.4 Which of the following correctly describes overloading of functions?

Ad-hoc polymorphism Transient polymorphism
Virtual polymorphism Pseudo polymorphism

Q.5 How "Late binding" is implemented in C++?

Using Indexed virtual tables Using C++ tables
Using Virtual tables Using polymorphic tables

Q.6 Which of the following operator is overloaded for object cout?

>> <<
+ =

Q.7 Which of the following factors supports the statement that reusability is a desirable feature of a language?

It decreases the testing time. It lowers the maintenance cost.
It reduces the compilation time. Both A and B.

Q.8 Which of the following ways are legal to access a class data member using this pointer?

this.x this->x
*this.x *this-x

Q.9 Which of the following operators cannot be overloaded?

[] ?:
-> *

Q.10 Which of the following header file includes definition of cin and cout?

iostream.h iomanip.h
ostream.h istream.h

Advertisment

Share


Advertisement