You are on page 1of 1

August 18, 2017

CS 213 Web Programming

Midterm Exam

I. Create code fragments/ snippets based from the instructions below.

1 3. Create an array variable $name with values sansa, carlo ,ryan, mark, helen.

4 5. Arrange the values of the array in descending order.

6 10. Display the values of the array, using the format : Hi name !.

Sample output:

Hi sansa!

Hi carlo!

II. Given the form below, create the code for the action_page.php that will display the name
the scores, then the highest score.
Sample output:
Hi Julius Manipol!
Score 1 is 88.
Score 2 is 91.
Score 3 is 86.
Your score 91 is the highest.

You might also like