Professional Documents
Culture Documents
Sum2 Prog Sem2 Q2
Sum2 Prog Sem2 Q2
Department of Education
National Capital Region
SCHOOLS DIVISION OFFICE - MALABON CITY
Senior High School Department
Name: Score:
Section: Date:
I. Multiple Choice: Write the letter of the correct answer on the spaces provided.
________1. What are special variables that can hold more than one value?
A. Arrays C. Functions
B. Databases D. Tables
________2. Which type of array uses numbers as means of reference or access of its elements?
A. Associative C. Multidimensional
B. Indexed D. Sorted
________3. Which type of array uses named keys as reference of its elements?
A. Alternative C. Referenced
B. Associative D. Sorted
________7. Which function sorts associative arrays in descending order according to key?
A. Ksort() C. VSort()
B. Krsort() D. VrSort()
________8. Which function sorts associative arrays in ascending order according to value?
A. Asort() C. Krsort()
B. Ksort() D. VSort()
________9. What statement takes all the text/code/markup that exists in the specified file and copies it
into another file?
A. Asort C. Include
B. Copy D. Request
________10. Which statement specifies what value or variable will be passed back to the calling script?
A. Function C. Include
B. Fetch D. Return
________11. What is a collection of data or information organized for faster data search and
systematized information retrieval?
A. Array C. Function
B. Database D. Object
________14. What data is presented by rows and represents a set of data that belongs to an entity?
A. Array C. Record
B. Object D. Standard
________18. Which function is used to connect the database and the web application?
A. Mysqli_connect() C. Mysqli_num_rows
B. Mysqli_fetch_assoc() D. Mysqli_query
Goodluck.