Php Interview Questions & Answers: part2



Php Interview QUESTIONS AND ANSWERS :: part2 : 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.If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?

12
1
Error
5

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

123
111
000
011

3.Who is the father of PHP?

Rasmus Lerdorf
Willam Makepiece
Drek Kolkevi
List Barely

4.What will be the output of the following PHP code?

What is her age? \n She is $num years old
What is her age?
s $num years old
What is her age? She is 10 years old

5.What is the value of $a and $b after the function call?

a is 3 and b is 4.
a is 4 and b is 3.
Both are 3.
Both are 4.

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If you are not willing to risk the usual you will have to settle for the ordinary- Jim Rohn