Professional Documents
Culture Documents
'il=*
USN
\i l4!Tr\1:'
m:
'::'tt::t'{!
Sixth Semester B.E. Degree Examinafibn,
Proqramminq intava
Programming,indAVA
July/August 2022
t**n"
18C56s3
,N
-$u*.
d
Time: 3 hrs. =,,'1
r:i:lr{,
Marks: 1oo
Note: ,4zsper an! FIVE full question;i ihoosing ONE full questian fiom each module.
a; ' rr". !..r
.iil:;li
o
d
Module-t i::..::i.
oz
b. Write a program to find big.gest,r0mong 3 numbers usinj temary operator. (05 Marks)
c. Differentiate between whiqp loop and do-while loop iii Java. ,,,-1.-"i.
-"' (05 Marks)
a:
6o
btc
a. write a java prograrn to perform ,i.pl.?*T;';;;r operation. . (05 Marks)
b. Discuss for - each loop with an example. . ;_ (05 Marks)
2€ c. Demonstrate the use of :
i) Continue statement in while loopi'- t ;,.i;r
ii
-u
'tro ii) Break statement in do while loop.. l;tl; .,
(10 Marks)
oX
o." "':r'l:'t':.,:l ,:::,':',',::,,,,.,.,,..,,t" Modulg-3 o.r,
a. Explain class with an example (05 Marks)
o: b. are constructors? Explain with an ex"aipp!s'. (05 Marks)
..*iWhat
c..'. Explain the followiq$ir'ild
qlE
' ?$
=!
'o
o
c. Explain abstract class and abstract method with an example. (05 Marks)
z
E Module-4
a. ",."=,,
What is packa$etHbw to create and import package in java. Explain with an example.
.. (10 Marks)
b. What is,an iiiterface? Explain how to define and implement interface by taking suitable
(10 Marks)
'**f,;11;1i'' I of2
,i1:::.
-.i '=r...1
.,w
.r.::
18CS653
oR 's&h'
8 a. ^Wff%"
What is an exception? Explain the following : d'$rury
i) try *.+ i*#
ii) catch *#ffi
iii) throw 1,#
(12 Marks)
(08 Marks)
(10 Marks)
(10 Marks)
l0 (10 Marks)
(10 Marks)
2 of2