Multiple choice technology programming languages

What argument to splice is equivalent to push (@array, @sublist) function call?

  1. splice (@array,0.0.@sublist);

  2. splice (@array, scalar(@array),0, @sublist);

  3. splice (@array, 1, 0, @sublist);

  4. None

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

push(@array, @sublist) appends elements to the end of an array. The equivalent splice call uses scalar(@array) as the offset (position after the last element), removes 0 elements, and inserts the sublist, achieving the same append operation.