21.
What will be the output of the following PHP code ?
<?php
$one = "Hello";
$two = "World";
echo $one, $two;
?>

22.
What will be the output of the following PHP code ?

<?php
$one = "Hello";
$two = "World";
echo "$one$two";
?>

23.
What will be the output of the following PHP code ?

<?php
$one = "Hello";
$two = "World";
echo "$one"+"$two";
?>

25.
What will be the output of the following PHP code ?
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "My car is a {$cars[0]}";
?>

26.
What will be the output of the following PHP code ?
<?php
print "echo hello world";
?>

27.
What will be the output of the following PHP code ?
<?php
$one = 1;
print($one);
print $one;
?>

28.
What will be the output of the following PHP code ?
<?php
$cars = array("Volvo", "BMW", "Toyota");
print $cars[2];
?>

29.
What will be the output of the following PHP code ?
<?php
$one = "one";
$two = "two";
print($one$two);
?>

30.
What will be the output of the following PHP code ?
<?php
$one = "one";
$two = "two";
print($one,$two);
?>

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.