0% found this document useful (0 votes)
3 views

Java

The document outlines the structure and content of the Second Semester MCA Degree Examination for Programming using Java, held in Aug./Sept. 2020. It includes a list of questions covering various topics such as object-oriented programming principles, Java data types, methods, exception handling, multithreading, and collections. Students are required to answer five full questions from the provided modules.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Java

The document outlines the structure and content of the Second Semester MCA Degree Examination for Programming using Java, held in Aug./Sept. 2020. It includes a list of questions covering various topics such as object-oriented programming principles, Java data types, methods, exception handling, multithreading, and collections. Students are required to answer five full questions from the provided modules.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

o

4
ol o.
o

ffi.HEME
USN
I8MCA2I

Second Semester MCA Degree Examination, Aug./Sept.2020


Programming usidg Java
Time: 3 hrs Mar. Nlarks: 100

ii
Note: Answer ony FIVEfull questions,r'ahlosing O,YE./illl questiort.f'rrtttt cttt'lt trttttlula,
o
O
L
'tl','l
t,', l'@L
= I a. List the key attributes of obje'ct*Oriented programrrring ancl explain alrl fbur of thent.
(10 Marks)
dtt"*jr
o b. Define Automatic type,effi€tsion. Explain with an example. (06lllarks)
c. Explain the following ftillhe* operator (ii) this kelrrvord
6
o (04 N'larks)
89.
bL-
,.d,,,d''
.,tttt, ,:
a. List and explainthidJava's primitive data types.
J)
dU
1 (08 Nlrrks)
!
b. Explain thq..,;following with an example :
EO

.=._l
J:
(i) breakl. '"rr(ii) continue (0tl N'ltrhs)

