Php Interview Questions & Answers: part5



Php Interview QUESTIONS AND ANSWERS :: part5 : 6 to 10

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

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

Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA )
Array ( [0] => KA [2] => CA [4] => TA )
Array ( [1] => IA [3] => GA )
Array ( [1] => LA [3] => MA )

7.Which of the functions is used to sort an array in descending order? #62. Which of the functions is used to sort an array in descending order?

sort()
asort()
rsort()
dsort()

8.The practice of separating the user from the true inner workings of an application through well-known interfaces is known as..

Polymorphism
Inheritance
Encapsulation
Abstraction

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

Array ( [0] => peach )
Array ( [0] => apple [1] => mango [2] => peach )
Array ( [0] => apple [1] => mango )
Array ( [0] => peach [1] => pear [2] => orange )

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

4hello2
4
2
6

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If your ship doesn’t come in, swim out to meet it!-Jonathan Winters