(A) Static allocation
(B) Static typing
(C) Dynamic binding
(D) Dynamic allocation
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.
A template provides a convenient way to make a family of?
(A) variables and data members
(B) functions and classes
(C) classes and exceptions
(D) programs and algorithms
Public Inheritance represents?
(A) “IS A” relationship
(B) ―Has A‖ relationship
(C) ―IS Special Kind of‖ relationship
(D) None of the above
Adding a derived class to a base class requires fundamental changes to the base class.
(A) True
(B) False
We can call base class constructor from derived class constructor?
(A) From derived class constructor body
(B) From the initializer list of derived class constructor
(C) From any member function of derived class
(D) We can not call the base class constructor
Consider the code below, class class1{ public: int I; }; class class2 : public class1 { }; Then int member I of class1 is __ in class2.
(A) public
(B) private
(C) protected
(D) None of the above
Consider the following two lines of code written for a class Student, 1. Student sobj1,sobj2; 2. sobj2 = sobj1; In line No.2 what constructor of Student class will be called?
(A) Default constructor of Student class
(B) Copy constructor of student class
(C) Both default and copy constructer of Student class
(D) No constructor will be called
Child class can call constructor of its?
(A) Direct base class
(B) Indirect base class
(C) Both direct and indirect base classes
(D) None of the above