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)- A5% (1)
- B15% (3)
- C10% (2)
- D70% (14)
Community Discussion
No community discussion yet for this question.