


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions and questions for an exam in the internet studies & web design module of the bachelor of science in computing program at cork institute of technology. The exam covers topics such as javascript programming, data validation, html table and list creation, and mpeg video compression.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Instructions Answer Question 1 AND THREE OTHER questions All questions carry equal marks.
Examiners: Mr. C.E. Manning Ms. M. Meagher Ms. A. Brown
Q1. (25 marks)
Belguimshop.be stores each vistor’s first name and postcode in a cookie. Write a JavaScript program that greets the user by name in their native language. You may assume that the cookies were stored on a previouos visit and have not yet expired. The name is stored in a cookie called nom and the 4-digit post code is stored in a cookie called postcode. Residents of postcodes in the range from 0000 to 5999 are French speaking and cusomers with post codes ranging from 6000 to 9999 are Flemish speaking. When the page is loaded it should greet the user with either Bienvenue or Welkom. Eg. Bienvenue Jaques Eg. Welkom Jan
Q2. (25 marks) Part A (20 marks) In Spain the DNI comprises 8 digits and a checksum letter. If the result of a mod 23 of the numeric part of the number is n, then the checksum is the n th^ character of the string “TRWAGMYFPDXBNJZSQVHLCKE”. 0 -> T. 1 -> R. And so on.
Write a JavaScript function that takes an otherwise correctly formatted string and evaluates to true if the checksum is valid and false otherwise.
Part B (5 marks) The designers of this scheme did not use the first 23 letters of the alphabet. Some letters were skipped. Why?
Part A (15 marks)
Write HTML for the table shown
Part B (10 marks)
Write HTML for the nested list shown below
A webpage tv.html uses the image navbar.jpg as a navigation bar to link to four sites: mtv.com, utv.com, bbc.com, and rte.com. An image map on the page uses hotspots to code the links. Navbar.jpg is 400 pixels wide by 300 pixels high. Write the HTML code for tv.html