Online Test for PHP

  1. include_once is a ________.
    Function
    Statement
    Language Constructor
    All of the above

  1. If parent class has Final method abc(). Method abc() can be overridden in child class.
    True
    False


  1. Calling a non-static method statically generates _____ .
    an E_STRICT level warning
    an E_DEPRECATED level warning
    an E_RECOVERABLE_ERROR level warning
    no warning

  1. How are session variables accessed through?
    $_GET
    $_POST
    $_REQUEST
    None of the above

  1. What is most appropriate way to open file "placementquestion.txt" in write mode?
    openf("placementquestion.txt", "w");
    fopen("placementquestion.txt", "w");
    open("placementquestion.txt", "w");
    fopen("placementquestion.txt", "w+");

  1. Static properties can be accessed through the object using the arrow operator ->.
    True
    False


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

  1. Interface constant can be override in class implementing the interface.
    True
    False

  1. Which of the following tags is not a valid way t o begin and end a PHP code block?
    <% %>
    <! !>
    <? ?>
    <?= ?>

Post Your Question
Social Sharing
Search