(Time: 21/2hours)
[Marks: 75]
Please check whether you have got the right question paper.
N. B.: (1) All questions are compulsory.
(2) Make suitable assumptions wherever necessary and state the assumptions made.
(3) Answers to the same question must be written together.
(4) Numbers to the right indicate marks.
(5) Draw neat labeled diagrams wherever necessary.
(6) Use of Non-programmable calculator is allowed.
_____________________________________________________________________________________________________________________________________________
Q. 1) Attempt any three of the following: (15M)
a) What is procedure oriented Programming? What are its characteristics?
b) Differentiate between Object Oriented and Procedure Oriented Programming
paradigms.
c) Discuss the need and advantages of Object Oriented Programming.
d) Discuss various applications of Object Oriented Programming.
e) What do you mean by Dynamic and static binding.
f) Write a short note on (i)Object (ii)Class
Q. 2) Attempt any three of the following: (15M)
a) What is a class? Illustrate the use of class with a simple c++ program.
b) What are inline functions? How an outside function can be made inline?
c) What is a constructor? Explain its characteristics. List various types of constructors?
d) What are friend functions? What are their characteristics? Write a small program to
illustrate the use of a friend function.
e) Explain the use of parameterized constructors with a programming example.
f) What do you understand from nesting of member functions? Explain with suitable programming example.
Q. 3) Attempt any three of the following: (15M)
a) What is function overloading? Explain with suitable example.
b) What is operator overloading? List the operators which can be overloaded and
which cannot be overloaded.
c) Write a c++ program to overload unary minus operator.
d) What are virtual functions? Explain.
e) Define the following
(i) Abstract Class (ii) Pure Virtual Function
f) What is a this pointer? Write a program to illustrate its use.
Q. 4) Attempt any three of the following: (15M)
a) What do you understand from the concept of inheritance? Explain its various types.
b) Explain the use of various visibility modes used in inheritance.
c) Discuss the role of constructors in derived classes in detail.
d) What is an exception? What are advantages of exception handling mechanism in a
program?
e) Explain the concept of throw and catch with suitable example.
f) Write a c++ program to illustrate multilevel inheritance.
Q. 5) Attempt any three of the following: (15M)
a) What are class templates? Explain their use. How a class template can be declared?
b) Explain function template with a programming example.
c) Write a c++ program to implement bubble sort using function template.
d) Explain the working of files in c++.
e) Explain various methods to detect end of file in a c++ program.
f) Explain the following
(i) seekg() (ii) seekp()