Escolar Documentos
Profissional Documentos
Cultura Documentos
Sub
Questio
n
a)
b)
c)
d)
e)
f)
a)
b)
c)
d)
a)
Answer
Marks
Distribution
Correct Definition
Example
iostream.h
math.h
Header file stdio.h to be included
Colon (:) after public is missing
Semicolon (;) at the end of class
missing
E1.getexamdetails()
E1.showexamdetails
o9
D8
y7
n6
201:250
202:1250
203:7500
Option (iv)
Same function name with different number
and type of arguments.
(i) constructor
overloading/polymorphism/function over
loading.
(ii) destructor, invoked when object goes
out of scope
(i) Correct syntax for class and private
members declaration
(ii) default constructor
(iii) function setPrice() definition
(iv) function setdetails(), display()
definitions
(i) Hierarchical inheritance
(ii) Location, Area, Sale
(iii) Enter(),Show(),Register(),ShowC()
(iv) Input(),Output()
Any correct logic
1+1
+
Mark for each
identified error.
+
1
1
1
1
1
1
1
3M
b)
c)
d)
e)
a)
b)
c)
a)
b)
1+2
2
1+1
+
1+1
1+1+1
1+1
1+1+1+1
+++
2007, 25-Jan-1984);
(2) (i) PLEVEL
count(*)
P001
1
P002
2
P003
2
(ii) Max(DOB)
Min(DOB)
12-July-1987 23-Aug-1981
(iii) NAME
PAY
Dharaneedhar 24000
Manoj
24000
(iv) PLEVEL
PAY+ALLOWANCE
P002
34000
6
a)
(X + Y) = X Y
(XY) = X + Y
b)
c)
d)
a)
b)
c)
d)
e)
1+1
1+1+1+1
+
1