PrepAway - Latest Free Exam Questions & Answers

What is the result of executing this program code?

Consider the following program code:
$y=l; $x = 2; $z = 3;
do
{
print ($y); } while ($y eq 2);
do
{

print ($x); } until ($x eq 2);
print ($z);
What is the result of executing this program code?

PrepAway - Latest Free Exam Questions & Answers

A.
The code will output the following: 1 23

B.
The code will output the following 3

C.
The code will output the following 23

D.
The code will output the following 32 1


Leave a Reply