Basics
1.
What does PHP stand for?
i) Personal Home Page
ii) Hypertext Preprocessor
iii) Pretext Hypertext Processor
iv) Preprocessor Home Page
2.
PHP files have a default file extension of_______
3.
What should be the correct syntax to write a PHP code?
4.
Which of the following is/are a PHP code editor?
i) Notepad
ii) Notepad++
iii) Adobe Dreamweaver
iv) PDT
5.
Which of the following must be installed on your computer so as to run PHP script?
i) Adobe Dreamweaver
ii) XAMPP
iii) Apache and PHP
iv) IIS
6.
Which version of PHP introduced Try/catch Exception?
7.
How should we add a single line comment in our PHP code?
i) /?
ii) //
iii) #
iv) /* */
8.
Which of the following PHP statement/statements will store 111 in variable num?
i) int $num = 111;
ii) int mum = 111;
iii) $num = 111;
iv) 111 = $num;
9.
What will be the output of the following PHP code?
<?php
$num = 1;
$num1 = 2;
print $num . "+". $num1;
?>
10.
What will be the output of the following PHP code?
<?php
$num = "1";
$num1 = "2";
print $num+$num1;
?>