1. Question: Which of the following statement is the default exception constructor?

    A
    thrown Exception()

    B
    throw new Exception()

    C
    throw new $Exception()

    Note: Not available
    1. Report
  2. Question: During the developing stage, which of the directive used for all errors to be reported?

    A
    error_reporting=All_error & E_strict

    B
    E_All | E_Parse

    C
    error_reporting=E_All  & E_STRICT

    D
    None of the above

    Note: Not available
    1. Report
  3. Question: Which features determine the language’s  error – handling behavior.

    A
    Error Logging

    B
    Exception Handling

    C
    Configuration

    D
    All of the above

    Note: Not available
    1. Report
  4. Question: Which charecter range matches any charecter from uppercase A through lowercase z ?

    A
    [a-ZA-z]

    B
    [A-Za-z]

    C
    [A-z]

    D
    [A-za-z]

    Note: Not available
    1. Report
  5. Question: Which quantifiers matches any string with p at the beginning of it?

    A
    p+

    B
    p?

    C
    ^p

    D
    p^

    Note: Not available
    1. Report
  6. Question: Which quantifiers matches any string containing a p followed by zero or more instances of the sequence hp ?

    A
    p(hp)*

    B
    p*(hp)

    C
    *hp(p)

    D
    hp(p)*

    Note: Not available
    1. Report
  7. Question: Which is not a POSIX-style regular expression function ?

    A
    ereg()

    B
    ereg_replace()

    C
    spliti()

    D
    regex()

    Note: Not available
    1. Report
  8. Question: Which function executes a case-sensitive search of a string for a defined pattern ? 

    A
    eregi()

    B
    This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

    C
    eregi_replace()

    D
    none

    Note: Not available
    1. Report
  9. Question: What will be the correct output of the following syntax ?
    <?php
         $username="jasoN";
         if(ereg"([^a-z])",$username))
             echo "Username must be all lowercase!";
         else
             echo "Username is all lowercase!";
    ?>

    A
    Username is all lowercase!

    B
    Jason

    C
    Username must be all lowercase!

    D
    jason

    Note: Not available
    1. Report
  10. Question: Which function searches a string for a defined pattern in a case-insensitive fashion ? 

    A
    ereg()

    B
    eregi()

    C
    split()

    D
    spliti()

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