Professional Documents
Culture Documents
19.1 Web
19.1 Web
2) Time allocated for the examination is three and half (3 1/2) hours. Total number of
3) Use the provided answer booklet to write your answers and upload to the LMS as a
PDF file within the stipulated time. This PDF file should be saved with your index no.
4) You are required to submit the answer file within the allowed timeframe, and no
5) All the submissions will be checked for plagiarism. Plagiarism, collusion, and copying
are serious offences in the university and serious penalties that would be imposed.
6) You are not allowed to publish or disseminate any part of the paper online or offline.
Question 01 (25 Marks)
a) Create the following web page using HTML:
H1 heading
H1 heading:
Color: blue
H1 heading:
Come join us plant 1000 trees on World Environmental Day and make a difference.
Font type: Arial
Write a JavaScript to include the following validations for the data input through the above form.
▪ The ‘Customer Name’ field should not be empty.
▪ The ‘E-mail address’ entered should be a valid e-mail address.
▪ The ‘Invoice Number’ entered should be a numeric value.
▪ A Payment Method should be selected from the list.
▪ The “I Agree to the terms and conditions” checkbox should be checked.
Display suitable messages to the user based on the result of each validation.
Question 03 (25marks)
(20marks)
B) Write a PHP page to display actual name, file type and size of an uploaded file.
C) Write a PHP program to display the text content of the uploaded file
B) Modify this example so that the username and password will be displayed on a separate
page.
C) Create an HTML form to enter a name and marks of a student. Create a PHP page to access
this data and if the student has got marks 50 or above, display the output as “You have
Passed and else display the output as “You have Failed”.