2017 OBJECT ORIENTED PROGRAMMING

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

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) What is object oriented programming? How it is different from procedure oriented programming? 7

(b) What is operator overloading? Describe various rules of overloading an operator. 8



Q2 (a) How does a main ( ) function in C++ differ from main ( ) in C language ? Explain with example. 7

(b) What is a constructor? How do we invoke a constructor function? Describe with an example. 8


Q3 (a) What are command line arguments in a file? Write a program to explain how to read a text file and to display its Contents on the screen.     7

(b) What is inheritance? Write a program to implement Multiple inheritance using C++. 8


Q4 (a) What is a template? Write a template for adding two numbers of different data types. 7

(b) Explain the difference between exception and error. Write a program containing a possible exception. Use a try block to throw it and a catch block to handle it properly. 8


Q5 (a) Explain loops and control statements with proper example in C++.   7

(b) What do you understand by dynamic and static binding explain with a proper program. 8


Q6 (a) Create a class called rational that represents a rational number p/q as two integers p and q.  Write a program in C++ to overload >> and << operators so that the object of rational can be read and displayed using cin and cout respectively. 8

(b) Define garbage in the context of C++ programming language. What are the methods for garbage collection in C++? Describe. 7


Q7 Write short notes on any two of the following : 7.5 x2=15

(i) Generic Classes
(ii) Aggregation
(iii) Abstract class
(iv) Run time Polymorphism
(v) Name spaces.

                         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