DCSD 19.1F Web Application Development
DCSD 19.1F Web Application Development
GPS Navigators
Paragraph
Justify, Font Size
Stock clearance sale of Diagnostic & Test Tools will be held
15px, Calibri Font on 20th October 2020.
b) Create the following HTML Frameset document where column widths are equal.
(Assume that linked pages are already designed and available) (08 Marks)
Home X
About.html Register.html
Page 1 of 5
Question 2(20 Marks)
a) Write a java script program to input values for student id, marks1, marks2 and
marks3 into variables and to calculate and display average and grade. (10 Marks)
Average Grade
Average <=50 Fail
Average > 50 Pass
b) Consider the form given below. Write a JavaScript function to include the following
validations for the data input through the form. (You are required to write only the
JavaScript function. Do not create the form). (10 Marks)
i. The ‘Name’ and ‘Address’ fields should not be empty.
ii. ‘Telephone No” should be numeric.
iii. “Type of Pizza” should be selected.
iv. “Extra Cheese” options should be checked.
Display suitable messages to the user based on the result of each validation.
List Values:
▪ Select Topping
▪ Veggie
▪ Chicken
▪ Supreme
Page 2 of 5
Question 3(15 Marks)
a) Consider the form given below: (15 Marks)
List item:
▪ Vanilla
▪ Chocolate
▪ Fruit
Write a PHP page to display the Name, Delivery Address, Type of cake ordered, Quantity
ordered and Amount Payable. Consider the following information to calculate the Amount
Payable. (You do not need to
Type of Cake Price(Rs)
create the form)
Vanilla 180.00
Chocolate 200.00
Fruit 230.00
i. Write a well-formed XML document to represent the data in the table. (12 Marks)
ii. Using the above XML document, design an XSL document to display the following
webpage. (08 Marks)
Page 3 of 5
H1 heading Book Details X
Blue color, font ABC Bookshop Ltd
size=40pt, Underlined,
Center Align We have Adobe Photoshop Books in Designing Category Starting
from LKR 500.00.
Paragraph
For more details contact us: 0112 66 88 12
Font size : 15pt,
color=Brown Paragraph
Font size : 25pt,
color=Red , Bold
Page 4 of 5
Question 6 (10 Marks)
1. What is World Wide Web (www)?
a. ICMP c. HTTP
b. UDP d. SMTP
a. Communication c. Availability
b. Privacy d. Integrity
4. What do you mean by www.nibm.lk/galle/index.html ?
5. A hacker contacts you using a phone or email and attempts to acquire your password.
This is called as ________________
a. spoofing c. spamming
b. phishing d. bugging
6. The phrase __________ describes viruses, worms, Trojan horse attack applets, and
attack scripts.
a. malware c. phish
b. spam d. virus
a. Sender gets receivers public key. c. Sender gets receivers private key.
b. Private Key is distributed freely. d. All of the above.
9. Encryption is?
a. A spyware protection
b. A method of converting data in to a deferent format to transmit over the Internet.
c. A method of formatting data in the web.
d. A virus protecting application.
10. To create a copy of files in the event of system failure, you create a __________.
Page 5 of 5
Page 6 of 6