1. Question: What’s the special meaning of the following metacharacter(^p)?

    A
    Matches the beginning of the line

    B
    Matches the end of the line

    C
    Matches the middle of the line

    D
    It count the number of p in a sentence

    Note: Not available
    1. Report
  2. Question: What’s the special meaning of the following metacharacter($:)?

    A
    Matches the beginning of the line

    B
    Matches the end of the line

    C
    Matches the middle of the line

    D
    It’s just used before a variable

    Note: Not available
    1. Report
  3. Question: What means ($a == 12) ? 5 : -1?

    A
    If $a equals 12, return value is 5; Otherwise, return value is –1

    B
    If $a equals 12, return value is -1; Otherwise, return value is 5

    C
    If $a equals 5, return value is 12; Otherwise, return value is –1

    D
    If $a equals -1, return value is 5; Otherwise, return value is 12

    Note: Not available
    1. Report
  4. Question: Why preg_grep() function wiil you use?

    A
    Searches all elements of an array

    B
    For grapping the array

    C
    For grapping the character

    D
    Searches define elements of an array

    Note: Not available
    1. Report
  5. Question: select the correct output of the following’s syntax? <?php $v=array("public","policy","support","Republic"); $p=preg_grep("/^p/",$v); print_r($p); ?>

    A
    Array ( [0] => public [1] => policy )

    B
    [0] => public [1] => policy

    C
    Array ( [2] => support [3] => Republic )

    D
    [2] => support [3] => Republic

    Note: Not available
    1. Report
  6. Question: What means $a .= 5?

    A
    $a equals $a concatenated with 5

    B
    $a equals $a divided with 5

    C
    $a equals $a concatenated with .5

    D
    $a equals $a concatenated with 5.5

    Note: Not available
    1. Report
  7. Question: Which one matches any string enclosed within <b> and</b>?

    A
    <b>(.*)</b>

    B
    <b>(*)</b>

    C
    ^b(.*)</b>

    D
    ^b(.*)b

    Note: Not available
    1. Report
  8. Question: printf("The value of Pi is %f", PI); $pi2 = 2 * PI; printf("Pi doubled equals %f", $pi2); This code produces the following results:

    A
    The value of pi is 3.141592 Pi doubled equals 6.283184

    B
    The value of pi is 3.141592 Pi doubled equals 2*3.141592

    C
    The value of pi is 3.141592. Pi doubled equals 6.283184.

    D
    The value of pi is 3.141592. 2 * PI

    Note: Not available
    1. Report
  9. Question: Select the correct output__ <?php $string1 = "10"; $string2 = "15"; $result = strcmp($string1, $string2); if ($result !== 0) {     echo "The strings do not match"; } else {     echo "The strings match"; } ?>

    A
    The strings do not match

    B
    The strings match

    C
    Both incorrect

    D
    Error

    Note: Not available
    1. Report
  10. Question: Which of the following function returns the number of characters in a string variable?

    A
    count($variable)

    B
    len($variable)

    C
    strcount($variable)

    D
    strlen($variable)

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