Object Oriented Programming 2017-18 Previous Year Paper Solution
Multiple Types

Q1. Answer the following questions: multiple type or dash fill up type

a) What makes a class abstract?

a. The class must not have method definitions.

b. The class must have a constructor that takes no arguments.

c. The class must have a function definition equal to zero.

d. The class which cannot be instantiated as they are mainly for inheritance.


b) Which of the following concepts of oops allows compiler to insert arguments in a function call if it is not specified?

a) Call by Value

b) Call by reference

c) Default arguments

d) Call by pointer


c) How many instances of an abstract class can be created?

a) 1

b) 5

c) 13

d) 0


d) Which of the following cannot be friend?

a) Function

b) Class

c) Object

d) Operation Function

e) Which of the following concepts means adding new components to a program as it runs?

a) Data hiding

b) Dynamic typing

c) Dynamic binding

d) Dynamic loading


f) Which of the following correctly describes overloading of functions?

a) Virtual polymorphism

b) Transient polymorphism

c) Ad-hoc polymorphism

d) Pseudo polymorphism


g) Which of the following is NOT correct 2D array declaration?

a) int m[][3] = {1, 2, 3, 4};

b) int m[3][]= {1, 2, 3, 4};

c) int m[2][3];

d) int m[R][C]; (R & C are constants)


h) Which of the following must be present in switch construct?

a) Expression in ( ) after switch

b) default

c) case followed by value

d) All of these


i) Why is user defined copy constructor required?

a) there is no implicit copy constructor in C++

b) when pointers are involved implicit copy constructor does not give correct result.

c) both a and b.

d) none.


j) Pure virtual function is used

a) to give meaning to derived class function

b) to give meaning to base class function

c) to initialize all functions.

d) None