What is the result of executing this program code?

Consider the following program code
$y – “1”;
$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?

Consider the following program code
$y – “1”;
$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?

A.
The code will output the following
1 2 3

B.
The code will output the following

C.
The code will output the following
3 2

D.
The code will output the following
3 2 1



Leave a Reply 0

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