1. Question: What will happen with the following code segment? $ = array( 1 => 'one', 2 => 'two', 3 => 'three'); unset($a[2]);

    A
    $a[2] is 'three' and $a[3] is undefined

    B
    $a[2] is 'three' and $a is 'three'

    C
    $a[2] is undefined and $a [3] is 'three'

    D
    $a[2] is undegined and $a[3] is undefined

    Note: Not available
    1. Report
  2. Question: What is the result of the following expression? 5+2*4+6

    A
    70

    B
    19

    C
    34

    D
    21

    Note: Not available
    1. Report
  3. Question: Which of the following functions is used to find the owner of a file on a UNIX system?

    A
    fileowner()

    B
    owner()

    C
    getowner()

    D
    whoisowner()

    E
    there is no inbuilt function for this

    Note: Not available
    1. Report
  4. 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
  5. Question: Does PHP 5 support exceptions?

    A
    Yes

    B
    No

    Note: Not available
    1. Report
  6. Question: We have two variable definitions: 1. 023 2. x23 Choose the correct options:

    A
    1 is octal

    B
    2 is hexadecimal

    C
    2 is octal

    D
    1 is hexadecimal

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

    A
    sha1()

    B
    crc32()

    C
    All return same length hash

    D
    md5()

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

    A
    strtoupper()

    B
    ucfirst()

    C
    strtolower()

    D
    str_split()

    E
    All of the above

    Note: Not available
    1. Report
  9. 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 nontain non abstract methods

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

    Note: Not available
    1. Report
  10. Question: Which of the following statement is not correct for PHP?

    A
    It is a server side scripting language

    B
    A php file may contain text, html tags or scripts

    C
    It can run on windows and Linux systems only

    D
    It is compatible with most of the common servers used today

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