You are on page 1of 10

DCJ 1 :

1 .Which method is used to select multiple items programmatically?


A. setSelectedIndices(int[] indices)
B. setSelectedIndex(int index
C. set!istData("#$ect%& items
D. setSelectedIndex(int%& indices
' .Whene(er you select an item )rom the com#o #ox the ************** method
o) Item!istener is in(o+ed.
,. itemSelected(
B. isSelected(
C. item,dded(
D. itemStateChanged()
- ., ********** is a component .hich displays its data in a hierarchical .ay.
,. J/a#le
B. JTree
c. J0enu!ist
D. J0enuItem
1. /he process o) creating an application that can adapt to a language or a
country #y adding locale speci2c components .hich help in translation o) text is
re)erred as **********.
,. /ranslation
B. Internationalization
C. Standardi3ation
D. !ocali3ation
4 .************* pro(ides a uni5ue num#er )or e(ery character irrespecti(e o)
plat)orm6 program or language.
,. ByteCode
B. ,SCII 7ncoding
C. Unicode
8. /he currency o) a particular country can #e displayed in the correct )ormat
using the *********** class.
,. 0essage9ormat
B. Nm!er"ormat
C. Country9ormat
D. !ocale
: . /he ********* class is used to con(ert sentences )rom one locale to another
.ithout introducing grammatical errors.
A. #essage"ormat
B. ;um#er9ormat
C. Country9ormat
D. !ocale
< ./he constructors o) the =>! class thro. a ********** i) no protocol is speci2ed.
,.;ull?ointer7xception
B.In(alid,rgument7xception
C.#al$ormedU%&'(ce)tion
D.In(alid?rotocol7xception
@ ./he ******* method o) the =>! class returns the I? address enclosed in s5uare
#rac+ets.
,.get9ile(
B.getI*()
C.getAost(
D.get?ath(
1B
Instances o) the ****** class can #e used to read )rom and .rite to the resource
re)erred #y the =>!.
,.=>!
B.Inet,ddress
C.Connection
D.U%&Connection
11
,n instance o) the Soc+et class represents the ********* side o) the connection.
,.ser(er
B.Client
C.application
D.IC"
1'
, Ser(erSoc+et instance #inds itsel) to a ********** and then .aits and listens )or
client re5uests to esta#lish connections.
A.*ort
B.soc+et
C.I? address
D.=>!Connection
1- , ******** is a class used to represent a menu on a menu #ar.
,.J0enuBar
B.J#en
C.0enuBar
D.J0enuItem
11 , ****************** is similar to a J0enuItem .ith the additional )eature o)
selecting and deselecting them.
A.JChec+Bo(#enItem
B.JChec+Box0enu
C.J0enuItem
D.J0enu!ist
14
S.ing pro(ides the ***************************** class to create 2lters.
,.$a(ax.s.ing.9ile9ilter
B.$a(ax.s.ing.2lechooser.9ilter
C.,a-a(.s.ing./lechooser."ile"ilter
18 , ********** is doc+a#le only i) the container it #elongs to has a Border!ayout
layout manager.
A.JToolBar
B.J0enuBar
C.JChec+Box0enuItem
D.J0enu
1: /he ********** method is used to ma+e the tool#ar doc+a#le.
A.set"loata!le()
B.setDoc+a#le(
C.setDoc+(
D.set/oolDoc+a#le(
1< /he ************* pac+age has a class Color to create o#$ects representing
colours and their shades.
,.$a(ax.s.ing
B.$a(a.a.t
C.$a(a.a.t.colorchooser
D.,a-a(.s.ing.colorchooser
1@ /he JColorChooser has a method ****************** .hich returns an o#$ect o)
the ColorSelection0odel inter)ace.
,.getSelected0odel(
B.get0odelSelection(
C.getSelection#odel()
D.getSelection(
'B ************ is a class used to display a group o) items.
A.J&ist
B.J0enu!ist
C.J0enuItem
D.J2leChooser
DCJ ' :
0. Sccess$l translation o$ the sorce /les in the desired
langage is -er1 di2clt.
/rue
9alse
3 A &ocal is an identi/er $or a )articlar com!ination o$
langage and region.
/rue
9alse
4 The Nm!er"ormat class is sed to create locale5s)eci/c
$ormats $or .hich o$ the $ollo.ing6
1. ;um#ers
'. Currencies
-. ?ercentages
1. Date
16 '6 -
'6 -6 1
16 '6 1
16 '6 -6
1
7 8hich o$ the $ollo.ing la1ers in TC* deals .ith o)ening and
maintaining connections as .ell as ensres the )ac+ets are
transmitted and recei-ed6
I
II
III("D
IE
9 8hich o$ the $ollo.ing is not a la1er o$
%#I architectre6
Stu# and
S+eleton
>emote
>e)erence
/ransport
?rotocol
None o$ the
a!o-e.
: ;;;;;;;;;;; is a to)5le-el
container.
JDialog
J?anel
J!ayered?an
e
JDes+top?an
e
< ;;;;;;;;;;;;;;;;; constrctor creates a horizontal slider !ar .ith
the range = to 0== and an initial -ale o$ 9=.
JSlider(int orientation
JSlider(int (alue
JSlider()
JSlider(int min6 int max6 int
(alue
> 8hich o$ the $ollo.ing are the ad-antages o$ sing
"lo.&a1ot #anager6
1. Simple to use.
'. Component placed in the center o) the container #y
de)ault.
-. Suita#le )or J,pplet .hich runs as part o) a We# ?age.
1. Complex alignment can #e easily achie(ed.
16 '6 -
'6 -6 1
16 -6 1
16 '6 -6
1
? 8hich o$ the $ollo.ing methods is sed to set the +e1
com!ination .hich in-o+es the men item6s action listeners
.ithot na-igating the men hierarch16
set7na#led(#oolean ena#le
set0nemonic(int mnemonic
set,cceletor(DeyStro+e
+eystro+e
,ll o) the a#o(e.
0= A J*o))#en is more con-enient than the standard mens
!ecase it in-ol-es more mose mo-ements.
/rue
9alse
00 The addSe)arator() method adds a se)arator at the
;;;;;;;;;;;;o$ the )o)5) men.
Beginnin
g
7nd
Center
,ny.her
e
03 The J"ileChooser has .hich o$ the
$ollo.ing methods6
1. sho.Dialog(
'. sho.Sa(eDialog(
-. sho."penDialog(
1. Sho.;e.Dialog(
16 '6 -
'6 -6 1
16 -6 1
16 '6 -6
1
04 8hich o$ the $ollo.ing methods o$ J"ileChooser retrns an
instance o$ the "ile re)resenting the /le selected $rom the
dialog !o(6
getSelected9ile(
getCurrentDirector
y(
get9ile(
,ll o) the a#o(e.
07 8hich o$ the $ollo.ing constrctors o$ JToolBar constrcts a
tool!ar .ith the de$alt horizontal orientation6
JToolBar()
J/oolBar(int
orientation
J/oolBar(String title
;one o) the a#o(e.
09 J&ist is a class sed to dis)la1 a gro) o$ items. The items in a
J&ist can !e dis)la1ed in one or more colmns.
9alse
Tre
0: 8hich o$ the $ollo.ing select#odes o$ J&ist class allo.s
selecting a contigos item6
SI;F!7*S7!7C/I";
0=!/I?!7* I;/7>E,!
*S7!7C/I";
SIN@&';INT'%AA&;S'&'C
TIBN
,ll o) the a#o(e.
0< 8hich o$ the $ollo.ing are the im)ortant methods
o$ a JCom!oBo(6
1. set7dita#le(
'. setSelectedIndex(
-. setSelectedItem(
16 '
'6 -
16 -
16 '6
-
0> A JTa!le has .hich o$ the $ollo.ing
distinct )arts6
1. Column Aeader
'. >o. Aeader
-. data
16 '
'6 -
0C 4
16 '6
-
0? The di-ider in JS)lit*ane can !e dragged to s)eci$1 ho. mch o$
the total area is to !e gi-en to a com)onent.
Tre
9alse
3= An internationalized and localized )rogram has .hich o$
the $ollo.ing !ene/ts6
1. Same executa#le application can run .orld.ide.
'. /extual elements )or F=I components are not hardGcoded in the
program.
-. Support )or ne. languages re5uires only recompilation.
1. Internationali3ed programs are locali3ed 5uic+ly.
16 '6 -
'6 -6 1
16 '6 1
0C 3C 4C
7

You might also like