nerdexam
CIW

1D0-437 · Question #61

Consider the following code: %hashA = ("alpha", "beta", "gamma", "alpha"); %hashA = reverse(%hashA); print $hashA{"alpha"}; What is the result of executing this code?

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

Question

Consider the following code:

%hashA = ("alpha", "beta", "gamma", "alpha"); %hashA = reverse(%hashA); print $hashA{"alpha"}; What is the result of executing this code?

Options

  • AThe code outputs the following:
  • BThe code outputs the following:
  • CThe code outputs the following:
  • DThe code fails at line 3.

How the community answered

(17 responses)
  • A
    12% (2)
  • B
    6% (1)
  • C
    82% (14)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice