1. Question: Which of the following is a correct declaration?

    A
    static $varb = array(1,'val',3);

    B
    static $varb = 1 +(2*90);

    C
    static $varb = aqrt(81);

    D
    static $varb = new Object;

    Note: Not available
    1. Report
  2. 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
  3. Question: Which of the following is a Ternary Operator?

    A
    &

    B
    =

    C
    :?

    D
    ?:

    E
    +=

    F
    &&

    Note: Not available
    1. Report
  4. Question: Which of the following are useful for method overloading?

    A
    ___call,___get,___set

    B
    _get,_set,_load

    C
    __get,__set,__isset

    D
    ___overload

    Note: Not available
    1. Report
  5. Question: Which of the following text manipulation functions is supported by PHP?

    A
    strtoupper()

    B
    ucfirst()

    C
    strolower()

    D
    str_split()

    E
    All of the above

    Note: Not available
    1. Report
  6. Question: Variable/functions in PHP don't work directly with:

    A
    echo()

    B
    isset()

    C
    print()

    D
    All of the above

    Note: Not available
    1. Report
  7. Question: Which of the following is a PHP resource?

    A
    Domxml document

    B
    Odbc link

    C
    File

    D
    All of the above

    Note: Not available
    1. Report
  8. Question: Which of the following statements is not true with regard to abstract classes in php5?

    A
    Abstract classes are introduced in PHP5

    B
    A class with a single abstract method must be declared abstract

    C
    Abstract class can contain non abstract methods

    D
    Abstract method must have method definition and can have optional empty braces following it

    Note: Not available
    1. Report
  9. Question: Multiple select/load is possible with:

    A
    Checkbox

    B
    Select

    C
    File

    D
    All of the above

    Note: Not available
    1. Report
  10. Question: What do you infer from the following code? <?php         $str = 'Dear Customer, \nThanks for your query. We will reply very soon.?\n Regards. \n Customer Service Agent';         print $str; ?>

    A
    Only first \n character will be recognised and new line will be inserted.

    B
    Last \n will not be recognised and only first two parts will come in new lines.

    C
    All the \n will work and text will be printed on respective new lines.

    D
    All will be printed on one line irrespective of the \n.

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