Programming - Layouts
You Are Here :: Home > JAVA > Layouts - General Questions
1. |
A ______________ uses graphical components (e.g., JTextField, JButton, JLabel) to enable a user to interact with an application.
|
A. |
graphical user interface |
B.
|
graphical components |
C.
|
both a and b
|
D.
|
none
|
|
Answer: Option A
Explanation:
A graphical user interface uses graphical components (e.g., JTextField, JButton, JLabel) to enable a user to interact with an application. |
|
2. |
A____________ specifies the position and size of the components inside a container.
|
A. |
layout components |
B.
|
graphical layout |
C.
|
graphical components
|
D.
|
layout manager
|
|
Answer: Option D
Explanation:
A layout manager specifies the position and size of the components inside a container. |
|
3. |
A ___________ uses the FlowLayout as its default layout manger.
|
A. |
gpanel |
B.
|
fpanel |
C.
|
JPanel
|
D.
|
JFrame
|
|
Answer: Option C
Explanation:
A JPanel uses the FlowLayout as its default layout manger. |
|
4. |
The _________ splits the container into five different sections.
|
A. |
BorderLayout |
B.
|
layout manager |
C.
|
layout components
|
D.
|
both a and c
|
|
Answer: Option A
Explanation:
The BorderLayout splits the container into five different sections. |
|
5. |
If you run the BorderLayoutExample program you'll see how the sections appear on a ____________.
|
A. |
f Frame |
B.
|
g Frame |
C.
|
JFrame
|
D.
|
JPanel
|
|
Answer: Option C
Explanation:
If you run the BorderLayoutExample program you'll see how the sections appear on a JFrame. |
|
6. |
Unlike the FlowLayout there is _______________ around to another row or column if the edge of the container is reached.
|
A. |
wrapping |
B.
|
no wrapping |
C.
|
may be
|
D.
|
none
|
|
Answer: Option B
Explanation:
Unlike the FlowLayout there is no wrapping around to another row or column if the edge of the container is reached. |
|
next »