Multiple choice technology programming languages

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

  1. applesorangespearsplums

  2. apples oranges pears plums

  3. apples

  4. apples oranges pears plums

Reveal answer Fill a bubble to check yourself
D Correct answer