Optional Paper—1
Time : 3 Hours
Maximum Marks : 50
N.B. :— (1) All questions are compulsory and carry equal marks.
(2) Draw well labelled diagram wherever necessary.
EITHER
1. (a) Describe the characteristics of OOP. [5M]
(b) What is Inline function ? Write a program using inline function to find largest of three numbers. [5M]
OR
(c) What is Class ? How is it created ? Write an example to define a class. [5M]
(d) Write a C++ program to illustrate the static function. [5M]
EITHER
2. (a) Write a program to overload increment operator(++). [5M]
(b) What is copy constructor ? Explain the necessity of defining copy constructor. [5M]
OR
(c) What is parameterized constructor ? Write a program to demonstrate parameterized constructor. [5M]
(d) What do you mean by overloading ? State different rules for operator overloading. [5M]
EITHER
3. (a) What is multilevel inheritance ? Write a program to demonstrate multilevel inheritance. [5M]
(b) Write a note on :
(i) this pointer
(ii) pointers to objects. [5M]
OR
(c) Define Dynamic objects. Explain New and Delete operators with an example. [5M]
(d) What is abstract class ? Write a program to demonstrate an abstract class. [5M]
EITHER
4. (a) What are the different advantages and disadvantages of exception handling mechanism ? [5M]
(b) What is virtual function ? Write a program to illustrate the use of virtual function. [5M]
OR
(c) Write a note on try block, throw and a catch block. [5M]
(d) Explain fault tolerant design techniques in brief. [5M]
5. (a) List and explain different access specifiers. [2½M]
(b) Explain concept of Binary operator overloading. [2½M]
(c) What is Hierarchical Inheritance ? Explain. [2½M]
(d) What are rules for handling Exception successfully ? [2½M]