Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Republic of the Philippines

Department of Education
National Capital Region
SCHOOLS DIVISION OFFICE - MALABON CITY
Senior High School Department

2ND SEMESTER – 2nd QUARTER


PROGRAMMING (.NET)
SUMMATIVE TEST # 2

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

________4. How can you access the elements of an indexed array?


A. For loop C. If-Else statement
B. Foreach loop D. If-ElseIf-Else statement

________5. How can you access the elements of an associative array?


A. Fetch_Assoc statement C. Foreach loop
B. For loop D. Num_Rows statement

________6. Which function sorts indexed arrays in ascending order?


A. Asort() C. Sort()
B. Ksort() D. QSort()

________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

________12. Which is the most basic set of information in databases?


C. Array C. Record
D. Field D. Table
________13. What is the data presented in columns in a table?
A. Field C. Sort
B. Record D. Value

________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

________15. What determines the size of data in tables?


A. Default C. Null
B. Length D. Type

________16. What does A.I. standard for?


A. Admin Identification C. Auto Increment
B. Auto Index D. Auxillary-index

________17. What will be the output of this code?


A. Auto-increment C. Auxillary-increment
B. Auto-index D. Auxillary-index

________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

________19. Which function is used to run SQL commands on web application?


A. Mysqli_connect() C. Mysqli_num_rows
B. Mysqli_fetch_assoc() D. Mysqli_query

________20. Which function converts SQL result into associative arrays?


A. Mysqli_connect() C. Mysqli_num_rows
B. Mysqli_fetch_assoc() D. Mysqli_query

Goodluck.

You might also like