Online Test for PHP

  1. What is the name of function used to convert an array into a string?
    explode()
    glue()
    implode()
    None of the above

  1. Static methods can be call with class name and colon operator, $this is not available inside the method declared as static.
    True
    False


  1. __FILE__ is ?
    Language construct
    Keyword
    Compile-time constant
    None of the above

  1. PHP stands for
    Process Hypertext Preprocessor
    Preprocessor Hypertext
    Hypertext Preprocessor
    None of the above

  1. What function creates a cookie?
    create_cookie()
    set_cookie()
    setcookie()
    None of the above

  1. If cookie expiration time is not set explicitly, what happens to it?
    It expires right away
    It never expires
    It is not set
    It expires at the end of the user's browser session


  1. microtime() returns _______.
    current Unix timestamp with seconds
    current Unix timestamp with nanoseconds
    current Unix timestamp with microseconds
    None of the above

  1. PECL stands for?
    PHP Extension Community Laboratory
    PHP Extension Combined Library
    PHP Export Community Library
    PHP Extension Community Library

  1. $this is a reference to the calling object
    True
    False

  1. In terms of keywords and language syntax, PHP is similar to?
    C
    COBOL
    FORTRAN
    .Net

Post Your Question
Social Sharing
Search