You are on page 1of 2

rED (15) - 3134

(RE\4SION 2015) Signature


-
DIPLOMA EXAMINATION IN ENGINEERING/TECHNOLOGY/
MANAGEMENT/COMMERCIAL PRACTICE OCTOBER, 2OI8
-
OBJECT ORIENTED PROGRAMMING THROUGH C++
lTime '. 3 hows
(Maximum marks : 100)

PART A
-

E
Maximwn marts : l0)

EG
Marks
I

LL
Answer a// questions in one or two sentences. Each question canies 2 marks.

C+

CO
1. Define enumerated datatype in

2. Define default argument.

3. What is the use of constuctors in C+


I C
classes ?
HN

4. Discuss composition in C+-r


EC

5. Define multiple inheritance in C++ (5x2 = 10)


L YT
PO
N
DI
A'
M

(5x6 30)
=

ts ll [n.r.o
2

Marks
PART
- a
(Maximum madrs : 60)
(Answer oze firll question firom each unit Each firll question canies 15 marks.)

UNn-I
n (a) Define functiorx. What are the differcnt tlpes of frmctions in C+r 9
(b) Describe the concept of memory managernent in C++ . 6
On
lV (a) Dscuss with an example about recursion in C# g

O) Writ€ a program in C+ to find the sum of even numbers r4l to 'n'. 6

II

E
UNrr
-

EG
V Explain the basic concepts of Object Oriented Programming. 15

On

LL
VI (a) Dscuss inline fimctions with zuitable example. g

CO
(b) Write a note on consfuctors in C# 6

Uurr III
C
-
VII (a) Write a progmm in C+} to overload relational operator (= =; to compare
I
HN
two strings 9
(b) Wilh the help of a sample program, explain hierarchical inheritance. 6
EC

On
VIII (a) With the help of an example, explain how to overload unary operator.
YT

- (b) Explain virtual base class. 6


L
PO

Urtr IV
-
D( (a) Explain how the corstuctor of the base class can be invoked when the object
. of the derived class is crealed.
N

9
(b) What are the nrles for using virhral finctions ?
DI

6
A'

On

X (a) Explain multiple inhoiunce in C# with an exanple progranl g


M

(b) Discuss how to use multiple catch st{rt€ment for tundling exception in C+l 6

You might also like