Object Oriented Programming through Java - Unit-5
Adisplay()
Bpaint()
CdisplayApplet()
DPrintApplet()
Correct Answer
paint()
Ajava.lang
Bjava.io
Cjava.util
Djavax.swing
Correct Answer
javax.swing
ABorderLayout
BFlowLayout
CGridLayout
DCardLayout
Correct Answer
BorderLayout
AJButton
BJLabel
CJRadioButton
DJTextArea
Correct Answer
JButton
ATo set the size of the frame
BTo set the title of the frame
CTo make the frame visible on the screen
DTo close the frame
Correct Answer
To make the frame visible on the screen
Adisplay()
Bprint()
CdrawString()
Dtransient()
Correct Answer
drawString()
Adisplay()
Bpaint()
CdrawString()
Dtransient()
Correct Answer
paint()
Atransient
Bvolatile
Cglobal
DNo modifier is needed
Correct Answer
volatile
AgetInfo
BInfo
Cinstanceof
Dgetinfoof
Correct Answer
instanceof
ASwing
BAWT
CBoth A & B
DNone of the above
Correct Answer
Swing
ASwing
BAWT
CBoth A & B
DNone of the above
Correct Answer
Swing
AJButton
BJCheckbox
CJMenuItem
DAll of these
Correct Answer
All of these
AGraphical
BUser interactive
CBoth a & b
DNone of these
Correct Answer
Both a & b
ASubclass
BSuperclass
CBoth a & b
DNone of these
Correct Answer
Subclass
Aadd()
BsetComponent()
Cinsert()
Dappend()
Correct Answer
add()
AContainer
BWindow
CFrame
Dnone
Correct Answer
Container
ATo set the background color of a component
BTo set the size of a component
CTo set the layout manager for a container
DTo set the font style for a component
Correct Answer
To set the layout manager for a container
AgetSize()
BsetSize()
CNone
DBoth
Correct Answer
getSize()
AJTextField
BJTextArea
CJLabel
DJList
Correct Answer
JLabel
AJButton
BJLabel
CJRadioButton
DJTextArea
Correct Answer
JLabel
AActionListener
BItemListener
CMouseListener
DWindowListener
Correct Answer
WindowListener
AFlow layout, Border layout, Flow layout
BFlow layout, Flow layout, Border layout
CBorder layout, Flow layout, Flow layout
DBorder layout,Border layout, Flow layout
Correct Answer
Flow layout, Border layout, Flow layout
AsetLayoutManager(new GridLayout());
BsetLayout(new GridLayout(2,2));
CsetGridLayout(2,2,))
DsetBorderLayout();
Correct Answer
setLayout(new GridLayout(2,2));
AsetText()
Bappend()
CsetLabel()
DsetContent()
Correct Answer
setText()
AMVC
BMVP
CLayered architecture
DMaster-Slave architecture
Correct Answer
MVC
ATo set the size of the frame
BTo set the title of the frame
CTo specify the default close operation for the frame
DTo close the frame
Correct Answer
To close the frame
AJTabbedPane
BJSlider
CJProgressBar
DJSpinner
Correct Answer
JTabbedPane
Ainit()
Bstart()
Cstop()
Ddestroy()
Correct Answer
init()
AIt works at client side so less response time
BMost of the web browsers support applets.
CIt can be executed by browsers running under many platforms, including Linux, Windows, and Mac Osetc.
DPlugin is required at client browser to execute applet
Correct Answer
Plugin is required at client browser to execute applet
AContainer
BJcomponent
CComponent
DPanel
Correct Answer
Component
AContainer
BJcomponent
CComponent
DJPanel
Correct Answer
Jcomponent
ASpinner
BEvent
COccurrence
DActivity
Correct Answer
Event
AJPanel
BJFrame
CJCombo
DJWindow
Correct Answer
JFrame
AJPanel
BJFrame
CJCombo
DJBox
Correct Answer
JPanel
AJPanel
BJButton
CJComboBox
DJBox
Correct Answer
JComboBox
AJButton
BJComponent
CJTextField
DJPanel
Correct Answer
JComponent
AAWT
BSwing
CBoth
DNone of the above
Correct Answer
Swing
AApplication
BAWT
CApplet
DJFrame
Correct Answer
Applet
AJScrollPanel
BJScrollBox
CJScroll
DJScrollBar
Correct Answer
JScrollBar
AAllPaint()
BJpaint()
CRepaint()
Dpaint()
Correct Answer
paint()
Apublic void paint(Graphics g)
Bpublic void destroy()
Cpublic void stop()
Dpublic void init()
Correct Answer
public void paint(Graphics g)
Astop()
Binit()
Cpaint()
Ddestroy()
Correct Answer
paint()
AAn html file
BAn AppletViewer tool(for testing purpose)
CBoth A & B
DNone of the above
Correct Answer
Both A & B
Astop(),paint(),destroy()
Bdestroy(),stop(),paint()
Cdestroy(),stop()
Dstop(),destroy()
Correct Answer
stop(),destroy()
True / False
45
Is Applet and Application both are same in the swing framework? (Yes/No)
Correct Answer
No
46
Applet works at client side so less response time. (True / False)?
Correct Answer
True
47
The APPLET tag is used to start an applet from both an HTML document and from an applet viewer (True/False)?
Correct Answer
True
48
All Applets must import java.applet and java.awt. (True/False)?
Correct Answer
True
49
The APPLET tag is used to start an applet from both an HTML document and from an applet viewer (True/False)?
Correct Answer
True
50
Applet runs inside the browser and does not work at client side (True/False)?
Correct Answer
True