Multiple choice

How many maximum arguments can we pass to the GridLayout constructor?

  1. 6

  2. 5

  3. 4

  4. 3

  5. 2

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 this answer is correct.