Output of the below given code will be?
<?php
$php_var = 18;
if($php_var > 6 OR < 20)
echo "true";
else
echo "false"
?>
$php_var = 18;
if($php_var > 6 OR < 20)
echo "true";
else
echo "false"
?>
Correct!
Wrong!
-
What would be the output of following php script:
<?php
print 'Webmull Quiz1' print 'Webmull Quiz2'
?>
print 'Webmull Quiz1' print 'Webmull Quiz2'
?>
Correct!
Wrong!
-
What output of the following code will be?
<?php
function webmull($php_var) {
$php_var = $php_var - ($php_var / 5 * 3);
return $php_var;
}
echo webmull(150);
?>
function webmull($php_var) {
$php_var = $php_var - ($php_var / 5 * 3);
return $php_var;
}
echo webmull(150);
?>
Correct!
Wrong!
-
What is the value of echo 4+1 * 5+7 expression?
<?php
echo 4+1 * 5+7;
?>
echo 4+1 * 5+7;
?>
Correct!
Wrong!
-
What will be the output of -
echo 12 . 6?
echo 12 . 6?
<?php
echo 12 . 6
?>
echo 12 . 6
?>
Correct!
Wrong!
-
What will be the value of code:
$web = 0xFFFE;
$mull = 18;
$webmull = $web && $mull;
What will be the value of $webmull?
$web = 0xFFFE;
$mull = 18;
$webmull = $web && $mull;
What will be the value of $webmull?
<?php
$web = 0xFFFE;
$mull = 18;
$webmull = $web && $mull;
echo $webmull;
?>
$web = 0xFFFE;
$mull = 18;
$webmull = $web && $mull;
echo $webmull;
?>
Correct!
Wrong!
-
Output of the following code will be?
<?php
$phpa = 500;
$phpb = 200;
echo $phpa % 2 * $phpb;
?>
$phpa = 500;
$phpb = 200;
echo $phpa % 2 * $phpb;
?>
Correct!
Wrong!
-
Output of
<?php echo 20 * 1.7; ?>
Correct!
Wrong!
-
Output of the following code will be?
<?php
$web = 5;
$mull = 18;
$webmull = 2;
$webmull = $mull++ / $web++;
echo $web . " " . $mull . " " . $webmull . " ";
?>
$web = 5;
$mull = 18;
$webmull = 2;
$webmull = $mull++ / $web++;
echo $web . " " . $mull . " " . $webmull . " ";
?>
Correct!
Wrong!
-
What will the output of following php code?
<?php
$web = 1;
$mull = 11;
$webmull = 6;
$webmull = $mull++ / $web++ + --$webmull;
echo $webmull;
?>
$web = 1;
$mull = 11;
$webmull = 6;
$webmull = $mull++ / $web++ + --$webmull;
echo $webmull;
?>
Correct!
Wrong!
-

PHP Basics Quiz questions for syntax and operators
I got %%score%% of %%total%% right