Home

What will be the output of the following PHP code ?
 <?php  class Constants{    define('MIN_VALUE', '0.0');
define('MAX_VALUE', '1.0');
public static function getMinValue() { return self::MIN_VALUE;
} public static function getMaxValue() { return self::MAX_VALUE;
}}echo Constants::getMinValue();
echo Constants::getMaxValue();
?>

A. 0.01.0

B. 01

C. No output

D. ERROR

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. What will be the output of the following PHP code? <?php $cars = array(Volvo, BMW, Toyota);echo I…
  2. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  3. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  4. What will be the output of the following PHP code ? <?php define('GOOD_OCTAL', 0700);define('BAD_OCTAL',…
  5. PHP files have a default file extension of..
  6. What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  7. What will be the output of the following PHP code ? <?php $i = ;while ($i = 10){ print hi;}print…
  8. Which one of the following format parameter can be used to identify timezone?
  9. What will be the output of the following PHP code? <?php $a1 = array(red, green);$a2 = array(blue,…
  10. How many ways can a session data be stored?
  11. What will be the output of the following PHP code ? <?php $i = 2;while (++$i){ while (--$i > 0) print…
  12. Which one of the following function is useful for producing a timestamp based on a given date and time.
  13. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  14. What is the default time(in seconds) for which session data is considered valid?
  15. What will be the output of the following PHP code? <?php $a = array(red, green, blue);array_pop($a);print_r($a);?>…
  16. What will be the output of the following PHP code? <?php $a = array(a=>red, b=>green, c=>blue);echo…
  17. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;echo $color1…
  18. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = 1;$color3 = greyecho…
  19. Which one of the following is the default PHP session name?
  20. What will be the output of the following PHP code ? <?php $i = 5;while (--$i > 0 && ++$i){ print…
  21. Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  22. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language,…
  23. What will be the output of the following PHP code ? <?php define('GREETING_TEST', 'PHP is a scripting…
  24. A PHP script should start with ___ and end with ___:
  25. Say you want to calculate the date 45 days from the present date which one of the following statement…
  26. If the directive session.cookie_lifetime is set to 3600, the cookie will live until..
  27. What will be the output of the following PHP code? <?php $age = array(Peter=>35, Ben=>37, Joe=>43);print_r(array_change_key_case($age,…
  28. Which one of the following function is used to start a session?
  29. What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…
  30. What will be the output of the following PHP code ? <?php $color1 = 1;$color2 = 1;echo $color1 +…