MCQs
Total Questions : 30
| Page 1 of 3 pages
Answer: Option D. -> function __construct()
A double underscore followed by the construct keyword. Its syntax is function __construct ([ argument1, argument2,.....]) { Class Initialization code }
Answer: Option C. -> Final
Final
Answer: Option B. -> All of the mentioned
All of the mentioned
Answer: Option C. -> class_exist()
The class_exist() function returns true or false according to whether the class exists within the currently executing script content.
Answer: Option B. -> PHP 5
Using instanceof keyword we can determine whether an object is an instance of a class. $manager = new Employee() ¦ if ($manager instanceof Employee) echo "True;
Answer: Option C. -> is_a()
The is_a() function returns true if object belongs to a class type or if it belongs to a class that is a child of that class. Or else false is returned.
Answer: Option D. -> $this
$this
Answer: Option B. -> public $name;
Yes they are nothing but variables.
Answer: Option C. -> static
static
Answer: Option A. -> extends
extends