You are on page 1of 11
{ey the factor ot ye abe of mat {Bay the action, Hsing Jose in| ing 4080, by (Chapter 1: Introduction to Abstract Windowitg, Toolkit (AWTY ibd 1. Which ofthe following statements ae tue? ‘SUPPLIMENT FOR = ADVANCED JAVA PROGRAMMING (Multiple Choice Question: Swings Aa) To distinguish new Swing component classes trom their AWT counterparts, Swing GUI cmponent classes are names wh pei (©) All Swing GUE components are lohtweight, “fe) A user interface object such as (Duton, He) can appear mone 49) A container suena same #9 a component ich ofthe following statements about GUI components is wrong? (a) Swing exists since version 1.2 ofthe fk 1 place AWT components on Swing containers asses are deprecated +3. Which ofthe following are subclasses of ova. awt. Compan “fay Container classes ‘Swng user interface case es ss Color and Font ter asec 8 Cl oe ative GUt are referred to as J 44, Swing components tha epentsets Te the Jationsip between 2component and JBua 5. What o awe (a) Association as (©) Composition keke 1 added t0 26 ‘cannot be 2d 6, Which component “ae {a) Wane! (@) 2omponent er iFrame eos ‘Analy the folowing coe Anporeseve. aves) sport jaan mig, PABLic etatie void nain(atrioa|} ae92) { franc. totDntou2tCionsoperstion|JFcane.EXTT_ON CLOSE) {vv ime om Fe tesco oui cen crs» rr (@) Yow canot create a Frame using new FrameMy Frame") ‘Analyze te flowing coe. (2) Only button Ox s spayed. (©) iy button Cancel i splayed, (2) Both button OK and button Cancel are displayed and button OK ie _eplayed onthe let sdeof button OK, (© Bath button OK and button Cancel are displayed and button Ok f ployed us Ue rght ide of button OK. on @3 hic ote te (200,100) () frame () tramest te) frames (@) famest 11. what should ve size oth \@) a Fowl) (8) acre (© tecant (@) thes 2 How any frames are testa a ae Sree "Trae geen. or ‘nent. (93 a ‘sing ada(c) 10. Which of the following catennn 9 of PS gn esprit coe (0) frameset cate, 10) (B) frame.setLocation{100, 200) | (6) trame,settocaton(200, 100 (2) trame-settacaten(200, 260) 411. What should you use to poston a Button win an appleaton Frames ht the size of the Buttons NOT aed bythe resi? X19) a Flomiayout (6) a Gridtayout (©) the center area of a Bordertayout (4). the East or West area oo Bordertayouk 12. What layout manager shoul yu use 0 that ever comgonet orp he same size in the container? (2) a Fiowtayout (©) a Bordertayout 2 3Frame uses tre Griayout is are layed? Os | 0K is @1 oa ws ) 2 Grdhayout (0) any ovo (2, 8). IF you 248 six buttons to the 13, Suppose 0K is frame, how many cou fertayout 1, 26,0) 429) pone i gow! Ament regeming Clnlcroereanteretey ) en Clor20, 0,0) (a) ew Colt, 0,0) 24. The method "set the backround clr to yellow name (@) settackround(ot yom) 40) fastBackgrounalCaor ELON) PPA) setsckgrondt cao eLL0H) 23, Me metnod _sas the ote, 20 panto n component (a) csetFontinen Font elven, art bd, 29) (©) csettontinen Fonte", BOLD, 20) (@)_csettonifont Hotete" Font BOL, 20) Can you ise the selbacgroind meted to set 9 back gaurd clr for <=) Component te) conainer {) Xcemponent (@) Jour Fon. TALC {a} Fore BOLD + Font FAC (@) Component 1B) ompanert seuten a) abel 29, Conyou une te eth meat 98 with or (0) containe- to ont remem se); Foon the button, W2Button(*oK-)) Hines in the Test Button(“oK=)) someoed ee Pepreming sex) 3 Wh he oe vat nna ga SS vam (2 Resettnemonicery, ag am 36. 37, The methos Me (a) sbt.text() (bY sbt.getrexty f (©) Sektinatexey (©) SWereteweten, 30. Which of the folowing is true? (2) Button inherits from javax swing AbstracButon, (by You can create a Button by speciying an con ond text (©) You can create a 3Button by specving neon () You can create a 38utton bya text. 39. Analyze the following code: Flee rs ceria ee Piven ccage cea (© Thre buts or Syed want ea Fee eee ae ene Be be nen oe Bieiesecs) a eee econ ee ‘aned to order border ~ sew TitledBorder("Wy button" same boro vs slave we mn as the Dore (4) The program ha putton: j a a “pe method __ species at PPP atid rato oton to yg argh ine be, (0) SbLseWVeralTeaPoston son a L () wsoconarenrcan eT ae... (6) sblsetorconattentostengmaae ed teas nace, ) sconce rote ot ence ee Ee (Fierce il : jrssooronstecmeccomaaet fe By seattorzonaroecnece | {G ssatoruoaaiigneenORatsenee Be cht ovina stunner Male per arora ae we r 1) vous os oo ea aa (@ vocal eteg ean Fi youcn core soc na io Abe! oe the tabet by, (@) A check box ~@) twill b arr 2. ae (Mowe mmo, &) seasreny mat Answers Monic('A’); a. I i) al ea] 6.10. te | eo ‘ere inherited from ec 2) a 2) 2 eel ale |__21. (a) ! 26. (2,0,¢,4) wi Pave | 36.(c) ftv 4. tesut) [ae or.0) Fuca) 3.14)

You might also like