nerdexam
CIW

1D0-437 · Question #55

Consider the following code: %chars = ("a", "100", "b", "90", "c", "80"); Which one of the following choices will reverse the key/value pairing of the code?

The correct answer is B. %chars =reverse(%chars). See the full explanation below for the reasoning.

Question

Consider the following code:

%chars = ("a", "100", "b", "90", "c", "80"); Which one of the following choices will reverse the key/value pairing of the code?

Options

  • Areverse(%chars);
  • B%chars =reverse(%chars);
  • Creverse(%chars) = %chars;
  • Dinvert(%chars);

How the community answered

(19 responses)
  • B
    84% (16)
  • C
    11% (2)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice