PrepAway - Latest Free Exam Questions & Answers

What is the result of executing this program code?

Consider the following program code
$x – 0;
$y = 5;
do
{
print (“$x $y “);
) while (++$x < 5 && ++$y < 10);
print (“$x $y “);
What is the result of executing this program code?

PrepAway - Latest Free Exam Questions & Answers

A.
The code will output the following
1 6 2 7 3 8 4 8 5 10 6 11

B.
The code will output the following
0 5 1 6 2 7 3 8 4 9 4 9

C.
The code will output the following
0 5 1 6 2 7 3 8 4 9 5 10

D.
The code will output the following
0 5 1 6 2 7 3 8 4 9 5 9

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


Leave a Reply