PHP Skill Test – 02

4
Created on By admin

PHP Skill Test - 02

1 / 10

Which of the below statements is equivalent to $add += $add ?

 

2 / 10

What will be the output of the following PHP code?

<?php $a = 5; $b = 5; echo ($a === $b); ?>

3 / 10

Which of the below symbols is a newline character?

 

4 / 10

What will be the output of the following PHP code?

<?php $team = "arsenal"; switch ($team) { case "manu": echo "I love man u"; case "arsenal": echo "I love arsenal"; case "manc": echo "I love manc"; } ?>

5 / 10

If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?

 

6 / 10

Who is the father of PHP?

 

7 / 10

Which one of the following is the right way of defining a function in PHP?

 

8 / 10

What will be the output of the following PHP code?

<?php function a() { function b() { echo "I am b";	} echo "I am a"; } b(); a(); ?>

9 / 10

A function in PHP which starts with __ (double underscore) is know as.

 

10 / 10

What will be the output of the following PHP code ?

<?php	$one = 1;	print($one);	print $one; ?>

Your score is

The average score is 38%

0%

Leave a Reply

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