Which of the following is correct about class and structure?
A -
class can have member functions while structure cannot.
B -
class data members are public by default while that of structure are private.
C -
Pointer to structure or classes cannot be declared.
D -
class data members are private by default while that of structure are public by default.
2-
Which of the following concepts means wrapping up of data and functions together?
A -
Abstraction
B -
Encapsulation
C -
Inheritance
D -
Polymorphism
3-
Which of the following concepts means waiting until runtime to determine which function to call?
A -
Data hiding
B -
Dynamic casting
C -
Dynamic binding
D -
Dynamic loading
4-
How "Late binding" is implemented in C++?
A -
Using C++ tables
B -
Using Virtual tables
C -
Using Indexed virtual tables
D -
Using polymorphic tables
5-
Which of the following operator is overloaded for object cout?
A -
>>
B -
<<
C -
+
D -
=
6-
Which of the following is the correct class of the object cout?
A -
iostream
B -
istream
C -
ostream
D -
ifstream
7-
Which of the following cannot be used with the keyword virtual?
A -
destructor
B -
member functions
C -
class
D -
constructor
8-
Which of the following functions are performed by a constructor?
A -
Construct a new class
B -
Construct a new object
C -
Construct a new function
D -
Initialize objects
9-
Which of the following problem causes an exception?
A -
Missing semicolon in statement in main().
B -
A problem in calling function.
C -
A syntax error.
D -
A run-time error.
10-
Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.