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)- A4% (1)
- B4% (1)
- C13% (3)
- D78% (18)
Community Discussion
No community discussion yet for this question.