Bachelor of Science in Computing Exam - Internet Studies & Web Design, Exams of Computer Science

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

2012/2013

Uploaded on 03/24/2013

anandi
anandi 🇮🇳

4.5

(8)

61 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cork Institute of Technology
Bachelor of Science in Computing - Stage 2 (Fulltime and ACCS)
(KCOMP_7_Y2)(KCOME_7_Y2)
Summer 2008
Internet Studies & Web Design
(Time: 3 Hours)
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 nth 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?
pf3
pf4

Partial preview of the text

Download Bachelor of Science in Computing Exam - Internet Studies & Web Design and more Exams Computer Science in PDF only on Docsity!

Cork Institute of Technology

Bachelor of Science in Computing - Stage 2 (Fulltime and ACCS)

(KCOMP_7_Y2)(KCOME_7_Y2)

Summer 2008

Internet Studies & Web Design

(Time: 3 Hours)

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)

Booterstown Bray Pearse Docklands

Howth Greystones

Clontarf Road

Lansdowne

Road

Howth

Junction

Connolly

Dún Laoghaire

Salthill &

Monkstown

Sydney

Parade

Tara Street

Write HTML for the table shown

Part B (10 marks)

Write HTML for the nested list shown below

  1. France
    • Paris
      • Monmartre
      • St Denis
    • Nantes
    • Bordeaux
  2. Portugal
    • Porto
    • Lisboa
      • Campo Grande
      • Alfragide
  3. Spain

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

navbar.jp

mtv.co utv.co

bbc.co rte.co