[2] BCA–C-301
Roll No. ………………….. (h) Under inheritance, a super class inherits all of the
members in all of its subclasses.
(i) C++ supports three kinds of polymorphism.
(j) A new class can inherit the characteristics of an
BCA–C-301 existing class.
(k) Super classes are also called Parent classes/Base
B. C. A. (Third Semester)
classes.
EXAMINATION, 2019
(l) Memory is allocated when a class is defined.
OBJECT ORIENTED PROGRAMMING USING C++
Time : 2:30 Hours 2. Differentiation between the following : 3 each
Maximum Marks : 60 (a) Global and local variable
Note : All questions have to be attempted. (b) Pointer and reference variable
Section—A (c) Public and protected
1. State whether the following statements are True or (d) Arrays and pointers
False. Also justify your answer : 1 each
Section—B
(a) A static data member is shared by the all the
object of class. 3. Attempt any two questions : 6 each
(b) In C++, reference is same as pointer. (a) Define polymorphism. Explain types of
polymorphism with example.
(c) A virtual function can be a static member
function. (b) Explain virtual class with example.
(d) A constructor function can only be defined as a (c) Define inheritance. Explain various types of
public. inheritance with example.
(e) Inline function is invoked as a normal function. 4. Attempt any two questions : 6 each
(f) C is an object oriented programming language. (a) Write a program in C++ to overload binary ‘+’
(g) In procedure-oriented programming all data are operator which will add two complex numbers of
shared by all functions. the form given as (a + ib).
(B-40) P. T. O. (B-40)
[3]
(b) What are the concepts of C++ ? Explain each.
(c) What do you mean by Stream I/O Explain the
stream classes in C++.
5. Attempt any two questions : 6 each
(a) What do you mean by function overloading ?
How are default parameters used in function
overloading ? Explain giving example.
(b) What are the different types of operator available
C++ ? Explain.
(c) What is friend function and its properties ?
Explain it benefit also.
BCA–C-301
(B-40)