Multiple choice

Which of the following creates a List with 3 visible items and multiple selection disabled?

  1. new List(3, false)

  2. new List(true, 3)

  3. new List(3, True)

  4. new List(false,3)

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

The List constructor is List(int rows, boolean multipleMode). List(3, false) creates a list with 3 visible rows and single selection mode (multiple selection disabled).