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 of Above

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

The splice function can replace push when used with the current array size as the starting position. By setting the offset to scalar(@array) (the end of the array), length to 0 (nothing removed), and providing @sublist as the elements to insert, splice behaves exactly like push - appending elements to the array's end.