Multiple choice

What is the Second Argument passed to the Constructor of GridLayout?

  1. Int rows

  2. Int columns

  3. Int horizontalGap

  4. Int VerticalGap

  5. Int Alignment

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is the correct answer. We can pass maximum 4 arguments to the GridLayout constructor. These arguments are :-GridLayout(int rows, int columns, int HorizontalGap, int VerticalGap)This will create a gridlayout with specified number of row and columns and with a specific horizontal and vertical gap between the componenets.So the second argument is Columns.So this answer is correct.