1. Question: By what name will  you call these is_float,is_array,is_integer etc ?

    A
    Type identifier functions

    B
    Data type

    C
    Compound data type

    D
    Functions type

    Note: Not available
    1. Report
  2. Question: In which positions PHP’s indexed array begin?

    A
    0

    B
    1

    C
    From 0 or 1

    D
    None

    Note: Not available
    1. Report
  3. Question: Which is identified as a special variable, which can store multiple values in one single variable?

    A
    Array

    B
    Variable

    C
    Functions

    D
    Operator

    Note: Not available
    1. Report
  4. Question: Unlike other langueges PHP doesn't require that assign a size to an array at creation time.

    A
    true

    B
    false

    Note: Not available
    1. Report
  5. Question: For Adding a Value to the Front of an Array What We Use?

    A
    The array_unshift() function

    B
    The array_shift() function

    C
    The array_push() function

    D
    The array_pop() function

    Note: Not available
    1. Report
  6. Question: What is the output of the following array function?

    $a = range(0, 20, 2);

    A
    $a = array(0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20);

    B
    $a = array( 2, 4, 6, 8, 10, 12, 14, 16, 18, 20);

    C
    $a = array(2, 4, 6, 8, 10, 12, 14, 16, 18);

    D
    None

    Note: Not available
    1. Report
  7. Question: 
    $customers = array();
    $customers[] = array("Jason Gilmore", "jason@example.com", "614-999-9999");
    $customers[] = array("Jesse James", "jesse@example.net", "818-999-9999");
    $customers[] = array("Donald Duck", "donald@example.org", "212-999-9999");
    
    foreach ($customers AS $customer) {
     vprintf("<p>Name: %s<br />E-mail: %s<br />Phone: %s</p>", $customer); 
    }

    A
    Name: Jason Gilmore<br />E-mail: ">jason@example.com]jason@example.com<br />Phone: 614-999-9999

    B
    Name: Jesse James<br />E-mail: ">jesse@example.net]jesse@example.net<br />Phone: 818-999-9999

    C
    Name: Donald Duck<br />E-mail: ">donald@example.org]donald@example.org<br />Phone: 212-999-9999

    D
    All of these will be printed at a time

    Note: Not available
    1. Report
  8. Question: Which of the following is not correct print function?

    A
    vprintf()

    B
    sprint()

    C
    print_r()

    D
    vsprintf()

    Note: Not available
    1. Report
  9. Question: $states = array("Ohio", "New York"); array_unshift($states, "Arizona", "Texas"); print_r($states)

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

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

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

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

    Note: Not available
    1. Report
  10. Question: $states = array("Ohio", "New York"); array_push($states, "Arizona", "Texas"); print_r($states)

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

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

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

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

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