(A) 0
(B) 0.0
(C) 1
(D) null
Tag: OOP Mcqs
An abstract class is useful when?
(A) We do not derive any class from it
(B) There are multiple paths from one derived class to another
(C) We do not want to instantiate its object
(D) You want to defer the declaration of the class
The mechanism of selecting function at run time according to the nature of calling object is called?
(A) late binding
(B) static binding
(C) virtual binding
(D) None of the given options
Two important STL associative containers are __ and __.
(A) set,map
(B) sequence,mapping
(C) setmet,multipule
(D) sit,mat
Each try block can have __ no. of catch blocks.
(A) 1
(B) 2
(C) 3
(D) As many as necessary
A function call is resolved at run-time in__.
(A) non-virtual member function
(B) virtual member function
(C) Both non-virtual member and virtual member function
(D) None of given
A copy constructor is invoked when?
(A) a function do not returns by value
(B) an argument is passed by value
(C) a function returns by reference
(D) an argument is passed by reference
A pointer to a base class can point to objects of a derived class?
(A) True
(B) False
(C) NA
(D) NA