nerdexam
CIW

1D0-437 · Question #74

Consider the following program code: %color - ("sun" => "yellow", "apple" -> "red"); reverse(%color); @colorKeys - sort (keys(%color)); foreach(@colorKeys) { print($color{$_} . " "); } What is the…

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:

%color - ("sun" => "yellow", "apple" -> "red"); reverse(%color); @colorKeys - sort (keys(%color)); foreach(@colorKeys) { print($color{$_} . " "); } 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

(47 responses)
  • A
    11% (5)
  • B
    6% (3)
  • C
    81% (38)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice