1. Question: $color = "Green"; $number = 10; $age = 10; $sum = 10 + "19"; Output?

    A
    29

    B
    10101019

    C
    10+19

    D
    Green;10;10;10+19

    Note: Not available
    1. Report
  2. Question: PHP supported two regular expression ______

    A
    POSIX

    B
    Unix

    C
    Perl

    D
    Pear

    Note: Not available
    1. Report
  3. Question: $x = 4; function assignx () { $x = 0; printf("$x inside function is %d", $x); } assignx(); printf("$x outside of function is %d", $x); Executing this listing results in the following:

    A
    $x inside function is 0 $x outside of function is 4

    B
    $x inside function is null $x outside of function is null

    C
    $x inside function is 04 $x outside of function is 40

    D
    none

    Note: Not available
    1. Report
  4. Question: $somevar = 15; function addit() { $GLOBALS["somevar"]++; } addit(); echo "Somevar is ".$GLOBALS["somevar"]; This returns the following

    A
    Somevar is 16

    B
    Somevar is 15

    C
    Somevar is 16 Somevar is 17 Somevar is 18 Somevar is 19 Somevar is 20 . . .

    D
    16 Somevar is 16

    Note: Not available
    1. Report
  5. Question: Which statement is true about Regular Expressions?

    A
    describing or matching data according to defined syntax rules

    B
    allowing to slice and dice text in nearly every conceivable fashion.

    C
    Used for searching data

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

    A
    The value of pi is 3.141592 Pi doubled equals 0.283184

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

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

    D
    The value of pi is 3.141592. Pi doubled equals 6.283184 + 2 - 8.

    Note: Not available
    1. Report
  7. Question: Which is the OOP's foundational concept:

    A
    encapsulation

    B
    inheritance

    C
    polymorphism

    D
    all

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

    A
    eregi()

    B
    ereg()

    C
    pereg()

    D
    peregI()

    Note: Not available
    1. Report
  9. Question: <?php $output = "This is one line.\nAnd this is another line."; echo $output; ?> This returns the following

    A
    This is one line. And this is another line.

    B
    This is one line.\nAnd this is another line.

    C
    This is one line.And this is another line.

    D
    This is one line. \n And this is another line.

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

    A
    eregi()

    B
    ereg()

    C
    pereg()

    D
    peregI()

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