Docsity

Midterm Exam: XHTML and CSS, Exams of Web Programming and Technologies

Toggle sidebar
bg1
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.
pf3

Partial preview of the text

Download Midterm Exam: XHTML and CSS and more Exams Web Programming and Technologies in PDF only on Docsity!

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.

    D.
    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: E. Inside the PHP code: _
  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 .
  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.

**Perfect Student Midterm Exam 10/18/ Exam ID: 6214 CS-081/Vickery Page 2 of 3**
  1. Internet Explorer doesn’t support alternate stylesheets. What should you do? A. Use alternate stylesheets during development to show the client different options, but do not rely on alternate stylesheets for public users of the site. B. Never use alternate stylesheets for anything. C. Put a message on all your web pages telling users that the web pages work only with Firefox. D. Use alternate stylesheets to hide information from visitors who use Internet Explorer. E. Remove the title attribute from the links to alternate stylesheets for Internet Explorer users so they won’t know they are there.
  2. What is the name of the tag that is used to link a stylesheet to a web page? ( The Exam Topics web page had misleading information on this, so the list below leaves out the “obvious” but wrong _choice,