IT130 Final Exam with Answers November 11, 2008 1. (10 pts) Explain, so someone that is not an expert at computers, the interrelationship between HTML, CSS and JavaScript. 2. (5 pts) How do you write a source code comment for HTML, CSS, and JavaScript? 3. (5 pts) Give the rgb color codes for these colors: Green Yellow Maroon Light Gray (You choose the lightness of gray.) 4. (15 pts) Write a CSS document-level style to do the following: a. Set the font for the body to Papyrus. b. Set the background color of the body to AliceBlue. c. Set the text color of the body to Navy. d. Set the font size of all size 2 headings to 1.5 times normal size. e. Set the size of all images to 100 by 100 pixels. f. Set the font of all input controls to Verdana. 5. (2 pts) Write a JavaScript statement that declares the variables a, b and c. 6. (5 pts) Write a JavaScript statement that obtains a value from the textbox txtInput, converts it to a number and assigns it to the variable a. Assume that the form name is frmMain. 7. (5 pts) Write a JavaScript statement takes the value in the variable b and assigns it to the textbox txtOutput. Assume that the form name is frmMain. 8. (5 pts) Write a line of JavaScript code that displays the message File not found. in an alert box. 9. (5 pts) Write a line of JavaScript that displays usa.gif in the image control with name imgFlag. 10. (5 pts) Write HTML code that defines a dropdown menu that displays the items MasterCard and Visa. 11. (5 pts) Write a link tag for an external style that accesses style.css in the parent folder. 12. (5 pts) Write a JavaScript expression that randomly displays one of the integers 1, 2, 3, 4, 5 with equal probability. 13. Find as many mistakes as you can in the following code. Make corrections directly on the code; do not recopy. The number of British Pounds in a Euro is 0.81861.