You are on page 1of 2

Roll No........................

Total No. of Questions : 13] [Total No. of Pages : 02


J-3152[S-1008] [2037]
M.Sc. (CST) (Semester - 2nd)
OOPS CONCEPTS USING C ++ (M.Sc. (CST) - 204)
Time : 03 Hours Maximum Marks : 75

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.

Q3) Compare object oriented programming with procedure oriented programming.

Q4) Explain unions with a suitable example.

Q5) What is recursion? Write a recursive program to find factorial of a number?

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)

Q8) Write a short note on polymorphism.

Q9) Discuss the significance of new and delete keywords with respect to pointers
with example.

Q10) Explain function templates with suitable 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

You might also like