nerdexam
CIW

1D0-437 · Question #80

Consider the following lines of code: @array1 = ("apples", "oranges", "pears", "plums"); foreach (@array1) {print "$_\n"}; What is the result of these lines of code?

The correct answer is D. apples. See the full explanation below for the reasoning.

Question

Consider the following lines of code:

@array1 = ("apples", "oranges", "pears", "plums"); foreach (@array1) {print "$_\n"}; What is the result of these lines of code?

Options

  • Aapplesorangespearsplums
  • Bapples oranges pears plums
  • Capples
  • Dapples

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    13% (3)
  • D
    78% (18)

Community Discussion

No community discussion yet for this question.

Full 1D0-437 Practice