Php Interview Questions & Answers: part6



Php Interview QUESTIONS AND ANSWERS :: part6 : 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.Which one of the following functions is used to determine object type?

obj_type()
type()
is_a()
is_obj()

7.Which method scope prevents a method from being overridden by a subclass?

Abstract
Protected
Final
Static

8.Which one of the following functions is used to determine whether a class exists?

exist()
exist_class()
class_exist()
__exist()

9.Which one of the following keyword is used to inherit our subclass into a superclass?

extends
implements
inherit
include

10.Which one of the following is the right way to call a class constant, given that the class is mathFunction? #77. Which one of the following is the right way to call a class constant, given that the class is mathFunction?

echo PI;
echo mathFunction->PI;
echo mathFunction::PI;
echo mathFunction=PI;

More Php Interview QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
Trust because you are willing to accept the risk, not because it’s safe or certain