LinkedIn Insight Object Oriented Programming Using C++-Computer Science-BSC-Nagpur-Summer-2017 - Grad Plus

Object Oriented Programming Using C++-Computer Science-BSC-Nagpur-Summer-2017

Bachelor of Science (B.Sc.) Semester-2 Examination
COMPUTER SCIENCE (Object Oriented Programming Using C++)

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) What are classes and objects ? Describe syntax for declaring a class with suitable example. [5M]

(B) Explain features of OOP’s. [5M]

OR

(C) Write a program to implement class :

(I) Data member

(i) Name of cricket player

(ii) Score in last two matches.

(II) Member function

(i) To assign initial values

(ii) To compute total and average score

(iii) To display data. [5M]

(D) What is the purpose of static data member ? Explain with example. [5M]

 

EITHER

2. (A) Explain the need of copy constructor with example. [5M]

(B) How is constructor invoked ? Explain usage of constructor giving suitable example. [5M]

OR

(C) Explain default constructor with example. [5M]

(D) Explain unary operator overloading with example. [5M]

 

EITHER

3. (A) What is inheritance ? List its types. Explain single inheritance with example. [5M]

(B) Write a program to illustrate the use of this pointer and explain. [5M]

OR

(C) What is an abstract class ? How will you define it ? Give an example. [5M]

(D) What is derived class ? Explain giving suitable example. [5M]

 

EITHER

4. (A) Draw and explain exception handling model. [5M]

(B) Write a short note on fault tolerant design techniques. [5M]

OR

(C) What are virtual functions ? State rules for virtual functions. [5M]

(D) How will you handle an uncaught exception ? [5M]

 

5. Attempt all :

(a) Explain private and public specifier. [2½M]

(b) Differentiate between constructors and destructors. [2½M]

(c) Explain multilevel inheritance. [2½M]

(d) What meaning does it convey :

(i) Hit the exception

(ii) Throw the exception ? [2½M]


 

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