AJP Assignment 2-1
AJP Assignment 2-1
Assingnment - 2
a. MVC
b. MVP
c. Layered architecture
d. Master-Slave architecture
a. JavaScript
b. Java
c. React
d. Python
3. A ____ is the abstract foundation class for SWING's non-menu user interface controls?
a. Container
b. JComponent
c. Component
a. Container
b. JComponent
c. Component
5. Swing is not a part of JFC (Java Foundation Classes) that is used to create GUIapplication?
a. True
b. False
6. The following specifies the advantages of -:
It is lightweight.
It supports pluggable look and feel.
It follows MVC (Model View Controller) architecture.
a. Swing
b. AWT
c. Both A & B
d. None of the above
7. Which of the following component gives a drop-down list of options from which to choose?
a. JPanel
b. JButton
c. JComboBox
d. JBox
8. The ____ class serves as the foundation for all Swing components.
a. JButton
b. JComponent
c. JTextField
a. AWT
b. Swing
a. Heavyweight
b. Lightweight
a. Application
b. AWT
c. Applet
d. JFrame
12. A ____ is a Swing framework component that offers a scroll bar that may be used to scroll
content in a container.
a. JScrollPanel
b. JScrollBox
c. JScroll
d. JScrollBar
13. A ____ is a container that provides a viewport for showing a piece of a bigger component.
a. JScrollPanel
b. JScrollBox
c. JScroll
d. JScrollPane
a. IBM
b. Oracle
c. Microsoft
d. All of the above
a. A programming language
b. A type of dance
c. A graphical user interface (GUI) toolkit
d. A data structure
16. Which class is the base class for all Swing components?
a. java.awt.Component
b. java.awt.Container
c. javax.swing.JComponent
d. javax.swing.JPanel
a. True
b. False
18. The Java Foundation Classes (JFC) is a set of GUI components which simplify the
development of desktop applications.
a. True
b. False
a. JButton
b. JLabel
c. JRadioButton
d. JTextArea