Multiple choice technology programming languages

@array = (1,2); ($scalar1, $scalar2, $scalar3)=@array; print $scalar1, $scalar2, $scalar3;

  1. 1 2 Null value

  2. 1 2 0

  3. 1 2 3

  4. Error:Array out of bound

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

In Perl, when a 2-element array is assigned to 3 scalars, the third scalar receives undef (undefined). When printed, undef produces an empty string or an uninitialized value warning. 'Null value' is non-standard Perl terminology but refers to undef.