Evaluate the expression: 5+5 * 7-2
<div class="question_list_op">
<?php
echo 5+5 * 7-2
?>
</div>
<div class="question_list_op">
<?php
echo 5+5 * 7-2
?>
</div>
50
76
87
30
38
Correct!
Wrong!
What would be the output of
print 5 << 6
operations?
<div class="question_list_op">
<?php
print 5 << 6;
?>
</div>
print 5 << 6
operations?
<div class="question_list_op">
<?php
print 5 << 6;
?>
</div>
3
320
330
6
None of the above
Correct!
Wrong!
What will be the value of $var?
<div class="question_list_op">
<?php
$php_var = 3 / 4;
echo $php_var;
?>
</div>
<div class="question_list_op">
<?php
$php_var = 3 / 4;
echo $php_var;
?>
</div>
0
1
0.75
Correct!
Wrong!
What is the output?
<div class="question_list_op">
<?php
$RESULT = 12 + 012 + 0x12;
echo "$RESULT";
?>
</div>
<div class="question_list_op">
<?php
$RESULT = 12 + 012 + 0x12;
echo "$RESULT";
?>
</div>
36
24
40
12
Correct!
Wrong!
What will be the value of $var below?
<div class="question_list_op">
<?php
$php_var = true ? '2' : false ? '1' : '4';
echo $php_var;
?>
</div>
<div class="question_list_op">
<?php
$php_var = true ? '2' : false ? '1' : '4';
echo $php_var;
?>
</div>
1
2
4
Correct!
Wrong!
What is the value of $webmull?
<div class="question_list_op">
<?php
$web= 20;
$mull= 1;
$webmull= $mull?:$web;
?>
</div>
<div class="question_list_op">
<?php
$web= 20;
$mull= 1;
$webmull= $mull?:$web;
?>
</div>
20
1
21
None of the above
Correct!
Wrong!
True or false?
<div class="question_list_op">
<?php
echo 456 !== 0456;
?>
</div>
<div class="question_list_op">
<?php
echo 456 !== 0456;
?>
</div>
True
False
Correct!
Wrong!
What is the outcome of this piece of code?
<div class="question_list_op">
<?php
$web = 1;
$mull = 10;
$web ^= $mull ^= $web ^= $mull;
echo $web;
?>
</div>
<div class="question_list_op">
<?php
$web = 1;
$mull = 10;
$web ^= $mull ^= $web ^= $mull;
echo $web;
?>
</div>
0
100
9
10
1
Correct!
Wrong!
What is the output of this piece of code:
<div class="question_list_op">
<?php
if ('0210320402215600124' === '320122040242132001264')
echo 'equal'; else
echo 'not equal';
?>
</div>
<div class="question_list_op">
<?php
if ('0210320402215600124' === '320122040242132001264')
echo 'equal'; else
echo 'not equal';
?>
</div>
Equal not
Equal
Correct!
Wrong!
What is the outcome of this piece of code:
<div class="question_list_op">
<?php
$web = 9;
$mull = 10;
echo $web ^ $mull;
?>
</div>
<div class="question_list_op">
<?php
$web = 9;
$mull = 10;
echo $web ^ $mull;
?>
</div>
5
2
3
4
Correct!
Wrong!
Share the quiz to show your results !
Subscribe to see your results
PHP Basics Quiz questions for operators
I got %%score%% of %%total%% right
%%description%%
%%description%%
Loading...