IT130 -- Midterm A -- Jan. 25, 2007 Answer each question completely on this sheet. Additional paper is available if you need more space. 1. (5 pts.) What does HTML mean? Ans: Hypertext Markup Language. 2. (5 pts.) What was the significance of Kleinrock in the history of the internet? Ans: Kleinrock invented packet switching. 3. (5 pts.) What was the significance of Cerf in the history of the internet? Ans: Cerf and Kahn invented TCP, which was the basis for the modern internet. 4. (5 pts.) Why is the transistor important in modern computers? Ans: Transistor serves as a fast valve to control the flow of electricity. 5. (5 pts.) What does the HTML special symbol   mean? Where is it used? Ans:   means nonbreaking space. It is a space that will not be eliminated by the browser. A word containing a nonbreaking space will also not be split across two lines. 6. (5 pts.) In this style, identify the property, the value, and the element: td { text-decoration: underline; } Ans: td is the element, text-decoration is the property, underline is the value. 7. (5 pts.) Explain the difference between and

. Ans: and delimit the head section of the page, which contain items like the title or style that are not displayed on the page.

marks a size 1 heading. 8. (5 pts.) You class your HTML page using PSPad and upload it, but the page is completely blank. Out of all the possibilities, which reason do you think is the most likely that the page is blank. Why? Ans: You might (a) not have saved the page in PSPad after editing it. (b) not have refreshed the page after uploading it. (c) have forgotten the tag. (d) have forgotten the tag. (e) have omitted a closing or a closing >. (g) have the double version problem: you are editing one version and uploading a different version. 9. (5 pts.) In which situations are inline styles and document-level styles used. Ans: An inline style applies only to one specific HTML tag. A document-level style applies to all of the elements on the page. 10. (5 pts.) What are the proper permissions for an HTML file to be viewed on the Internet? What are the proper permissions for a folder on the server? Ans: For an HTML file: Read permission for Owner, Group and Other. Write permission for Owner only. Execute permission for no one. For a folder: Read permission for Owner, Group and Other, Write permission for Owner only, Execute permission for Owner, Group and Other. 12. (5 pts.) For what is the tag used? Ans: To modify a short text in the middle of a paragraph. This navigation architecture is for questions 13 through 16. 0 public_html 1 home.htm 1 europe.jpg 1 europe 2 finland.htm 2 norway.htm 2 sweden.htm 2 flags.gif 1 america 2 canada.htm 2 mexico.htm 2 coins.jpg 13. (5 pts.) Write a hyperlink that jumps to the page home.jpg from the current page sweden.htm. Ans: To Sweden 14. (5 pts.) Write a hyperlink that jumps to the page canada.htm from the current page finland.htm. Ans: To Finland 15. (5 pts.) Write an image tag that displays the image coins.gif on the current page mexico.htm. Ans: 16. (5 pts.) Write an image tag that displays the image europe.jpg on the current page canada.htm. Ans: 17. (5 pts.) Write an html table that displays letters in this configuration: Z Y X Ans:
    Z
  Y  
X    
18. (15 pts.) Write a document-level style that does the following: (a) Sets the background color of the body to silver. (b) Sets the text color of the body to SlateBlue. (c) Sets the font of the body to Papyrus. (d) Sets the font to twice as large as normal. (e) Sets size of all the size 1 headings to 150% larger than the body font. (f) Sets the font of all size 1 headings to Harrington. (g) Centers all size 1 headings. Ans: 19. (15 pts.) Given a browser display shown on the projector (macbeth.htm), write HTML code with either inline or document-level styles to display it. The heading and paragraph use Verdana font. The text color of the heading is black. The text color of the paragraph is Olive. The font of “full of sound and fury” is Forte and its color is maroon. Here is the full text. See the Word document to see the formatted text. Quote from Macbeth Life's but a walking shadow, a poor player that struts and frets his hour upon the stage, and then is heard no more; it is a tale told by an idiot, full of sound and fury, signifying nothing. Ans:

Quote from Macbeth

Life's but a walking shadow, a poor player
that struts and frets his hour upon the stage,
and then is heard no more;
it is a tale told by an idiot,
full of sound and fury, signifying nothing.