IT130 -- Final Exam November 5, 2007 Part A. True/False Questions. 2 points for reason, 1 pt for answer. For full credit a reason is required for each question. Do all questions. 1. The RGB color code for maroon is rgb(128,0,0). 2. The operators = and == mean the same thing. 3. The span tag really is equivalent to really. 4. The following link tag allows many pages to share a style page: 5. The HTML source code >br /< is displayed in a browser as
. 6. This HTML line is a comment, which is ignored by the browser: This is a comment. 7. These JavaScript variable declarations are legal: var s = dog, number-of-customers = 15, tips&gratuities = 134.54; 8. The output of this JavaScript line is 339: document.writeln(1 + 2 + 3 + 4 + 5); 9. JavaScript code must always be placed between tags. 10. The JavaScript lines document.frmMain.txtOutput.value = 10 + Math.floor(14 * Math.random( )); assigns randomly one of the values 10, 11, 12, 13, 14 randomly to the textbox txtOutput. 11. This JavaScript line changes the background color of the page to yellow: document.background-color = yellow; 12. The JavaScript code in the onload attribute of the body tag executes whenever the page is first loaded or refreshed. 13. The most popular protocol for transmitting webpages over the internet is html. 14. Use an input tag with class=submit to submit the data on the current form back to the server. Part B. Write HTML/CSS/JavaScript 10 points each. Do all 3 problems. 1. Sketch the user interface defined by the HTML code at the bottom of this page. 2. Write a document-level style for the user interface at the bottom of this page that does the following: a. The body should use Papyrus font with text color FireBrick and background color Khaki. b. The h3 header should have text 130% of normal size. c. Each input tag should be 1.5 inches in width and 0.5 inch in height. 3. Write JavaScript code that will execute when the button is clicked. It should get the amount from the textbox txtAmount, compute the tax as 8% of the amount and outputs the tax in the textbox txtAmount. The original HTML code:

Compute Tax

Amount Amount
 
Part C. Find the mistakes. 20 pts.