1. Question: $states = array("Ohio", "New York”, “Arizona", "Texas"); array_pop($states); print_r($states); What will it output?

    A
    Array ( [0] => New York [1] => Arizona [2] => Texas )

    B
    array ( [0] => Arizona [1] => Texas [2] => Ohio [3])

    C
    Array ( [0] => Ohio [1] => New York [2] => Arizona)

    D
    $states=array("New York”, “Arizona", "Texas");

    Note: Not available
    1. Report
  2. Question: The in_array() function searches an array— and true or false.

    A
    for a specific value

    B
    for a specific key

    C
    for a specific value and key

    D
    All

    Note: Not available
    1. Report
  3. Question: $state["Delaware"] = "December 7, 1787"; $state["Pennsylvania"] = "December 12, 1787"; $state["Ohio"] = "March 1, 1803"; if (array_key_exists("Ohio", $state)) echo ($state["Ohio"]); What will be the output?

    A
    March 1, 1803

    B
    Ohio

    C
    TRUE

    D
    FALSE

    Note: Not available
    1. Report
  4. Question: The array_search() function searches an array __and returning its key if located.

    A
    for a specified value

    B
    for a specified key

    C
    for a specified key and value

    D
    All

    Note: Not available
    1. Report
  5. Question: $state["Delaware"] = "December 7, 1787"; $state["Pennsylvania"] = "December 12, 1787"; $state["New Jersey"] = "December 18, 1787"; $keys = array_keys($state); print_r($keys); What will be the output?

    A
    Array ( [0] => Delaware [1] => Pennsylvania [2] => New Jersey )

    B
    Array ( “Delaware”,” Pennsylvania” ,”New Jersey” )

    C
    array ( [0] => Delaware [1] => Pennsylvania [2] => New Jersey )

    D
    Array ( [0] => Delaware ,[1] => Pennsylvania ,[2] => New Jersey )

    Note: Not available
    1. Report
  6. 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
  7. 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
  8. 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
  9. Question: Which function returns the type of variable?

    A
    gettype()

    B
    settype()

    C
    ini_set()

    D
    none

    Note: Not available
    1. Report
  10. Question: What is the third party package used for session handling in PHP 3.X. ?

    A
    SQLite

    B
    PCRE

    C
    PHPLIB

    D
    Apache

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