1. Question: Which of the following is not correct print function?

    A
    vprintf()

    B
    sprint()

    C
    print_r()

    D
    vsprintf()

    Note: Not available
    1. Report
  2. Question: Which of the following functions are true?

    A
    The reset() function serves to set an array pointer back to the beginning of the array.

    B
    The end() function moves the pointer to the last position of an array.

    C
    The next() function returns the array value residing at the position immediately following that of the current array pointer.

    D
    The prev() function returns the array value residing at the location preceding the the current array pointer.

    Note: Not available
    1. Report
  3. 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
  4. Question: How do we declare constants variable?

    A
    constants $varname

    B
    varname constants

    C
    define()

    D
    $$varname

    Note: Not available
    1. Report
  5. Question: Add an integer to a string will produce____.

    A
    Integer literal

    B
    String literal

    C
    Array

    D
    None

    E
    Object

    Note: Not available
    1. Report
  6. Question: Which directive determines the reporting sensitivity level?

    A
    display_errors

    B
    error_reporting

    C
    display_startup_errors

    D
    log_errors

    Note: Not available
    1. Report
  7. 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
  8. Question: $states = array("Ohio", "New York”, “Arizona", "Texas");
    array_shift($states);
    print_r($states)

    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
  9. Question: What are the difference between print and echo?

    A
    echo faster than print

    B
    echo return value

    C
    print return value

    D
    echo return true

    Note: Not available
    1. Report
  10. 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
Copyright © 2024. Powered by Intellect Software Ltd