Sunteți pe pagina 1din 2

14111 14111 14111 14111 14111 14111 14111 14111 14111

14111 Roll No.


14111 14111 14111 14111 14111 Total14111
No. of Pages
14111 : 02 14111

Total No. of Questions : 09


B.Tech.(ECE)/(EE)/(EEE)/(EIE)/(CSE)/(IT) (Sem.–3)
14111 14111 OBJECT
14111 ORIENTED
14111 PROGRAMMING
14111 14111 USING
14111 C++ 14111 14111

Subject Code : CS-252


Paper ID : [A0304]
14111 Time : 3 Hrs.
14111 14111 14111 14111 14111 Max. Marks
14111 14111 : 60 14111

INSTRUCTION TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks

m
14111 14111
each. 14111 14111 14111 14111 14111 14111 14111

2. SECTION-B contains FIVE questions carrying FIVE marks each and students
have to attempt any FOUR questions.
o
.r c
3. SECTION-C contains T HREE questions carrying T EN marks each and students
14111 14111
have to14111
attempt any 14111 14111
T WO questions. 14111 14111 14111 14111

14111 14111 14111

pe
14111
SECTION–A
14111 14111

o m
14111 14111 14111

1. Write briefly :

p a .r c
r
a. What is data abstraction?

e
14111 14111 14111 14111 14111 14111 14111 14111 14111

14111 14111 14111


c. What
b 14111
does polymorphism mean 14111 14111
in C++ language?
p
b. What do you mean by dynamic initialization of objects?

a 14111 14111 14111

14111 14111
d. Explain control structures.
14111 14111

b
14111 rp 14111
e. What is a reference variable? What is its major use?
14111 14111 14111

f. What is generic class?


14111 14111 14111 14111 14111 14111 14111 14111 14111

g. What do you mean by data hiding?

14111 14111
h. What is input stream?
14111 14111 14111 14111 14111 14111 14111

i. List the objectives of object oriented programming in C++.

14111 14111 j. What is base class?


14111 14111 14111 14111 14111 14111 14111

14111 14111 14111 14111 14111 14111 14111 14111 14111

14111 1 | M-56511
14111 14111 14111 14111 14111 14111 (S2)-762
14111 14111

14111 14111 14111 14111 14111 14111 14111 14111 14111


14111 14111 14111 14111 14111 14111 14111 14111 14111

SECTION-B
14111 14111 14111 14111 14111 14111 14111 14111 14111

2. Distinguish between objects and classes.

14111 3.
14111 What do you mean by14111
14111 overloading of a function? When
14111 14111 do we use this concept?14111
14111 14111

4. What is a copy constructor? Explain with the help of a program.

14111 5.
14111 What does
14111 inheritance mean in C++?
14111 In what order14111
14111 are the class constructors
14111 called
14111 when 14111

a derived class object is created? Explain.

6. Describe the various classes available for file operations.

m
14111 14111 14111 14111 14111 14111 14111 14111 14111

o
.r c
SECTION-C
14111 14111 14111 14111 14111 14111 14111 14111 14111

14111
7.
14111
a. Distinguish between compile time and run time polymorphism.
14111
b. What
pe
14111
is a virtual function? Why 14111 14111
do we need virtual
o m
functions?14111 14111 14111

8.
a .r c
Write a class template to represent a generic vector. Include member functions to perform
the following
ptasks : 14111

r e
14111 14111 14111 14111 14111 14111 14111 14111

14111 14111
b
a. To create the vector

b. To 14111
modify the value of a given element
14111 14111

a p
14111 14111 14111 14111

14111 14111
c. To multiply by a scalar value
14111 14111

b
14111 rp 14111
d. To display the vector in the form (10, 20, 30 ………)
14111 14111 14111

9. a. What is object oriented programming? How it is different from procedure oriented


14111 14111 programming?
14111 Explain.
14111 14111 14111 14111 14111 14111

b. Describe the syntax of multiple inheritances. When do we use such an inheritance?


Explain.
14111 14111 14111 14111 14111 14111 14111 14111 14111

14111 14111 14111 14111 14111 14111 14111 14111 14111

14111 14111 14111 14111 14111 14111 14111 14111 14111

14111 2 | M-56511
14111 14111 14111 14111 14111 14111 (S2)-762
14111 14111

14111 14111 14111 14111 14111 14111 14111 14111 14111

S-ar putea să vă placă și