Arrays Multiple Questions and Answers.




1.PHP’s numerically indexed array begin with position?
A. -1
B. 0
C. 1
D. 2

2.Which of the following PHP function will return true if a variable is an array or false if it is not an array?
A. in_array()
B. do_array()
C. is_array()
D. this_array()

3.Which in-built function will add a value to the end of an array?
A. array_push()
B. inend_array()
C. into_array()
D. array_unshift()

4.What will be the output of the following PHP code?
A. appleapple
B. orangeorange
C. appleorange
D. orangebanana

5.Which of the following function is used to get the value of the previous element in an array?
A. previous()
B. prev()
C. before()
D. last()

»



Quick Links

GAT Subject



   Computer Science    English    Agriculture    Botany    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC    PPSC    NTS