
Perfect Student Midterm Exam October 18, 2007
Student ID: 9999 Exam: 6214 CS-081/Vickery Page 1 of 3
NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives
aid on any exam or quiz.
INSTRUCTIONS: Circle the best choice for multiple choice questions. Answer other questions as
indicated in the question.
1. Which of the following is an XHTML tag name?
A. background-color
B. class
C. font-family
D. 30%
E. span
2. Which of the following is an XHTML attribute name?
A. id
B. div
C. span
D. 30%
E. DOCTYPE
3. Which of the following is a complete XHTML attribute?
A. background-color: red;
B. id=”navList”
C. <p>
D. <br />
E. html, body { background-color: red; }
4. Where do XHTML attributes go?
A. Inside curly braces: { attributes go here }
B. Inside square brackets: [ attributes go here ]
C. Inside parentheses: ( attributes go here )
D. Inside any opening tag: <tagname attributes go here >
E. Inside the PHP code: <?php attributes go here ?>
5. What is the purpose of id and class attributes?
A. To help blind people understand the structure of a web page.
B. To help Google and other search engines categorize the page properly.
C. To identify elements that CSS rules can be applied to.
D. To tell the web server what character entities it will find in the document.
E. To tell the web browser what character entities it will find in the document.
6. On the back of this sheet write an entire, but minimal, XHTML web page. Do not put in any
content, and leave out all attributes. Just put in all the tags (both opening and closing tags) that are
always required, showing how they are structured. Use indentation to show the nesting structure.
Hint: There are just 4 elements, starting with <html>.
7. What is the name of the element that goes at the beginning of a web page that tells the browser
what kind of document follows?
A. head
B. navList
C. id=”content”
D. DOCTYPE
E. DOCSTYLE
8. Your client gives you some text to put on his web site. What should you do first?
A. Ask the client what font she wants to use for the text.
B. Decide how large the text should be.
C. Ask the client to indicate what parts should be in italics and what parts should be boldface.
D. Use paragraph and heading tags to structure the contents of the text.
E. Pick a background color for the page that will make the text stand out better.