1. Question: Which of the following is not supported in PHP5?

    A
    Type Hinting

    B
    Reflection

    C
    Magic Methods

    D
    Multiple Inheritance

    E
    Object Cloning

    Note: Not available
    1. Report
  2. Question: Which of the following pair have non-associative equal precedence?

    A
    +,-

    B
    ==,!=

    C
    <<,>>

    D
    &=,|=

    Note: Not available
    1. Report
  3. Question: Which of the following attribute is needed for file upload via form?

    A
    enctype="multipart/form-data"

    B
    enctype="singlepart/data"

    C
    enctype="file"

    D
    enctype="form_data/file"

    Note: Not available
    1. Report
  4. Question: you need to check the size of a file in PHP function.
    $size=X(filename);
    Which function will suitably replace 'X'?

    A
    filesize

    B
    size

    C
    sizeofFile

    D
    getSize

    Note: Not available
    1. Report
  5. Question: What will be the output of the following code?
    function fn(&$var)
     {
        $var = $var - ($var/10 * 5);
        return $var;

      }
     echo fn (100);

    A
    100

    B
    50

    C
    98

    D
    Error massage

    E
    None of the above

    Note: Not available
    1. Report
  6. Question: Which of the following is not a valid PHP parser tag?

    A
    script

    B
    ?p

    C
    %

    D
    ?php

    Note: Not available
    1. Report
  7. Question: Which of the following variables are supported by 'str_replace()' function?

    A
    Integer

    B
    String

    C
    Boolean

    D
    Array

    Note: Not available
    1. Report
  8. Question: What will be the output of the following code?
    $var = 10;
    function fn()
    {
       $var = 20;
       return $var;
    }
    fn();
    echo $var;

    A
    10

    B
    20

    C
    Undefined Variable

    D
    Syntax Error

    Note: Not available
    1. Report
  9. Question: How would you store order number (34) in an 'OrderCookie'?

    A
    setcookie("OrderCookie",34);

    B
    make Cookie("OrderCookie",34);

    C
    Cookie("OrderCookie",34);

    D
    OrderCookie(34);

    Note: Not available
    1. Report
  10. Question: Consider the following two statements:
    1   While (expr) statement
    2   while (expr): statement... endwhile;
    Which of the following are true in context of the given statements?

    A
    1 is correct and 2 is wrong

    B
    1 is wrong and 2 is correct

    C
    Both 1 & 2 are wrong

    D
    Both 1 & 2 are correct

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd