(A) general template
(B) partial specialization
(C) complete specialization
(D) ordinary function
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.
When a virtual function is called by referencing a specific object by name and using the dot member selection operator (e.g., squareObject.draw()), the reference is resolved at compile time?
(A) True
(B) False
(C) NA
(D) NA
Suppose we have two derived classes from a single class, can we write a method with same name in both these derived classes? Choose the best option?
(A) No
(B) Only if the two classes have the same name
(C) Only if the main program does not declare both kinds
(D) Yes
__ and __ methods may not be declared abstract.
(A) private,static
(B) private,public
(C) static,public
(D) none of given
__ is a relationship.
(A) Inheritance
(B) Polymarphism
(C) abstraction
(D) encapsulation
The __ relationship indicates that an object contains other objects.
(A) ‘has-a’
(B) ‘is-a’
(C) ‘be-
(D) None of given
Constant objects cannot change their state?
(A) True
(B) False
(C) NA
(D) NA
__ provide the facility to access the data member.
(A) accesser function
(B) private function
(C) inline function
(D) None of the given