COSC 106 A Exam 1 Practice
Tom Linton, February 6, 2004
The exam will  be open book, but if you need to look everything up, you won't have enough time to complete the exam. The questions on this practice test DO NOT represent a list of all the important stuff from chapters 1 to 3, it is unlikely that any of these questions will actually appear on the exam. However, if you can answer most of these questions with little or no reference to your text-book (in a timely fashion), you are likely well prepared for the exam.
  1. The URL http://www.pella.org/busdir/restaurants.html consists of three major parts. What are the three parts? Give a general name (like file path, the actual characters in the URL that make up that part, and a description of what each part is or represents.
  2. Describe (in moderate detail) what happens if you type the URL above into a browser's address field and press enter.
  3. What does a domain name server do?
  4. What does HTML stand for? How about XML?
  5. TCP/IP plays a critical role on the internet. Describe the responsibilities of each of these (TCP and IP) protocols.
  6. Using quantitative words like a little, a medium amount of, and-or a lot of, describe the color #22E36F.
  7. Name as many empty container tags as you can, and describe what each one is used for.
  8. What does the following line of HTML do, and where in the source document must it occur?
         <?xml version="1.0"?>
  9. If I wanted to make (without using CSS) a level 3 header that contained the text "Review Questions" (without the quotes) in italic (using the <i> ... </i> element), what's wrong with each of the following HTML fragments?
    1. <i><h3>Review Questions</h3></i>
    2. <i><h3>Review Questions</i></h3>
  10. What is a legal way to accomplish the task in the last question
    1. without CSS
    2. using a local style
    3. using an internal style
    4. using an internal style and defining a class (or sub-type) of the level 3 header named level3italic.
  11. How many levels of headers are there in HTML, and which is the largest, or most important?
  12. Which of the following are block-level elements?
    1. <p>
    2. <div>
    3. <big>
    4. <strong>
    5. <body>
    6. <head>
    7. <br>
    8. <span>
    9. <i>
    10. <h5>
  13. If an HTML source document contains the code <title>The Bat-Cave</title>, where should this appear in the source document, and what does it do?
  14. Single spacing, double spacing etc. can be specified with which property?
  15. What are the possible values of the text-decoration property?
  16. What does it mean to say that styles cascade, and what is the precedence of the three types (external, internal and local) of style declarations?
  17. How do you include comments in a HTML source document?


  18. Describe what each of the following HTML fragments accomplish or do.
    1. <style type="text/css">
         h1,h2,h3 {color:red; text-align:center; font-weight:normal}
      </style>
    2. <link rel="stylesheet" type="text/css" href="../sitestyle.css" />
    3. <p style="text-height:1.5; background-color:yellow">
         You can make text <big>big</big>
         or <small>small</small> or<br /> even 
         <span style="font-size:xx-large; color:red">HUGE</span>.
      </p>
  19. Write the style element that defines a class of the <h2> element named cool, which makes headers of level 2 green and in small caps, then write the code for the <body> of that HTML source document that uses this class to create a header of level 2 with the text On Sundays, Tiger wears red, where the word red appears in red text.