You are on page 1of 1

22 October, 2021

Max. marks: 15
Updated MID SEM-II Time:50 mins
OBJECT ORIENTED PROGRAMMING (ECPE-40)

Note: All Questions are compulsory. Please write your Roll Number, Date, Session
(Nov/Dec, 2021) and your name and signature carefully on your answer sheet. Also sign
every page of your answer sheet and do mention the total number of pages used.

Q1. What is runtime polymorphism? How virtual functions can be used to implement the
runtime polymorphism? Explain with the help of example. [5 Marks]

Q2. Write a program in C++ that illustrates the execution process of constructors of base class
and derived classes considering the case of multiple inheritance [3 Marks]

Q3. What is Multithreading? How does it improve the performance of Java? [2 Marks]

Q4. What is an interface? What are the major differences and similarities between an interface
and a class? Describe the various forms of implementing interfaces. Give examples of Java
code for each. [5 Marks]

1|Page

You might also like