Multiple choice technology programming languages

How to remove first element of a array?

  1. unshift

  2. delete

  3. shift

  4. move

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

The shift function removes and returns the first element of an array, shortening the array by one. It's commonly used to process array elements sequentially. unshift adds to the beginning, delete removes hash elements, and move is not a built-in Perl function.