Java AWT Layout Managers
Questions about Java AWT and Swing layout managers, container classes, Font class, and helper classes used in GUI programming
Questions
How many container classes are there in java AWT?
- 6
- 5
- 4
- 3
- 2
How many maximum arguments can be passed to the FlowLayout Constructor?
- 5
- 4
- 3
- 2
- 1
How many maximum arguments can we pass to the GridLayout constructor?
- 6
- 5
- 4
- 3
- 2
How many layout managers are present in java?
- 10
- 9
- 8
- 7
- 6
What is the third argument passed to constructor of Font class?
- Int size
- String name
- Int style
- Int alignment
- Int Color
How many maximum arguments can be passed to the BorderLayout Constructor?
- 5
- 4
- 3
- 2
- 1
What is the third argument passed to the Constructor of GridLayout?
- Int rows
- Int columns
- Int HorizontalGap
- Int VerticalGap
- Int Alignmnent
Which of the following is/are not known as the helper class in java AWT?
- LayoutManager
- Colour
- Font
- Dimensions
- Graphics
What is the Default Layout Manager of the Panel p1 that we have created?
JPanel p1 = new JPanel()
- BorderLayout
- CardLayout
- FlowLayout
- GridLayout
- BoxLayout
How many arguments are passed to the constructor of Font Class?
- 5
- 4
- 3
- 2
Which of the following argument is the third argument passed to the constructor of the FlowLayout?
- Int horizontalGap
- Int VerticalGap
- Int Alignment
- Int Rows
- Int Columns
Which of the following is/are the helper class in java AWT?
- Window
- Applet
- Panel
- Dimension
- Dialog
What is the Second Argument passed to the Constructor of GridLayout?
- Int rows
- Int columns
- Int horizontalGap
- Int VerticalGap
- Int Alignment
What is the third argument passed to the Constructor of BorderLayout?
- Int alignment
- Int horizontalGap
- Int VerticalGap
- Int Rows
- None of these
How many constructors are there of CardLayout?
- 5
- 4
- 3
- 2
- 1