Programming - Layouts
You Are Here :: Home > JAVA > Layouts - General Questions
13.
Layout managers are software components used in widget toolkits which have the ability to lay out widgets by their relative positions without using ___________.
A.
length
B.
size
C.
both a and b
D.
distance units
Answer: Option D
Explanation:
Layout managers are software components used in widget toolkits which have the ability to lay out widgets by their relative positions without using distance units.
14.
The ______________ layout manager arranges components in a directional flow, much like lines of text in a paragraph.
A.
GridLayout
B.
GroupLayout
C.
FlowLayout
D.
BorderLayout
Answer: Option C
Explanation:
The FlowLayout layout manager arranges components in a directional flow, much like lines of text in a paragraph.
15.
A layout manager is an object that implements the ________ and determines the size and position of the components within a container.
A.
layout manager
B.
LayoutManager interface*
C.
Layout interface*
D.
all the above
Answer: Option B
Explanation:
A layout manager is an object that implements the LayoutManager interface* and determines the size and position of the components within a container.
16.
Each JPanel object is initialized to use a__________ unless you specify differently when creating the JPanel.
A.
FlowLayout
B.
GridLayout
C.
BorderLayout
D.
CardLayout
Answer: Option A
Explanation:
Each JPanel object is initialized to use a FlowLayout, unless you specify differently when creating the JPanel.
17.
___________ provides the ability to set the minimum, preferred or maximum size explicitly, without touching the component.
A.
GroupLayout
B.
GridLayout
C.
SpringLayout
D.
FlowLayout
Answer: Option A
Explanation:
GroupLayout provides the ability to set the minimum, preferred or maximum size explicitly, without touching the component.
18.
_____________ influence the amount of space between visible components in a container:
A.
Two factors
B.
three factors
C.
four factors
D.
five factors
Answer: Option B
Explanation:
Three factors influence the amount of space between visible components in a container:
« prev
next »