Assignment 2 (1) With Answer
Assignment 2 (1) With Answer
a) React
b) JavaScript
c) Java
d) Python
a) Container
b) Jcomponent
c) Component
a) MVC
b) MVP
c) Layered architecture
d) Master-Slave architecture
4) Which of the following component gives a drop-down list of options from which to choose?
a) JPanel
b) JButton
c) JComboBox
d) JBox
a) AWT
b) Swing
a) Heavyweight
b) Lightweight
a) Application
b) AWT
c) JApplet
d) JFrame
11) Which of the following methods is used to set the size of a swing component?
a) setSized()
b) setPreferredSize()
c) setBounds()
d) setMinimumSize()
12) Which of the following methods is used to set the title of a JFrame?
a) setTitle()
b) setLabel()
c) setText()
d) setCaption()
a) Main
b) Major
c) Model
d) All of the above
15) Swing follows which of the following default pluggable look and feel,.
a) Windows
b) Motif
c) Metal
d) None of the above
a) True
b) False
a) MenuBar
b) Glass Pane
c) Layered Pane
d) Content Pane
e) All of the above
a) True
b) False
a) True
b) False
a) JFrame()
b) JFrame(String tit)
c) All of the above
d) None of the above
a) Passive
b) Editable
a) List
b) Choice
c) TextArea
d) CheckBox
a) JButton
b) JLabel
c) None of the above
d) Both
25) Which of the following allows to select only one option at a time
a) JradioButton
b) JCheckBox
c) List
d) None of the above
a) Horizontal
b) Vertical
a) Circular
b) Straight forward
c) Hierarchical
d) Other than above
a) DefaultMutableTreeNode
b) DefaultTreeNode
c) TreeNode
d) Node
a) setToolTips()
b) setToolTipText()
c) SetToolTip()
d) setTipForTool()
a) 1
b) 2
c) 3
d) 4
a) SetInt()
b) setValue()
c) setProgressBar()
d) value()
a) setprogress()
b) setStringto()
c) setString()
d) none of the above
a) setDisplay()
b) displayall()
c) setStringPainted()
d) paintedon()
a) Yes
b) No