Home > PHP & Programming > Quizzes > Practice Test: Arrays In PHP
Practice Test: Arrays In PHP
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 67% Most missed: “The … function returns the array value residing at the position immediately foll…”
Practice Test: Arrays In PHP
Time left 00:00
19 Questions

1. … is used when you need to review or manipulate an array multiple times within a script.
2. The … function removes and returns the last element from an array.
3. … function allows us to easily display array contents using the same formatting syntax used by the printf().
i. vprint()
ii.vprintf()
iii. sprintf()
4. The … function searches on the array for a specified value, returning its key if located and FALSE otherwise.
5. The … function determines whether the variable is an array, returning TRUE if it is and FALSE otherwise.
6. The … function adds elements to the front of the array.
7. The … function removes and returns the first item found in an array.
8. The … function removes and returns the first item found in an array.
9. The … function returns the key located at the current pointer position of the provided array.
10. The … function returns the array value residing at the position immediately following that of the current array pointer.
11. The function moves the pointer to the last position of an array.
12. The … function returns the array value residing at the location preceding the current pointer location, or FALE if the pointer resides at the first position in the array.
13. The … function returns an array consisting of all keys located in an array.
14. The … function returns an array consisting of all keys located in an array.
15. The … function determines whether the variable is an array, returning TRUE if it is and FALSE otherwise.
16. The … function searches an array for a specific value, returning TRUE if the value is found and FALSE otherwise.
17. The function moves the pointer to the last position of an array.
18. The … function adds elements to the front of the array.
19. … function allows us to easily display array contents using the same formatting syntax used by the printf().
i. vprint()
ii.vprintf()
iii. sprintf()