Q.1
What will be the output of the following PHP code? <?php $x =$y =function fun() { $y = $GLOBALS['x'] + $GLOBALS['y']; } fun(); echo $y; ?>
  • a) 5
  • b) 10
  • c) 15
  • d) Error
Q.2
PHP recognizes constructors by the name _________
  • a) function __construct()
  • b) function _construct()
  • c) classname()
  • d) _construct()
Q.3
The developers of PHP deprecated the safe mode feature as of which PHP version?
  • a) PHP 5.3.1
  • b) PHP 5.3.0
  • c) PHP 5.1.0
  • d) PHP 5.2.0
0 h : 0 m : 1 s