nerdexam
CIW

1D0-437 · Question #43

Which of the following choices demonstrates the correct syntax for creating a hash?

The correct answer is C. %passwds = (denise=> "pass1", robert=> "pass2", yolanda=> "pass3"). See the full explanation below for the reasoning.

Question

Which of the following choices demonstrates the correct syntax for creating a hash?

Options

  • A%passwds = ("denise", "robert", "yolanda") => ("pass1", "pass2", "pass3");
  • B%passwds() = ("denise", "pass1", "robert", "pass2", "yolanda", "pass3");
  • C%passwds = (denise=> "pass1", robert=> "pass2", yolanda=> "pass3");
  • D%passwds{3} = ("denise", "robert", "yolanda") => ("pass1", "pass2", "pass3");

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    11% (3)
  • C
    78% (21)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice