This document is a question paper for an exam on Object Oriented Programming with C++. It contains 7 questions with multiple parts each. The questions cover fundamental OOP concepts like classes, objects, encapsulation, inheritance, polymorphism, operator overloading and file handling. It also tests knowledge of C++ features like templates, containers and exception handling. Students are required to write code snippets and explanations to demonstrate their understanding of these topics.
[Question Paper] Object Oriented Programming With C++ (Revised Course) [January / 2014]
1. O b j e c t O r i e n t e d P r o g r a m m i n g W i t h C + +
Q u e s t i o n P a p e r ( J a n u a r y – 2 0 1 4 ) [ R e v i s e d C o u r s e ]
1 | Page
M u m b a i B . S c . I T S t u d y
F a c e b o o k | T w i t t e r | I n s t a g r a m | G o o g l e + | Y o u T u b e
– Kamal T.
Time: 3 Hours Total Marks: 100
N.B.: (1) All Questions are Compulsory.
Q.1 Attempt The Following Question: (10 Marks)
(A) Define the following terms with example:
(i) Object (ii) Class
(5)
(B) Design an employee class for reading and displaying the employee information, the
getInfo() and displayInfo() methods will be used respectively. Where getInfo() will be
private method.
(5)
Q.2 Attempt Any Three From The Following: (15 Marks)
(A) What are the features of Object Oriented Programming? Give any two applications. (5)
(B) Distinguish between Procedure Oriented Programming and Object Oriented
Programming.
(5)
(C) Explain polymorphism with example. (5)
(D) Explain the following characteristics of OOP.
(i) Encapsulation (ii) Reusability
(5)
Q.3 Attempt Any Three From The Following: (15 Marks)
(A) What is Static Function? How do we declare a member of a Class Static? (5)
(B) Explain Dynamic Constructor with examples. (5)
(C) What is Class Destructor? Explain. (5)
(D) What is Constructor? State the characteristics of constructor in OOP. (5)
Q.4 Attempt Any Three From The Following: (15 Marks)
(A) Explain the concept of Operator Overloading? (5)
(B) Write a friend for adding the two different subject marks and display its sum, using
two classes.
(5)
(C) Overload the operator unary(++) for demonstrating Operator Overloading. (5)
(D) Design a class shape containing the methods area() and volume() and also overload
the area() function.
(5)
2. O b j e c t O r i e n t e d P r o g r a m m i n g W i t h C + +
Q u e s t i o n P a p e r ( J a n u a r y – 2 0 1 4 ) [ R e v i s e d C o u r s e ]
2 | Page
M u m b a i B . S c . I T S t u d y
F a c e b o o k | T w i t t e r | I n s t a g r a m | G o o g l e + | Y o u T u b e
– Kamal T.
Q.5 Attempt Any Three From The Following: (15 Marks)
(A) What is Inheritance? Explain Multiple Inheritance and Multilevel Inheritance with
example.
(5)
(B) Explain protected versus private member access mode. (5)
(C) Explain the following terms in brief: (i) Virtual Class Function (ii) Abstract Class (5)
(D) Explain the different types of File Mode. (5)
Q.6 Attempt Any Three From The Following: (15 Marks)
(A) Explain following functions:
(i) put() (i) get() (iii) getline() (iv) write() (v) read()
(5)
(B) Define the following terms:
(i) Stream
(ii) Input Stream
(iii) Output Stream
(5)
(C) Explain Stream Manipulator with examples. (5)
(D) What is Exception Handling? Explain. (5)
Q.7 Attempt Any Three From The Following: (15 Marks)
(A) What is Standard Template Library (STL)? How STL is different from C++ Standard
Library?
(5)
(B) What is function Template? Explain it with example. (5)
(C) What is Class Template? Explain it with example. (5)
(D) What is Container? State and explain types of Containers. (5)