(A) Base
(B) Derived
(C) Abstract
(D) virtual
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.
If a class D has been derived using protected inheritance from class B (If B is a protected base and D is derived class) then public and protected members of B __ accessed by member functions and friends of class D and classes derived from D?
(A) can be
(B) cannot be
(C) does restirct to be
(D) not given
Which sentence clearly defines an object?
(A) one instance of a class
(B) another word for a class
(C) a class with static methods
(D) a method that accesses class attributes
Consider the following statement Cupboard has books What is the relationship between Cupboard and books?
(A) Composition
(B) Aggregation
(C) Inheritance
(D) None of the given options
Which of the following is an integral part of an object?
(A) State
(B) Behavior
(C) Unique identity
(D) All of the given
A range is often supplied to an algorithm by two __ values.
(A) italic
(B) iteration
(C) iterator
(D) None of given
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