(A) template
(B) Class
(C) template < class T, class U>
(D) None of the above
Tag: Object Oriented Programming
When we write a class template the first line must be:
(A) template < class class_name>
(B) template < class data_type>
(C) template < class T >
(D) class class-name()
In case of multiple inheritance a derived class inherits:
(A) Only the public member functions of its base classes
(B) Only the public data members of its base classes
(C) Both public data members and member functions of all its base classes
(D) Data members and member functions of any two base classes
Which is not the Advantage of inheritance?
(A) providing class growth through natural selection
(B) facilitating class libraries
(C) avoiding the rewriting of code
(D) providing a useful conceptual framework
The find() algorithm:
(A) finds matching sequences of elements in two containers
(B) finds a container that matches a specified container
(C) takes iterators as its first two arguments
(D) takes container elements as its first two arguments
Non Template Friend functions of a class are friends of __ instance/s of that class.
(A) All
(B) One specific
(C) All instances of one date type
(D) None of the above
When the base class and the derived class have a member function with the same name, you must be more specific which function you want to call (using __)?
(A) scope resolution operator
(B) dot operator
(C) null operator
(D) Operator overloading
In order to define a class template, the first line of definition must be?
(A) template
(B) typename
(C) Template Class
(D) Class