Operators and Expressions in php - PHP quiz 3

By CareerCadets

Operators and Expressions in php - PHP Online Quiz 3

Operators and Expressions in php - PHP quiz 3 is a free online quiz challenge under Operators and Expressions in php - PHP category. There are 40 free online quiz challenges available in PHP category


If you do something to an integer that makes it larger than the maximum allowable integer or smaller than the minimum possible integer, the PHP interpreter converts the result into a . . . . . 

What will be the output of the following PHP code ?



<?php
echo $x-- != ++$x;
?>

What will be the output of the following PHP code ?

<?php
$a = 10;
echo ++$a;
echo $a++;
echo $a;
echo ++$a;
?>

Ceil(-2.1) would be

What will be the output of the following PHP code ?

<?php
$i = 10;
$j = 0;
if ($i || ($j = $i + 10)) 
{
    echo "true";
}
echo $j;
?>

What will be the output of the following PHP code ?

<?php
$a = "$winner";
$b = "$looser";
echo $a, $b;
?>

What will be the output of the following PHP code ?

<?php
$i = 0;$j = 1;$k = 2;
print !(( +  + $i + $j) > ($j - $k));
?>

What will be the output of the following PHP code ?

<?php
$a  =  '12345';
print "qwe".$a."rty";
?>

What will be the output of the following PHP code ?

<?php
$auth = 1;
$status = 1;
if ($result = (($auth == 1) && ($status != 0)))
{
    print "result is $result";
}
?>

What will be the output of the following PHP code ?

<?php
$a = "$winner";
$b = "$looser";
echo $a, $b;
?>

Invite your friends to Operators and Expressions in php - PHP quiz 3 Quiz

gmail WhatsApp Facebook Twitter Outlook Linkedin