PHP Skill Test – 01

5
Created on By admin

PHP Skill Test - 01

1 / 10

PHP files have a default file extension of_______

 

2 / 10

A PHP script should start with ______ and end with _______

 

3 / 10

Which of the following is/are a PHP code editor?

 

4 / 10

Which version of PHP introduced Try/catch Exception?

 

5 / 10

What will be the output of the following php code?

<?php $num = 1; $num1 = 2; print $num . "+". $num1; ?>

6 / 10

What will be the output of the following php code?

<?php $num = "1"; $num1 = "2"; print $num+$num1; ?>

7 / 10

Which of following variables can be assigned a value to it?

i) $3hello
ii) $_hello
iii) $this
iv) $This

 

8 / 10

What will be the output of the following PHP code?

<?php $color = "maroon"; $var = $color[2]; echo "$var"; ?>

9 / 10

What will be the output of the following PHP code?

<?php $score = 1234; $scoreboard = (array) $score; echo $scoreboard[0]; ?>

10 / 10

What will be the output of the following PHP code?

<?php $total = "25 students"; $more = 10; $total = $total + $more; echo "$total"; ?>

Your score is

The average score is 30%

0%

Leave a Reply

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