nerdexam
CIW

1D0-437 · Question #89

Consider the following program code: @arrayA = (10, 20, 30); @arrayB = @arrayA; $arrayB[1] = 40; print $arrayA[1]; What is the output of this code?

The correct answer is B. 20. See the full explanation below for the reasoning.

Question

Consider the following program code:

@arrayA = (10, 20, 30); @arrayB = @arrayA; $arrayB[1] = 40; print $arrayA[1]; What is the output of this code?

Options

  • A10
  • B20
  • C30
  • D40

How the community answered

(45 responses)
  • A
    13% (6)
  • B
    73% (33)
  • C
    9% (4)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice