OOP (2nd) Dec2018
OOP (2nd) Dec2018
SECTION-A
24547 24547 24547 24547 24547
.r c
Q1 Answer briefly :
24547 24547 24547
a) List various features24547 24547
of object oriented 24547
programming language. 24547 24547 24547
p e
b) What is early and late binding?
m
pa o
.r c
24547 24547 24547 24547 24547 24547 24547 24547 24547
br
c) Define structure and union.
24547 24547
d) What is object and class?
24547 24547 24547
p e
24547 24547 24547 24547
a
e) What are various characteristics of a pointer variable?
p
24547 24547 f) What 24547
is static member function?
24547 24547
g) Write a C++ program to swap two numbers without using third variable.
24547 24547 24547 24547 24547 24547 24547 24547 24547
h) Differentiate union and class.
1|M - 1 0 0 5 2 (S3)-1898
SECTION-B
24547 24547 24547 24547 24547 24547 24547 24547 24547
Q2 What is data hiding and encapsulation? How it is implemented using C++? Explain with
example.
24547 24547 24547 24547 24547 24547 24547 24547 24547
Q3 Define Constructor. What are its different types? Explain with suitable example.
Q4 What is function and operator overloading? Write and explain a C++ program to
24547 24547 24547
demonstrate the concept24547 24547
of unary operator 24547
overloading. 24547 24547 24547
Q5 Discuss the role of streams, buffers and files by taking suitable example in C++.
24547 24547 24547 24547 24547 24547 24547 24547 24547
Q6 Write notes on the following :
a) Array of structure
24547 24547 24547 24547 24547 24547 24547 24547 24547
24547 Q7
24547 What are24547
friend and inline
24547functions? 24547
o m
Explain with example.
24547 24547 24547 24547
p e m
pa o
.r c
24547 24547 24547 24547 24547 24547 24547 24547 24547
p e
24547 24547 24547 24547
p a
24547 24547 24547 24547 24547
2|M - 1 0 0 5 2 (S3)-1898