Multiple choice

Which of the following syntax will return the size of the array @My_array @My_array = ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec")

  1. @My_array

  2. print @My_array

  3. print $My_array
  4. $size = @My_array; print $size;
  5. $size1 = $#My_array; print $size1;
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Yes, scalar variable will get the size of array @My_array