(A) Single inheritance
(B) Multiple inheritance
(C) Double inheritance
(D) None of the given options
Category: Object Oriented Programming Mcqs
Object Oriented Programming OOP Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Object Oriented Programming Mcqs section will help users to prepare mcqs of OOP for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their Object Oriented programming portion from here.
a vector v with the default constructor, another vector w with a one-argument constructor to a size of 11, and insert 3 elements into each of these vectors with push_back(), then the size() member function will return__for v and__for w.
(A) 11 for v and 3 for w
(B) 0 for v and 0 for w
(C) 0 for v and 3 for w
(D) 3 for v and 11 for w
he copy() algorithm returns an iterator to?
(A) the last element copied from
(B) the last element copied to
(C) the element one past the last element copied from
(D) the element one past the last element copied to
Virtual functions allow you to?
(A) create an array of type pointer-to-base class that can hold pointers to derived classes
(B) create functions that can never be accessed
(C) group objects of different classes so they can all be accessed by the same function code
(D) use the same function call to execute member functions of objects from different classes
Which of the following operators can not be overloaded?
(A) Scope resolution operator ( :: )
(B) Insertion operator ( << )
(C) Extraction operator ( >> )
(D) The relation operator ( > )
this pointer does not point to current object of any class?
(A) True
(B) False
(C) NA
(D) NA
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