Skip to content
Previous Year Question Paper

AD/AL/CD/CY/IS-305 (GS) – Object Oriented Programming and Methodology

November 2022AIMLSEMESTER-3
November 2022
Max Marks: 70
Duration: 3 Hours
Instructions:

Attempt any five questions.

All questions carry equal marks.

Q.1
a)Unit 1

Describe the various control statement with example.

b)Unit 4

Discuss and compare run time and compile time polymorphism.

Q.2
a)Unit 1

Explain object oriented programming languages with its features.

b)Unit 2

What are Empty classes? Can instance empty class be created? Give reason.

Q.3
a)Unit 1

Discuss the role of Cout and Cin in detail. Why they are used in C++ and from which class they belong to? Explain in detail.

b)Unit 4

What is Operator overloading? Can friend function be used to overload the assignment operator (=).

Q.4
Unit 5/2/4

Write short notes on (any two):

i) Exception handling

ii) New and delete

iii) Polymorphism

Q.5
a)Unit 3

Write a program in C++ which demonstrate the use of Inheritance.

b)Unit 1

Explain pointer and function pointer.

Q.6
a)Unit 4

What are the advantages and limitation of using default arguments in a function? Write a program which defines a function with three default arguments and call the function in four different ways.

b)Unit 4

How inherited method is different from redefined method?

Q.7
a)Unit 3

Design a class called as FATHER and MOTHER as base classes and class CHILD which is derived from both FATHER and MOTHER. Write a C++ program to display the qualities of CHILD due to inheritance.

b)Unit 1

What are the various stream classes and stream error? Explain them in brief. What are input and output streams? Give examples.

Q.8
a)Unit 2

What are the access modifiers? How many types of access modifiers are available in C++? Explain each of them and their role in implementing the data hiding in object oriented programming.

b)Unit 5

Explain in detail about exception and how they handled? Define function template and class template.