(A) True
(B) False
(C) NA
(D) NA
Tag: Object Oriented Programming Mcqs
In __ a base class can be replaced by its derived class.
(A) Sub-typing
(B) Super-typing
(C) Multiple-typing
(D) Restricted-typing
One purpose of an iterator in the STL is to connect algorithms and containers?
(A) True
(B) False
(C) NA
(D) NA
Considering the resolution order in which Considering the resolution order in which compiler search for functions in a program; the first priority is given to; the first priority is given to?
(A) general template
(B) partial specialization
(C) complete specialization
(D) ordinary function
When a virtual function is called by referencing a specific object by name and using the dot member selection operator (e.g., squareObject.draw()), the reference is resolved at compile time?
(A) True
(B) False
(C) NA
(D) NA
Suppose we have two derived classes from a single class, can we write a method with same name in both these derived classes? Choose the best option?
(A) No
(B) Only if the two classes have the same name
(C) Only if the main program does not declare both kinds
(D) Yes
__ and __ methods may not be declared abstract.
(A) private,static
(B) private,public
(C) static,public
(D) none of given
__ is a relationship.
(A) Inheritance
(B) Polymarphism
(C) abstraction
(D) encapsulation