LinkedIn Insight BSc.-Object Oriented Programming-Mumbai-April 2017 - Grad Plus

BSc.-Object Oriented Programming-Mumbai-April 2017

MUMBAI UNIVERSITY

Subject:

Semester: 2

(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) Write down advantages and disadvantages of procedure oriented language.

b) Explain object oriented development.

c) Write down benefits of using object oriented programming.

d) Write a short note on Data abstraction and data encapsulation.

e) Explain dynamic binding with example. Give proper example.

f) What is inheritance? Explain with example the concept of multiple inheritances.

 

Q. 2) Attempt any three of the following:(15M)

a) What is friend function? Write a friend function to display mark sheet of the F. Y. B. Sc. IT student.

b) What is class? Explain with example how objects are passed as argument to member function and objects are returned from member function.

 

c) Write a C++ program to design a class – course.e For reading and displaying the course information, the getInfo() and displaying() methods will be used respectively. The getInfo() will be private method. Write down C++ program to implement the class.

d) What is inline function? Explain with example.

e) What is use of constructor? Explain with example parameterized constructor.

f) Write a C++ program to demonstrate the use of constructor and destructor.

 

Q. 3) Attempt any three of the following: (15M)

a) What is function overloading? Explain with example.

b) What is operator overloading? Write down the rules for operator overloading.

c) How binary operators are overloaded? Write a C++ program to overload binary operator +.

d) What is method overriding? Explain with example.

e) Explain with example abstract class.

f) Explain virtual destructor. Give suitable example.

Q. 4) Attempt any three of the following: (15M)

a) Can private members of a base class are inheritable? Justify.

b) Explain with example multilevel inheritance.

c) Explain how a base class is derived in public and private mode.

d) Write a C++ program to implement following hierarchy.

e) What is exception? Explain exceptions handling mechanism?

f) What happen when raised exception is not caught by catch block? Explain with suitable example.

 

Q. 5) Attempt any three of the following: (15M)

a) Explain with example how function templates are used.

b) Explain how compiler calls to a class and function template.

c) Write a C++ program which defines and uses student class template.

d) What is file? Write down the steps for manipulating files in C++.

e) Explain the hierarchy of file stream class.

f) What are different methods of opening a file? Write a program to open file and enter student details into the file using any method.

Scroll to Top
error: Alert: Content selection is disabled!!