1. Question: ^p means matches any string with p at the beginning of it.

    A
    Yes

    B
    No

    Note: Not available
    1. Report
  2. 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
  3. 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
  4. 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
  5. Question: Which is not a POSIX-style regular expression function ?

    A
    ereg()

    B
    ereg_replace()

    C
    spliti()

    D
    regex()

    Note: Not available
    1. Report
  6. 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
  7. 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
  8. 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
  9. Question: Which function divides a string into various elements ?

    A
    ereg()

    B
    eregi()

    C
    split()

    D
    spliti()

    Note: Not available
    1. Report
  10. Question: What will be the correct output of the following syntax ? <?php       $text="this is\tsome text that\nwe might like to parse.";        print_r(split("[\n\t]",$text)); ?>

    A
    Array ( [0] => this is  some[1] => text that [2] => we might like to parse. )

    B
    Array ( [0] => this is [1] => some text  [2] =>that we might like to parse. )

    C
    Array ( [0] => this is [1] => some text that we [2] => might like to parse. )

    D
    Array ( [0] => this is [1] => some text that [2] => we might like to parse. )

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