Online Test for PHP

  1. PHP is an open source software
    True
    False

  1. PEAR stands for?
    PHP Extension and Application Record
    PHP Extended and Application Repository
    PHP Extension and Application Repository
    PHP Extension and Applicable Repository


  1. To create instance of class "new" keyword is not required.
    True
    False

  1. list in PHP is ?
    Language construct
    Keyword
    A & C Both
    None of the above

  1. Which PHP function or variable will return the value of current session id?
    session_id()
    get_session_id;
    $_SESSION['CURRENT_ID'];
    $_SESSION['ID']

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


  1. Which of those is not magic method?
    __autoload
    __clone
    __sleep
    __toint

  1. The variable name is case-sensitive in PHP.
    True
    False

  1. If property of class is declare using var then PHP5 will treat the property as?
    Protected
    Private
    Public
    Final

  1. What will range('a', 'z') return?
    Find difference between 'a' to 'z'
    An alphabetically ordered array of letters from 'a' to 'z'
    Will only apply on integer value
    None of the above

Post Your Question
Social Sharing
Search