Twa Practical Test Tasks 201903
Twa Practical Test Tasks 201903
1. (6 marks) The Question1.txt, which contains the text to be used for this
question, can be found in the root folder for this test. Add the necessary HTML
code to mark up the content as follows using appropriate HTML5 tags:
Save the resulting file as Question1.html, and make sure it passes the W3C
validator. Also found in the root folder is the HTML5 template file that may be used
in this question. 1 mark will be deducted if the code does not validate to HTML5.
1
2. (8 marks) Copy Question1.html into a new file called Question2.html (make
sure to keep a copy of Question1.html unchanged).
Note that you will have to make some changes to the HTML in Question2.html in
order for your CSS to work. Save Question2.html and make sure it passes the
W3C & CSS validator. Failure to validate the CSS will result in 2 marks deduction.
2
3. (8 marks) Hamilton Island Bistro is sending out a form for customer signup. The
signup form used for this is implemented in Question3.html, which is provided
in the root folder for this test.
3
The following database description applies to questions 4 and 5. Follow the
steps from Appendix.pdf in the root folder for this test.
Password
Type of Name of Location of Username to to
database database database connect connect
MySQL twa_quiz localhost root ""
• SQL statements for db query and PHP statements for form data
retrieval, db connection and query execution in Qestion4.php (2
marks)
• PHP and html statements to display student information in a table
Question4.php (2 marks)
4
5. (4 marks) Question5.php contains a postback form with two input
text fields: FIRSTNAME and LASTNAME of a student and a submit button.
It can be found in the root folder of the test. The form allows the users
to enter student's first name and last name so the corresponding
student's STUDENTID, GENDER and GPA will be displayed in
Qestion5.php
Task: Modify Question5.php so it can process the submission of
postback and display corresponding STUDENTID, GENDER and GPA.
END OF TEST