nerdexam
CIW

1D0-437 · Question #16

Consider the following program code: @array - (1..5); print(shift(@array) . " "); print(shift(@array) . " "); print(pop(@array) . " "); print(pop(@array( . " "); push(@array, "SIX")…

The correct answer is C. The code will output the following. See the full explanation below for the reasoning.

Question

Consider the following program code:

@array - (1..5); print(shift(@array) . " "); print(shift(@array) . " "); print(pop(@array) . " "); print(pop(@array( . " "); push(@array, "SIX"); print(shift(@array) . " "); print(shift(@array) . " "); What is the result of executing this program code?

Options

  • AThe code will output the following
  • BThe code will output the following
  • CThe code will output the following
  • DThe code will output the following

How the community answered

(31 responses)
  • A
    13% (4)
  • B
    3% (1)
  • C
    74% (23)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice