Multiple choice

What is the third argument passed to the Constructor of GridLayout?

  1. Int rows

  2. Int columns

  3. Int HorizontalGap

  4. Int VerticalGap

  5. Int Alignmnent

Reveal answer Fill a bubble to check yourself
C 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 third argument is HorizontalGap.So this answer is correct.