Friday, August 12, 2011

PHP Quiz Part-1




PHP quiz for the PHP programmer.



  1. What does PHP stand for?


  2. Preprocessed Hypertext Page
    Hypertext Markup Language
    PHP: Hypertext Preprocessor
    Hypertext Transfer Protocol

  3. Which of the following is the way to create comments in PHP?


  4. // commented code to end of line
    /* commented code here */
    # commented code to end of line
    all of the above

  5. A value that has no defined value is expressed in PHP with the following keyword:


  6. undef
    null
    None
    There is no such concept in PHP

  7. Which of the following is NOT a valid PHP comparison operator?


  8. !=
    >=
    <=>
    <>

  9. Which of the following is used to declare a constant


  10. const
    constant
    define
    #pragma

  11. Which of the following is NOT a magic predefined constant?


  12. __LINE__
    __FILE__
    __DATE__
    __CLASS__

  13. PHP server scripts are surrounded by delimiters, which?



  14. ...

    <&>...

  15. How do you write "Hello World" in PHP


  16. Document.Write("Hello World");
    echo "Hello World";
    "Hello World";
    none of the above

  17. All variables in PHP start with which symbol?


  18. !
    *
    #
    $

  19. What is the correct way to end a PHP statement?



  20. ;
    New line
    !

Check Your Progress.



~:Please post your comment if you like this post:~

0 comments:

Post a Comment