1. Question: What will its output?
    <?php
     $grades=array(42,"hellow",42);
     $total=array_sum($grades);
    print $total;
    ?>

    A
    84

    B
    85

    C
    86

    D
    87

    Note: Not available
    1. Report
  2. Question: Which of the following is/are correct print function?

    A
    vprintf()

    B
    sprintf()

    C
    print_r()

    D
    vsprintf()

    Note: Not available
    1. Report
  3. Question: Follow by useing array_key_exists function__ $state["Subhan"]= "Agust 3, 1757"; $state["Ashraf"]= "July 15, 1971"; $state["Shahin"]= "January 7, 1857"; if(array_key_exists("Ashraf", $state) ) printf("Asraf joined the Union on %s", $state["Asraf"]); What is the correct output of above that Syntex ?

    A
    Shahin joined the Union on January 7, 1857

    B
    Subhan joined the Union on Agust 3, 1757

    C
    Asraf joined the Union on july 15, 1971

    D
    july 15, 1971

    Note: Not available
    1. Report
  4. Question: By using array_key() function, Which is the correct output of following syntex? $state["Subhan"]= "Agust 3, 1757"; $state["Ashraf"]= "July 15, 1971"; $state["Shahin"]= "January 7, 1857";

    A
    array([] => Subhan[] => Ashraf[] => Shahin)

    B
    array([1] => subhan[2] => ashraf[3] => shahin)

    C
    array([0] => Subhan[1] => Ashraf[2] => Shahin)

    D
    array([] => Shahin[] => Ashraf[] => Subhan)

    Note: Not available
    1. Report
  5. Question: Which is correct the Function for searching Associative Array Values ?

    A
    array_key_search()

    B
    array_key_exists()

    C
    array_search()

    D
    array_value_search()

    Note: Not available
    1. Report
  6. Question: Which is correct the Function for searching Associative Array Keys ?

    A
    array_values()

    B
    array_key()

    C
    array_key_exists()

    D
    array_key_exist()

    Note: Not available
    1. Report
  7. Question: Which is correct following of the function to use Remove a Value from the End of an Array?

    A
    array_pop($state)

    B
    array_shift($state)

    C
    array_push($state)

    D
    array_unsift($state)

    Note: Not available
    1. Report
  8. Question: Which is correct following of the function to use Add a Value from the Front of an Array?

    A
    array_pop($state)

    B
    array_push($state)

    C
    array_unshift($state)

    D
    array_shift($state)

    Note: Not available
    1. Report
  9. Question: A traditional queue is a data structure in which the elements are removed in the same order
    in which they were entered Known as_______.

    A
    Last- in- last- Out

    B
    Last- in- First- Out

    C
    first- in- First- Out

    D
    FIFO

    Note: Not available
    1. Report
  10. Question: A stake is a data structure is which the elements are removed in the order opposite to that in which they were entered,known as____.

    A
    FIFO

    B
    LIFO

    C
    Last-in-First-Out

    D
    First-in-Frist-out

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