You are on page 1of 2

Roll No. Total No.

of Pages: 02
Total No. of Questions: 07
B. C. A. (Sem.-3rd)
OBJECT ORIENTED PROGRAMMING USING C++
Subject Code: BC-304
Paper ID: [B0212]
Time: 3 Hrs. Max. Marks: 60

INSTRUCTIONS TO CANDIDATE:

1. Section-A is compulsory.
2. Attempt any four questions from Section-B.

o
SECTION-A m
.r c (10x2=20)

Q. 1.

(a)
p e
Can we overload destructor in C++? Why or why not.

(b)
p a
Differentiate between + and ++.

(c)
r
What is Early Binding?

b o m
(d)

(e)
w .
What do you understand by Pass By Reference?

What are Local and Global variables? .r c


w (f) What is Dynamic Memory Allocation?
p e
w (g) Write down the syntax to create a class and object.
a
(h) What is Base and Derived Class?
r p
(i) What do you understand by Streams?
.b
(j) What in Buffer?

w
Section-B
w
Q. 2.
w (4x10=40)

(a) Why it is necessary to include header files at the beginning of the program? What role
they play?

(b) Differentiate between a structure and a class.

Q. 3. (a) What are visibility modes in C++?


Page: 1
M-10017
(b) Differentiate between C and C++.

Q. 4. How can you overload Unary operators? Discuss with C++ program.

Q. 5. Define a constructor. What purpose does it serve? How will you declare a constructor?
Explain with example.

Q. 6. What is Inheritance? What are its different types? Also write C++ program to implement
multilevel inheritance.

Q. 7. Write a note on (a) Virtual Functions (b) Copy Constructor

o m
.r c
.....END.....

p e
p a
b r o m
w . .r c
w p e
w a
r p
.b
w w
w

Page: 2
M-10017

You might also like