PrepAway - Latest Free Exam Questions & Answers

What is the result of executing this program code?

Consider the following program code
@list – (10..15);
foreach(@list)
{
print(“$_ “);
}
What is the result of executing this program code?

PrepAway - Latest Free Exam Questions & Answers

A.
The code will output the following
$_ $_ $_ $_ $_

B.
The code will output the following
11 12 13 14

C.
The code will output the following
10 11 12 13 14

D.
The code will output the following
10 11 12 13 14 15

One Comment on “What is the result of executing this program code?


Leave a Reply