
Perfect Student Final Exam May 22, 2008
Student ID: 9999 Exam: 4384 CS-081/Vickery Page 1 of 5
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 letter of the one best answer for each question. Unless otherwise
indicated, all questions count equally.
1. What is an <li> tag used for?
A. To link a style sheet to a web page.
B. To provide a link to another page that the user can click on.
C. To link a JavaScript program to a web page.
D. To start an item in either an ordered or unordered list.
E. This is a trick question: there is no such thing as an <li> tag.
2. What is the difference between a block and an inline element?
A. Block elements contain blocks of text, but inline elements contain background images.
B. Block elements can have borders, but inline elements cannot.
C. Block elements always start on a new line, but inline elements only start on a new line if they
don’t fit on the current line.
D. Block elements can have background colors, but inline elements cannot.
E. Block elements are rectangles, but inline elements are round.
3. What are the four components of a CSS element’s box, from the inside going outward?
A. Content, padding, border, margin.
B. Block, inline, float, clear.
C. Content, margin, border, padding.
D. Content, border, padding, margin.
E. Content, extent, intent, detent.
4. If you specify a background for an element, what part of the element’s box does it cover?
A. Just the content.
B. Just the border.
C. Just the margin.
D. Just the padding.
E. Both the content and the padding.
5. Which of the following properties would be used if you had a background image that you wanted
to have stay in the same spot on the screen even when the user scrolls to different parts of the
page?
A. background-attachment:do-not-scroll;
B. background-attachment:do-not-repeat;
C. background-attachment:relative;
D. background-attachment:fixed;
E. background-attachment:absolute;
6. How does the following property setting determine where a background image appears?
background-position:25%;
A. The point 25% from the left edge of the image will line up with the point 25% from the left edge
of the browser window.
B. The point 25% from the left edge of the image will line up with the left edge of the browser
window.
C. The left edge of the image will line up with the point 25% from the left edge of the browser
window.
D. The left edge of the image will line up with the left edge of the browser window.
E. The point 25% from the left edge of the image will line up with the point 25% down from the top
of the browser window.