Q101
Open question<?php
$i = 2;
while (++$i)
{
while ($i --> 0)
print $i;
}
?>
Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
143
Questions
6/8
Page
Pick an option on a question to see the right answer and solution.
Q101
Open question<?php
$i = 2;
while (++$i)
{
while ($i --> 0)
print $i;
}
?>
Select an option to see the answer and solution.
Q102
Open question<?php
$i = 2;
while (++$i)
{
while (--$i > 0)
print $i;
}
?>
Select an option to see the answer and solution.
Q103
Open question<?php
echo 5 * 9 / 3 + 9;
?>
Select an option to see the answer and solution.
Q104
Open question<?php
$i = 0;
$j = 0;
if (i <span class="p-blue">&& </span> <span class="p-blue">(</span>j = $i + 10))
{
echo "true";
}
echo $j;
?>
Select an option to see the answer and solution.
Q105
Open question<?php
$i = 10;
$j = 0;
if (j = $i + 10))
{
echo "true";
}
echo $j;
?>
Select an option to see the answer and solution.
Q106
Open question<?php
$i = 1;
if (i<span class="p-blue">++ && (</span>i == 1))
printf("Yesn$i");
else
printf("Non$i");
?>
Select an option to see the answer and solution.
Q107
Open question<?php
b = 3;
a++ + ++$b;
echo $d;
?>
Select an option to see the answer and solution.
Q108
Open question<?php
b = 1; $d = 1;
print ++a+a++ + ++d + a++;
?>
Select an option to see the answer and solution.
Q109
Open question<?php
b = 10;
if ($a = 5)
$b--;
print b--;
?>
Select an option to see the answer and solution.
Q110
Open question<?php
$i = 0;
i++; i;
print y;
?>
Select an option to see the answer and solution.
Q111
Open question<?php
b = -7; $c =0;
a && ++c;
print a;
?>
Select an option to see the answer and solution.
Q112
Open question<?php
c = 4; $a = 5;
b + a;
print $d;
?>
Select an option to see the answer and solution.
Q113
Open question<?php
echo 5 * 9 / 3 + 9;
?>
Select an option to see the answer and solution.
Q114
Open question<?php
$var1 = 1 + ++5;
echo $var1;
?>
Select an option to see the answer and solution.
Q115
Open question<?php
$var1 = 0;
var1 + 5)++;
echo $var1;
?>
Select an option to see the answer and solution.
Q116
Open question<?php
$var1 = 0;
var1++ + 5;
echo $var1;
?>
Select an option to see the answer and solution.
Q117
Open question<?php
$var1 = 0;
var1 + 5;
echo $var1;
?>
Select an option to see the answer and solution.
Q118
Open question<?php
$var1 = 0;
var1 + 5;
echo $var1++;
?>
Select an option to see the answer and solution.
Q119
Open question<?php
$var1 = 1;
echo var1 % 2 + ++$var1;
?>
Select an option to see the answer and solution.
Q120
Open question<?php
$var1 = 1;
echo var1 % 2 + ++$var1;
?>
Select an option to see the answer and solution.