Multiple choice

An array element is accessed by using

  1. the dot operator

  2. a member name

  3. an index number

  4. a FIFO method

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

Array elements are accessed by their position in the array, which is specified using an index number enclosed in square brackets. The index starts at 0 for the first element.