Object Oriented Concept of PHP

Programming Language > PHP

This is the MCQ questions and answers section on "Object Oriented PHP" with the explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand. ➲ Object Oriented Concept of PHP - Quiz


  • A PHP 4
  • B PHP 5
  • C PHP 5.3
  • D PHP 6
  • A exist()
  • B exist_class()
  • C class_exist()
  • D __exist()
  • A Abstract
  • B Protected
  • C Final
  • D Static
  • A classname()
  • B _construct()
  • C function _construct()
  • D function __construct()
  • A echo
  • B public $name;
  • C class Example
  • D function sample()
  • A extends
  • B implements
  • C inherit
  • D include
  • A obj_type()
  • B type()
  • C is_a()
  • D is_obj()
  • A Abstraction
  • B Polymorphism
  • C Inheritance
  • D Differential
  • A class creation
  • B object creation
  • C object instantiation
  • D class instantiation
  • A friendly
  • B final
  • C public
  • D static
  • A $obj = new $foo;
  • B $obj = new foo;
  • C $obj = new foo ();
  • D obj = new foo ();
  • A Only (ii)
  • B Only (iv)
  • C (ii) and (iv)
  • A Only (ii)
  • B Only (iv)
  • C (i) and (ii)
  • D (iii) and (iv)
  • A $object->methodName();
  • B object->methodName();
  • C object::methodName();
  • D $object::methodName();
  • A echo PI;
  • B echo mathFunction->PI;
  • C echo mathFunction::PI;
  • D echo mathFunction=PI;
  • A constant PI =
  • B const $PI =
  • C constant PI =
  • D const PI =
  • A All of the mentioned
  • B All of the mentioned
  • C (i) and (ii)
  • D (iii) and (iv)
  • A All of the mentioned
  • B All of the mentioned
  • C (i) and (ii)
  • D (iii) and (iv)
  • A PHP 4
  • B PHP 5
  • C PHP 5.3
  • D PHP 6
  • A _clone(targetObject);
  • B destinationObject = clone targetObject;
  • C destinationObject = _clone(targetObject);
  • D destinationObject = clone(targetObject);
  • A Only (i)
  • B (ii), (iii) and (iv)
  • C Only (iii)
  • D (ii) and (iv)
  • A Normal class
  • B Static class
  • C Abstract class
  • D Interface
  • A Interface
  • B Object
  • C abstract class
  • D static class
  • A clone()
  • B __clone()
  • C _clone
  • D object_clone()
  • A Typecasting
  • B Method Including
  • C Method adding
  • D Method chaining
  • A __call
  • B __invoke
  • C __wakeup
  • D __unset