Exit 1D0-437 CIW PERL FUNDAMENTALS
Question 2 of 5
0% complete
Q2 Single choice

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

  • 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");