Question No : 29
What will be the output of the following PHP code ?
<?php define(NEW_GOOD_NAME_CONSTANT, I have a value);
define(OLD_BAD_NAME_CONSTANT, NEW_GOOD_NAME_CONSTANT);
�echo NEW_GOOD_NAME_CONSTANT;
echo OLD_BAD_NAME_CONSTANT;
?>
Question No : 30
What will be the output of the following PHP code ?
<?php $i = 0;
while (++$i && --$i){ print $i;
} ?>
Question No : 31
What will be the output of the following PHP code?
<?php $cars = array(Volvo, BMW, Toyota);
echo I like . $cars[0] . , . $cars[1] . and . $cars[2] . .;
?>
Question No : 32
What will be the output of the following PHP code ?
<?php define(GREETING, PHP is a scripting language, true);
echo GREETING;
echo
echo GREETING;
?>
Question No : 33
To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?
$date = Date(22 JUNE 2013)
$date = new Date(JUNE 22 2013)
$date = DateTime(22 JUNE 2013)
$date = new DateTime(22 JUNE 2013)
Question No : 34
If the format is F then which one of the following will be returned?
Question No : 35
Neglecting to set which of the following cookie will result in the cookies domain being set to the host name of the server which generated it.
session.domain
session.path
session.cookie_path
session.cookie_domain