Professional Documents
Culture Documents
Instruction to Candidates:
1) Section - A is compulsory.
2) Attempt any Nine questions from Section - B.
Section - A
Q1) (15 x 2 = 30)
a) What is a variable? How is it declared?
b) What are the components of user defined function?
c) Differentiate between structure and union.
d) What do you understand dynamic memory allocation?
e) What is a template?
f) List features of constructors.
g) List four differences between call by value and call by reference.
h) How many arguments are required in the definition of an overloaded
binary operator?
i) What is a class? How does it accomplish data hiding?
j) What is the difference between break and continue?
k) Differentiate between ifstream class and ofstream class.
1) What are various types of inheritances?
m) What is an exception and how is it generated?
n) What is an interrupt?
o) What is the significance of destructor in C ++?
P.T.O.
Section - B
(9 x 5 = 45)
Q2) Write a program to find whether the integer number entered by the user is a
palindrome or not.
Q6) Explain with the help of example operator overloading for unary operator
(for non friend function).
Q7) Explain with example the relationship between pointers and arrays (consider
1-D and 2-D)
Q9) Discuss the significance of new and delete keywords with respect to pointers
with example.
Q11) Explain the usage of public, private and protected access modifiers for
members in inheritance.
Q12) Write a program to subtract two 2-D matrices (Make use of constructor
overloading and destructors).
Q13) What are input and output streams? Explain various streams available in C ++.
J-3152[S-1008] 2