K DI) c. ExplainiF6it each style for loop with an example? (04 ivlnrks)
{o
DC
ED
'Module-2
?.q 3 a. Explain IndexOf( ) and los..llndexO( ) rvith an example. (0tl Mn rks)
b. List and explain the visibilffiahd scope of the access specificr'/ (l0 i\'la rks)
6=

bU
c. Explain Length Membet*ifi{rrays. (02 l\la rks)

60
orc oi
66
4 a. What is method 0vdrl6ading? Explain fllethod ovcrloading rvith lrelp ot'l]rogranl (0ll i\'lnrks)
)a b. Explain VarargsifrEthod. (0(r lVlurks)
!(,
A -6) c. Explain P.ecursion. (0(r Ma rks)

6-
qa ''
'f itiru i" 'Modul"-3
tro- 5 a. DescribErthe concept of meJhbd overriding with he lp olan example (08 i\'l a rks)
9j
b. Defirte an interface? Exllftiif fibw rnultiple - interf?r ce is irnplernented u'ith an exatnplc
9E
,o
lii ((|tl I\l a rks)
6tE (04 l\larks)
ct",];EX;plain Abstract clrs?ryvith an example
EO ,, t:;r^--t|1* ,''
t;!, -tt2
=E ..r?:,1.!.
>',= ,'
aoe .!?
coo
o= 6 a. What is in heflfdficet uow do YoBlachie ve the ittiteritaltce in.iava'/ [i.xplain witlt an exantple
(t0 Marks)
o. li
tr> -lit

=D
0l b. Explain th e ftfliowing:
U< (i) rind (ii) Super , '6ii) Implements (iv) Package (v) [;xtcnds (10 Nlarks)

-.,i ^i
o Module-4
z 7 a. Briefly discuss con8bpt ofException handlingl (Otl N'la rks)

b. Explain java b (0(r l\l n rk s)

o. c. With an lain Multiple Catch Clauses. (06 l\'l n rks)

:|

:1,?i.

I of 2

. i.ra l.

:i:. .:a
KLE
r1,q.'
Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
.:'
18MCA21

8 a. I-.xplairr thread lili: cyclc'i (08 Marks)


b. Discuss the difTerent thread priorities.
' rl,, '
'
^lh/
I
(06 Marks)
c. [)iscuss the interlhread corunrunication. ,
. ))r.' (06 Marks)

Module-5
9 a. l:xplain Autohoxing rvith arr .*ampl--- (06 Marks)
b. tJriefly discuss values( ) and varueot() rnethods in enumeratioi":,' (08 Marks)
c. Rriefly discuss ahout annotations in Java.
(06 Marks)
,i

IO a. F.xplain rhe corrcepr ol'URL and tJRL connection dih$*,'' (10 Marks)
b. List and explain the collection rnterface Basic opffi5ns. (10 Marks)
s
*{<,k*

2 of2

KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
p-
; Lui:..
I

I
{---

--t \ F
ii?.'tliRtfl a'
tit
{,ffiffiffiHHffi , .* t
.&,
a)

I
I

I- tisl\' 6/l?hICr\,3I
'I'h ird,'b*mrester $,f, Clrt Be[gree Ilx* mr iurntion r .[]ec"2 {l I SlJ n m.?(t n g
Jmva Prograrmrmfffig
,.. \
i \, te i
'l^ime:
-i lrrs. Irfux-:**art<s: Stt
i_l \ '\
,". ".. , a., !
I"'\.
Nu[*;.,...{ru,ns'rr FIYE lnlt frde$rr(rrf,i', c"#orlse*g $NE littl tlwm,tton tratx'ta*li
r', '" - "..'
module.
" :,:

i) Msd"M
C\ I a. L.xplain the key attritrutrxof{}trjett (lriented Erinciples. (tl6 l!tr*rks)
t;l 1,. Fi.xplain the tri:rllorving : i) Tpe *asting ii) this. {M Slerhs)
(:. Explain the use of breu.k as s fbrm of 'goto' ivittr an exnri,tpk,' ,' i(N Mark.rl
,Ti

U
OR
Iixplain the leff r;hifi and r:ight shift $peramrs. ', l'' ';.
LY.
:.i "' 1 a" (M frf,crks)
[:. Hrh*t ii: finhrerx:erj {i:r Irro:p'? Write a Ja'ie prirffaut ts.searuh an element in an array tsing
.r '-
si rlnhirrtcsd. ftrr loop. ,' ' {{}6 i[Inrlis]
|t- u. Writi: im.; three nreth+dsi of'string r:lass t* i,:s,.mfi?re stfing,s rvith syntax ixd example.
,:l "r (06 i[fal*r]
,iI I:

ff{ll.d$t"I.{?:3
i:l ir "3 a- Expiain ilb{rut sti}ti(: variahle" strtic metlrrrd mrcl stalic lrlock, wit]r suitable exarnple.
{06 htarks}
b. Eisplain about methorl al'erl*.u.iio;4 arid constnletnr ovedorrJing. n'ith $uitahle prograrr],
({K nturk*}
:in c. lVhat ii: varargs? Whatpr* th* rtr$trit:tions ofyarargs? {M hler{cr;
| ,:
d;s
.': ,. ''. 'j {}R.
ii ::i 4a" l"l*w Super r:l;**s $,rii1".,I)iui"-toffi and mernh{:rs arc calkrr{ in .lavir? (0ti ilt*rkr)
h. [,,n:plair thr fi:ligrrrig[ :
n,{,
:3-
i1 Dy-'nruui;q,m:lryli,roti<tispat*h ii) dbstractclats. (l{} &larkrt

;f;k
X
I!:X-o-du!e-J-
5a. \!'hnt'ure intsrthrcs? I-lou; tei i,rrplerffiiiifii* irrtefihces in Javai' {06 Il{arks}
h, i]*iirl*: ;r $tir,:kag,s. Hnplairr the crection pf n:ackag,* using any exantple {t}$ It{arhs;
:i.
tUlr:It r.il.:i lr/{JrJ !tl*:tn hy' Sratir; inr.poft? {0.1 Slarlis}
i.:
:t- I OR
!:*
:i :: f,i, lr \#'hrrt is an Exception'l $iv* the g*n,*.ral strurctnre cf un excelltion handling Hlechanisrn. How
El ,t ta define *rultiple c;rtch hlcli:ks? q08 Mndrs)

b, fixplain how to create your *ll,n *xcepl.ioms. Give an example.


(tB llarks)
-l q:
; c.j
McEful!-e-:-4
".
? a, 1[ hat is $yn',:hnrr"lization? Eixplain horv inter thread *omrnulication can be a*]rieved irr
multjfhreadirrg mirrg Produlcer and Consumer flnograrn" ( [0 Me rkcl
b. Deiin* filreild and Multitfireadirig. Wlrat are ti'le 2 wuys of crcoting threadsi' 1fti Mnrks)

(}K.

I *f2

_1

_1

_l
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
t6/r 7Ntf.rA.J2

I a What is Enunrcration? Expluin valucs ( ; and valueo( ) rnethods r.tith examplc. ({,li \Inri*!.}
b. Explain the following :
i) T3rpe Wrap6n ii) Autoboxing, and Aut<*rulsr,ing. (0.? Ilarksi

ICedstp,*
I a. Wh,.tt are Applets? Explnin the titr: cycle cf,sn Applets usinH sn erarl$i:: Fli)granr. ({t$ il*rkrr
b, Write a Java Progam which uses Dorngramsocket if,r dc.rnrtqar;ti<r <:lient -- serrer
contmunicaiion. i$$ tll*r*,ri

oo
l8 h. Fixplain thqr tbllowilg, ... .,,
i, UftlCorrnection iii Collectioo Intertlccs.. r.:) ) (t)B Mari;s)
b" Explain Arraylist class and Linkel[,ist class, witKqr4it$le erarnple {08 ltlarlis}

***rtrt

'tr:

KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi
KLE Dr. M.S. Sheshgiri College of Engineering & Technology, Library, Belagavi

You might also like