nerdexam
CIW

1D0-437 · Question #26

Consider the following program code: @array = ("one", "two"); push(@array, "three"); shift(@array); unshift(@array, "four"); pop(@array); print($array[0]); What is the output of this code?

The correct answer is D. four. See the full explanation below for the reasoning.

Question

Consider the following program code:

@array = ("one", "two"); push(@array, "three"); shift(@array); unshift(@array, "four"); pop(@array); print($array[0]); What is the output of this code?

Options

  • Aone
  • Btwo
  • Cthree
  • Dfour

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    15% (3)
  • C
    10% (2)
  • D
    70% (14)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice