Multiple choice

Find the wrong Array declaration

  1. @My_array = (2, 4, 6, 8, 10)

  2. @My_array = (1, 5, 8.9, 45.90)

  3. @My_array = (1 to 10)

  4. @My_array = (1 .. 10)

  5. @My_array = (100, 1 .. 10)

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

Keyword to does not work for defining the range of numbers.