PHP Skill Test – 03

6
Created on By admin

PHP Skill Test - 03

1 / 10

What will be the output of the following PHP code ?

<?php	$cars = array("Volvo", "BMW", "Toyota");	print $cars[2]; ?>

2 / 10

What will be the output of the following PHP code ?

<?php	$on$e = 1;	$tw$o = 2;	$thre$e = 3;	$fou$r = 4;	echo "$on$e / $tw$o + $thre$e / $fou$r"; ?>

3 / 10

What will be the output of the following PHP code ?

<?php	$x = 10;	$y = 20;	if ($x > $y + $y != 3)	print "hi" ;	else	print "how are u"; ?>

4 / 10

What will be the output of the following PHP code ?

<?php	$x = 10;	$y = 20;	if ($x > $y && 1||1)	print "hi" ;	else	print "how are u"; ?>

5 / 10

What will be the output of the following PHP code ?

<?php	$i = 5;	while (--$i > 0)	{	$i++;	print $i;	print "hello";	} ?>

6 / 10

PHP Stands for

 

7 / 10

PHP is ___________ scripting language.

 

8 / 10

PHP scripts are executed on _________

 

9 / 10

PHP Scripts starts with ________

 

10 / 10

Which of the following statements prints in PHP?

 

Your score is

The average score is 30%

0%

Leave a Reply

Your email address will not be published. Required fields are marked *