1. Question: $population = array("Ohio" => "11,421,267", "Iowa" => "2,936,760"); print_r(array_values($population));

    A
    Array

    B
    11421267, 2936760

    C
    Array ( [0] => 11,421,267 [1] => 2,936,760 )

    D
    Array (11421267,2936760)

    Note: Not available
    1. Report
  2. Question: $population = array("Ohio" => "11421267", "Iowa" => "2936760"); $a=array_values($population); echo $a;

    A
    Array

    B
    11421267, 2936760

    C
    Array ( [0] => 11,421,267 [1] => 2,936,760 )

    D
    Array (11421267,2936760)

    Note: Not available
    1. Report
  3. Question: How to convert types?

    A
    using getDataType function

    B
    using gettype function

    C
    datatype() function

    D
    settype() function

    Note: Not available
    1. Report
  4. Question: Which of the example is reference assignment?

    A
    $value=”Hello”  $value2=$value

    B
    $$value=”Hello”  $value2=$value

    C
    $value=”Hello”  $value2=&$value

    Note: Not available
    1. Report
  5. Question: Which is/are the correct php syntax?

    A
    <%….%>

    B
    <?.....?>

    C
    <script language=”php”>...</script>

    D
    All

    Note: Not available
    1. Report
  6. Question: What’s is/are the correct commenting syntax in php?

    A
    //

    B
    #

    C
    /*…*/

    D
    All

    Note: Not available
    1. Report
  7. Question: Which of the following statement will be printed?

    A
    <?php print("I love the summer time."); ?>

    B
    <?php $season="summertime";     print "I love the $sesson."; ?>

    C
    <?php print "I love the summer time."; ?>

    D
    All of these

    Note: Not available
    1. Report
  8. Question: PHP comments for a single line have the following syntax:

    A
    /* comments /*

    B
    #

    C
    //

    D
    ::

    Note: Not available
    1. Report
  9. Question: 

    Which of the following statement is/are faster?

    A
    echo()

    B
    print()             

    C
    printf()

    D
    sprintf()

    Note: Not available
    1. Report
  10. Question: Why echo() is the faster?

    A
    It returns nothing

    B
    it returns 1

    C
    It returns 0

    D
    None

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