Php Interview Questions & Answers: part1



Php Interview QUESTIONS AND ANSWERS :: part1 : 1 to 5

Following PHP Multiple choice objective type questions and answers will help you in many software compnaies written examinations and inteview 2015 :

1.What will be the output of the following code?

Error
My name is BobBob
My name is BobMy name is Bob
My name is Bob Bob

2.Which of following variables can be assigned a value to it? i) $3hello ii) $_hello iii) $this iv) $This

All of the mentioned
Only ii)
ii), iii) and iv)
ii) and iv)

3.Which of the following PHP statements will output Hello World on the screen? i) echo (“Hello World”); ii) print (“Hello World”); iii) printf (“Hello World”); iv) sprintf (“Hello World”);

i) and ii)
i), ii) and iii)
All of the mentioned
i), ii) and iv)

4.PHP files have a default file extension of.. #2. PHP files have a default file extension of..

.html
.xml
.php
.ph

5.Which of the following must be installed on your computer so as to run PHP script? i) Adobe Dreamweaver ii) PHP iii) Apache iv) IIS

All of the mentioned.
Only ii)
ii) and iii)
ii), iii) and iv)

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Too many of us are not living our dreams because we are living our fears.- Les Brown