(A) italic
(B) iteration
(C) iterator
(D) None of given
Tag: OOP Mcqs
The specialization pattern after the name says that this specialization is to be used for every?
(A) data type
(B) meta type
(C) virtual type
(D) pointer type
Function templates should be used where code and behavior must be identical?
(A) True
(B) False
(C) NA
(D) NA
class X : public A, public B { … … };?
(A) Single inheritance
(B) Multiple inheritance
(C) Double inheritance
(D) None of the given options
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 ( > )