nerdexam
CIW

1D0-437 · Question #86

Consider the following program code: %employees = ("Lucy", "Accounting", "Armando", "Finance", "Adrienne", "Marketing"); delete($employees{"Lucy"}); Which of the following lines of code has the same…

The correct answer is D. %employees = ("Armando", "Finance", "Adrienne", "Marketing"). See the full explanation below for the reasoning.

Question

Consider the following program code:

%employees = ("Lucy", "Accounting", "Armando", "Finance", "Adrienne", "Marketing"); delete($employees{"Lucy"}); Which of the following lines of code has the same effect as the preceding code?

Options

  • A%employees = ("Adrienne", "Marketing");
  • B%employees = ("Lucy", "Accounting");
  • C%employees = ("Lucy", "Accounting", "Armando", "Finance");
  • D%employees = ("Armando", "Finance", "Adrienne", "Marketing");

How the community answered

(40 responses)
  • A
    8% (3)
  • B
    5% (2)
  • C
    18% (7)
  • D
    70% (28)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice