
Student, Perfect Final Exam December 21, 2006
Exam: 1750 - Student: 9999 CS-081/Vickery Page 1 of 4
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: Except for the last question, circle the letter of the single best answer for each
question.
1. What determines the number of rows in a table?
A. The number of <thead> tags.
B. The number of <tbody> tags.
C. The number of <th> tags in the first column.
D. The number of <tr> tags between <table> and </table>.
E. The maximum number of <td> tags inside any <tr> element in the table.
2. What determines the number of columns in a table?
A. The number of <thead> tags.
B. The number of <tbody> tags.
C. The number of <th> tags in the first column.
D. The number of <tr> tags between <table> and </table>.
E. The maximum number of <td> tags inside any <tr> element in the table.
3. How can you construct a table that has fewer columns in one row than in the others?
A. This can only be done using server-side scripting, which we did not cover.
B. This can only be done using client-side scripting, which we did not cover.
C. This can only be done using JavaScript: you have to remove the extra columns after the table has
been rendered.
D. Use the colspan attribute in one or more <td> elements.
E. You have to nest one table inside another table to do this.
4. What is the difference between <th> and <td> tags?
A. Both identify table cells, but <th> has the added feature of indicating that the cell is a heading for
a row or column.
B. <th> is used for text highlighting, but <td> is used for text deletion.
C. There is no such thing as <th>.
D. There is no such thing as <td>.
E. <th> is used to set the table height, but <td> is used to set the table density.
5. Structured content, presentation rules, and behavioral dynamics are the three core features of web
pages. What is an example of structured content?
A. Using images for backgrounds.
B. Marking up text using heading and paragraph tags.
C. Using JavaScript to color the backgrounds of alternating rows of a table.
D. Using PHP to enter form data into a database.
E. Using CSS to color the backgrounds of alternating rows of a table.
6. What is an example of a presentation rule?
A. Using CSS to remove the underlines from links.
B. Using JavaScript to validate form data.
C. Using a table to organize the ingredients and their amounts in a recipe.
D. Using a list to hold the navigation links for a page.
E. Using a link to get from one page to another.
7. What is an example of behavioral dynamics?
A. Using an animated GIF to call the user’s attention to something important on the page.
B. Using JavaScript to validate form data after the submit button is clicked but before it is actually
sent to the server.
C. Marking up text using heading and paragraph tags.
D. Using a link to get from one page to another.
E. None of the above.