


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
Exam questions for a higher certificate in science in computing course at cork institute of technology. The questions cover various topics including huffman coding, html development, and anaglyphs. Students are required to answer four questions, each carrying equal marks. Questions include constructing html files for a cocktail website, using huffman's algorithm to encode characters, explaining the illusion of 3d generated by anaglyphs, and writing lingo code for a macromedia director movie.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Instructions Answer FOUR questions All questions carry equal marks.
Examiners: Mr. J. Greenslade Mr. J. Walsh Mr. C.E. Manning
Q1. (25 marks)
For Him Eagle Eye Ecto Cooler El Diablo El Niño
3 cl vodka 3 cl liqueur 1/2 part orange juice 1/2 part cranberry juice ice
For Her Easter Bunny Ejhazz El Floridita Electric Fuzzy
The His & Her’s Cocktail website uses frames. Cocktails for him are listed in a frame on the left and cocktails for her are listed on the right. Clicking on any cocktail name causes the recipe for the cocktail to be loaded in the centre frame.
Write all of the html files required to build this site – except the recipes for individual cocktails. You need not concern yourself with the colours of the page backgrounds or text.
Q2. (25 marks) Part A The table below shows the relative frequencies with which 8 characters occur in a particular language. Use Huffman’s algorithm to construct an optimal variable length code for the language. (13 marks)
A 7 E 1 O 3 C 2 K 15 N 2 M 3 R 4
Part B How would the string “ CORK ” be expressed using this variable length code? (2 marks)
Part C For “ CORK ” what percentage saving (if any) do the variable length codes offer over the fixed length? (5 marks)
Part D Koruku Tech Corporation uses Huffman in its television remote controls. List two keys would you expect to have short codes. (3 marks)
Part E
A Macromedia Director movie has a black button on stage in the form of a coffee pot in channel 5.
Over the button is a hot spot in channel 10. When the mouse rolls over the hotspot, the coffee pot
changes from black to grey. When the mouse rolls off, it goes back to black. The black coffee pot is
in cast member number 1 and the grey coffee pot is cast member number 2. When the hotspot is
clicked the movie jumps to frame “latte.”
A frame script in frame 10 controls the rollover.
Part A (20 marks)
Write the Lingo code for the frame script.
Part B (5 marks)
Write the Lingo code that makes the movie jump to frame “latte”. Your answer should outline the
location of the script.