Académique Documents
Professionnel Documents
Culture Documents
tt
Reg.
Name
NO.
: .or.r...r.......r...........o....
! ...................o...o.......r...rr
ffi
M 18L92
Time : 3 Hours
Instruction : Answerall questions.
1. a) Givethesyntaxof switchstatementin C.
b) Writea C programto find the sumof digits of a givennumber.
c) Whatis a pointer? How do you assigna pointerto an array?
d) Whatis a sfructure? Giveits syntax.
e) Brieflyexplainthe3 objectorientedprinciples.
(5x8=4t
7
8
P.T.O.
Irilffitililr||lffii
M 18192
:1.
';
y 6. a) Explainthebitrviseoperatorsavailablein Javawithexample.
b) Explaintheconceptof garbagecollectionin Java.Whatis theuseof finalize(
methodin Java? Give its syntax.
OR
7 . a) Explain the two usesof superkeyword in Java.Give examplefor each.
b) What do you meanby method overriding in Java ? How is it different from
methodoverloading? Explain with an example.
8. a) Whatis aninterface? How do you implementrnultiple inheritanceusinginterface
Explainwith an example.
b) What is an applet? Give the applet skeleton.
OR
9. a) Explain the following string functions in lavawith an examplefor each.
r) equals
rv) trim.