Multiple choice technology programming languages

unshift (@array, @sublist);

  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
D Correct answer
Explanation

unshift prepends @sublist to the beginning of @array. splice(@array, 0, 0, @sublist) inserts @sublist at position 0 (the beginning), removing 0 elements first.