0% found this document useful (0 votes)
34 views3 pages

Which of The Following Methods Can Be Used To Remove Java - Awt. Component Object From Display? Hide

qb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views3 pages

Which of The Following Methods Can Be Used To Remove Java - Awt. Component Object From Display? Hide

qb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

AJP

51. Adding controls in a window we used

a) add() b) submit() c)append() d) insert()

52.Program which executes applet is known as

a)Applet Engine b)Virtual machine c)JVM c)None of the above

53.setEchochar method is used for

a)text display in textfield b)password c)textarea d)checkboxes

54. Which of the following methods can be used to remove java.awt. Component object from display?
a) hide() b) disappear() c) remove() d) delete()

55.What do you mean by javap

a)Java disassemble b)Java Interpreter c)Java Compiler d)Java Debugger

56.Minimum Threads in a program are

a)1 b)2 c)5 c)Many

57.In applet which of the following is used for accepting user defined parameter

a)Body b)Center c)applet d)param

58. Font class is available in______


a)java.lang b)java.net c)java.util d)java.awt

59.What is Runnable from following

a)class b)Method c)Interface d)Variable


60.On which side applet is always executed

a)Server b)Client c)online d)offline

61.How many constant values are present alignment of Label.

a)3 b)2 c)1 d)4

62.When applet is dead, it automatically invokes the ________ method when we quit the browser.

a) paint() b) stop() c) destroy() d) final()

63.To set the title of the frame ____method is used

a)setText(String str) b)setTitle(String str) c)setTitle() d)setLabel(String str)

64.Drawing the arc in graphics ____method is

a)drawArc() b)fillArc() c)setArc() d)getArc()

65. Which of these methods are used to register a keyboard event listener?

a) KeyListener() b) addKistener() c) addKeyListener() d) eventKeyboardListener()

66.Which constant is used for vertical scrollbar

a)scrollbar.VERTICAL b)Scrollbar.VERTICAL c)Scrollbar.Horizontal d)Scrollbar

67.Which layout is default layout for applet.

a)Flow Layout b)Border Layout c)Grid Layout d)GridBag Layout

68.Which object is needed to group Checkboxes to make them exclusive?

a) CheckboxGroup b) Checkbox c) RadioButton d) TextField


69.By default page down and page up increments are

a)1 2)5 c)10 d)4

70. Which class is super class for Container class

a) Window b) Panel c) Component d) Frame

You might also like