What is the result of executing this program code?

Consider the following program code:
@array = (10, Masami, 10..13, Niklas);
for ($i = 1; $i < $#array; $i++)
{
print($array[$i] );
}
What is the result of executing this program code?

Consider the following program code:
@array = (10, Masami, 10..13, Niklas);
for ($i = 1; $i < $#array; $i++)
{
print($array[$i] );
}
What is the result of executing this program code?

A.
apples
oranges
pears
plums

B.
The code will output the following:
Masami 10 11 12 13

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

D.
The code will output the following:
10 Masami 11 12 13 Niklas

E.
The code will output the following:
Masami 10 11 12 13 Niklas

Explanation:
apples
oranges
pears
plums



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Evaldas

Evaldas

It should be B