Home

Which of the following PHP statements will output Hello World on the screen?
i) echo (“Hello World”);
ii) print (“Hello World”);
iii) printf (“Hello World”);
iv) sprintf (“Hello World”);


A.

i) and ii)


B.

i), ii) and iii)


C.

All of the mentioned


D.

i), ii) and iv)


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? If say date is 22/06/2013. <?php printf( date(t)…
  2. What will be the output of the following PHP code ? <?php $color1 = 1;$color2 = 1;echo $color1 +…
  3. What will be the output of the following PHP code? <?php $a1 = array(a=>red, b=>green, c=>blue, d=>yellow);$a2…
  4. PHP files have a default file extension of..
  5. What will be the output of the following PHP code ? <?php define('GREETING_TEST', 'PHP is a scripting…
  6. Which of the following PHP statements will output Hello World on the screen?i) echo (“Hello World”);ii)…
  7. What is the default number of seconds that cached session pages are made available before the new pages…
  8. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = red;echo $color1…
  9. A PHP script should start with ___ and end with ___:
  10. Which of the following must be installed on your computer so as to run PHP script?i) Adobe Dreamweaverii)…
  11. Which of following variables can be assigned a value to it?i) $3helloii) $_helloiii) $thisiv) $This
  12. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  13. What will be the output of the following PHP code ? <?php $i = 0;while(++$i || --$i){ print $i;}…
  14. What will be the output of the following PHP code? <?php echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');?>…
  15. Which one of the following is the default PHP session name?
  16. What will be the output of the following PHP code ? <?php /*echo Hello world;*/ ?>
  17. Which one of the following is the very first task executed by a session enabled page?
  18. Neglecting to set which of the following cookie will result in the cookies domain being set to the host…
  19. What will be the output of the following PHP code ? <?php define(GREETING, PHP is a scripting language);echo…
  20. What will be the output of the following PHP code ? <?php define(VAR_NAME,test);${VAR_NAME} = value;echo…
  21. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1.$color2;?>…
  22. What will be the output of the following code?<?php $foo = 'Bob'; $bar = &$foo; $bar…
  23. What will be the output of the following PHP code ? <?php $color1 = red;$color2 = green;echo $color1…
  24. Which one of the following format parameter can be used to identify timezone?
  25. What will be the output of the following PHP code ? <?php define(__LINE__, PHP is a scripting language);echo…
  26. 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,…
  27. What does PHP stand for?i) Personal Home Pageii) Hypertext Preprocessoriii) Pretext Hypertext Processoriv)…
  28. What will be the output of the following PHP code? <?php $a1 = array_fill(3, 4, blue);$b1 = array_fill(0,…
  29. What will be the output of the following PHP code ? <?php class Constants{ define('MIN_VALUE', '0.0');define('MAX_VALUE',…
  30. What will be the output of the following PHP code? <?php $fname = array(Peter, Ben, Joe);$age = array(35,…