2016 OBJECT ORIENTED PROGRAMMING

Mahatma Gandhi Kashi Vidyapeeth
BCA(3rd semester)
OBJECT ORIENTED PROGRAMMING
2016

MM:75                                              Timing:3hrs

Attempt any five questions                       Each ques carry 15 marks.
Note : The answers to short questions                        should not exceed 200 words and the              answers to long questions should                    not exceed 500 words.



Q1- (a) List out the features of OOPS? Explain polymorphism and encapsulate. 7

(b) Explain the use of the following operation in C++ along with an example of each : 8
(i) && (ii) ??  (iii) ++ (iv)  %


Q2- (a) What are constructors and destructor in C++ ? How are they defined and when are they used? Illustrate with and example for each.   8

(b) Write short notes on the following : 7
(i) Dynamic Memory Allocation
(ii) C++ Garbage Collection


Q3- (a) How can we achieve reusability of class in OOPS. Explain all its types. 6

(b) Define operator overloading and function overloading. Write a C++ program to overload '+' operators to concatenate two strings and two complex numbers. 9


Q4- (a) Explain the concept of a template with the help of an example. 7.5

(b) Explain the different forms of polymorphism in C++ with the help of example. 7.5


Q5- (a) Explain the following functions: 12
(i) eof() (ii) seekp() (iii) bof() (iv) get() (v) seekg (vi) getline()

(b) How can you achieve formatted output in C++? 3


Q6- (a) What do you mean by exception handling? Write a C++ program that throws an arithmetic exception whenever the input number is less than zero. 9

(b) Differentiate between :  6

(i) Procedural programming and object oriented programming
(ii) tell p ()  and tell g ()


Q7- Write short notes on any two of the following : 7.5 * 2 = 15

(i) Pure virtual function
(ii) Generic classes
(iii) Files and streams.

ALL THE BEST
🙂🙂🙂🙂🙂

Comments

Popular posts from this blog

MGKVP BCA 2ND SEM C PROGRAMMING QUESTION PAPER

Mgkvp bca 6th semester Information System : Analysis Design and Implementation previous years question papers and notes

MGKVP BCA COMPUTER FUNDAMENTAL QUESTION PAPER