Multiple choice technology programming languages

shift (@array);

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

  2. splice (@array, @array-1, 1);

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

  4. splice (@array, 0, 0, @sublist);

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

The shift function removes and returns the first element of an array. This is functionally equivalent to splice(@array, 0, 1), which removes one element starting at index 0. Distractors represent splicing from the end or inserting sublists.