1. Question: What will be the result of following operation?

    Print 4<<5;

    A
    3

    B
    128

    C
    120

    D
    6

    Note: Not available
    1. Report
  2. 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
  3. Question: what is the output of the following code?

    <?php

           Function

    Vec_add(&$a,$b)

    {

    $a[“x”]+=$b[“x”];

    $a[“y”]+=$b[“y”];

    $a[“z”]+=$b[“z”];

    }

     

    $a=array(x=>3,y=>2,z=>5);

    $b=array(x=>9,y=>3,z=>-7);

     

    Vec_add(&$a,$b);

     

    Print_r($a);

    ?>

    A
    Array

    (

    [x]=>9

    [y]=>3

    [z]=>-7

    )


    B
    Array

    (

    [x]=>3

    [y]=>2

    [z]=>5

    )


    C
    Array

    (

    [x]=>12

    [y]=>5

    [z]=>-2

    )


    D
    Error

    E
    None

    Note: Not available
    1. Report
  4. 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
  5. Question: You have two strings, which you want to concatenate.

                      $str1=’Have a’;

                      $str2=’Nice Day’;             

            The fastest way would be:

    A
    $str1.concat($str2);

    B
    $str1.str2;

    C
    “$str1str2”;

    D
    None

    Note: Not available
    1. Report
  6. Question: Which of the following crypto in PHP returns longest hash value?

    A
    Md5()

    B
    Sha1()

    C
    Crc32()

    D
    All return same length hash

    Note: Not available
    1. Report
  7. Question: Which of the following are the valid PHP data types?

    A
    Recourse

    B
    Null

    C
    Boolean

    D
    String

    E
    None

    Note: Not available
    1. Report
  8. Question: Consider the following class:
    1 Class Insurance{
    2   Function clsName(){
    3     Echo get_class(this);
    4   }
    5 }
    6 $cl=new Insurance();
    7 $cl->clsName();
    8 Insurance::clsName
    Which of the following lines should be commented to print the class name without errors?

    A
    Line 8 and 9

    B
    Line 8

    C
    Line 9 and 10

    D
    All the three lines 8,9, and 10 should be left as it is.

    E
    None

    Note: Not available
    1. Report
  9. Question: Which following pair have non-associative equal procedure?

    A
    +,-

    B
    ==,!=

    C
    <<,>>

    D
    &=,|=

    E
    None

    Note: Not available
    1. Report
  10. Question: Which of the following variable declarations within a class is invalid in PHP5?

    A
    Private $type=’moderate’;

    B
    Internal $term=3;

    C
    Public $amnt=’500’;

    D
    Protected $name=’Quantas Private Limited’;

    E
    None

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