(A) providing class growth through natural selection
(B) facilitating class libraries
(C) avoiding the rewriting of code
(D) providing a useful conceptual framework
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.
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
Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access?
(A) public members of Derv
(B) protected members of Derv
(C) private members of Derv
(D) protected members of Base
Which of the following is the best approach if it is required to have more than one functions having exactly same functionality and implemented on different data types?
(A) Templates
(B) Overlaoding
(C) Data hiding
(D) Encapsulation
What is true about function templates?
(A) The compiler generates only one copy of the function template
(B) The compiler generates a copy of function respective to each type of data
(C) The compiler can only generate copy for the int type data
(D) None of the above