1.
What will be the output of the following PHP code ?
<?php
"Hello World"
?>

2.
What will be the output of the following PHP code ?
<?php
print_r "Hello world"
?>

3.
What will be the output of the following PHP code ?
<?php
$color = "red";
echo "$color";
echo "$COLOR";
echo "$Color";
?>

4.
What will be the output of the following PHP code ?
<?php
 # echo "Hello world";
 echo "# Hello world"; 
?>

5.
What will be the output of the following PHP code ?
<?php
echo "Hello World"
?>

6.
What will be the output of the following PHP code ?
<?php
echo "echo "Hello World"";
?>

7.
What will be the output of the following PHP code ?
<?php
<?php
echo "Hello world";
?>
?>

8.
What will be the output of the following PHP code ?
<?php
$color = red;
echo "$color";
?>

9.
What will be the output of the following PHP code ?
<?php
$color = red;
echo "$color" . red ;
?>

10.
What will be the output of the following PHP code ?
<?php
$color1 = red;
$color2 = green;
echo "$color1"."$color2";
?>

Read More Section(Operators and Expressions in php)

Each Section contains maximum 100 MCQs question on Operators and Expressions in php. To get more questions visit other sections.