1. Question: What is the output?
    <?php
    $array = array("pic10.jpg","pic20.jpg","pic30.jpg","pic40.jpg","pic5.jpg");
    Natsort ($array);
    print_r($array);
    ?>

    A
    Array ( [0] => pic5.jpg [1] => pic10.jpg [2] => pic20.jpg [3] => pic30.jpg [4] => pic40.jpg )

    B
    Array ( [4] => pic5.jpg [0] => pic10.jpg [1] => pic20.jpg [2] => pic30.jpg [3] => pic40.jpg )

    C
    Array ( [4] => pic40.jpg [3] => pic30.jpg [2] => pic20.jpg [1] => pic10.jpg [0] => pic5.jpg )

    D
    None

    Note: Not available
    1. Report
  2. Question: What is the output?
    <?php
    $array = array (10, 20, 10, 30, 20, 40, 20, 40);
    asort ($array, SORT_STRING);
    print_r($array);
    ?>

    A
    Array ( [0] => 10 [2] => 10 [4] => 20 [1] => 20 [6] => 20 [3] => 30 [7] => 40 [5] => 40 )

    B
    Array ( [0] => 10 [1] => 10 [2] => 20 [3] => 20 [4] => 20 [5] => 30 [6] => 40 [7] => 40 )

    C
    Array ( [10] => 0 [10] => 1 [20] => 2 [20] => 3 [20] => 4 [30] => 5 [40] => 6 [40] => 7 )

    D
    Array ( [0] => 10 [1] => 20[2] => 10[3] => 30[4] => 20 [5] => 40[6] => 20[7] => 40 )

    Note: Not available
    1. Report
  3. Question: What is the output?
    <?php
    $array = array(10,20,10,30,20,40,20,40);
    $a =array_count_values($array);
    print_r($a);
    ?>

    A
    Array ( [2] => 10 [3] => 20 [1] => 30 [2] => 40 )

    B
    Array ( [0] => 10 [1] => 20 [2] => 10 [3] => 30[4] => 20[5] => 40[6] => 20[7] => 40)

    C
    Array ( [10] => 2 [20] => 3 [30] => 1 [40] => 2 )

    D
    None

    Note: Not available
    1. Report
  4. Question: What is the output of the following code?
    $a=1;
    ++$a;
    $a*=$a;
    echo $a--;

    A
    3

    B
    4

    C
    5

    D
    0

    E
    1

    Note: Not available
    1. Report
  5. Question: When PHP is running on a command line, what super-global will contain the command line arguments specified?

    A
    $_ENV

    B
    $_SERVER

    C
    $GLOBALS

    D
    $_POST

    E
    $_ARGV

    Note: Not available
    1. Report
  6. Question: Which is the correct output of the following script?
    $model="Toyota";
    $obj=(object) $model;
    print $obj->scalar;

    A
    Fatal Error

    B
    Object

    C
    Toyota

    D
    Warning: Scalar property is not defined in the object

    Note: Not available
    1. Report
  7. Question: Which of the following is not correct type casting operator?

    A
    int

    B
    string

    C
    class

    D
    object

    Note: Not available
    1. Report
  8. Question: Which of the following type specifier is used to present as an unsigned decimal number?

    A
    %u

    B
    %d

    C
    %f

    D
    %s

    Note: Not available
    1. Report
  9. Question: Which is the correct output for the following code? <?php $value1="Hello"; $value2=& $value1; $value2="Jahid"; echo $value1; ?>

    A
    Hello

    B
    Jahid

    C
    Error

    D
    Hello Jahid

    Note: Not available
    1. Report
  10. Question: What is the output of the following code snippet?
    $email="jahid@yahoo.com";
    $a = strstr($email, '@', true);
    $b=strstr($email, '@');
    echo $a.'@'.$b;

    A
    jahid@yahoo.com

    B
    jahid@@yahoo.com

    C
    yahoo.com@jahid

    D
    yahoo.comjahid

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