Docsity

XHTML and CSS Exam Preparation: Questions and Answers, Exams of Web Programming and Technologies

Toggle sidebar
bg1
1. In the URL, http://babbage.cs.qc.cuny.edu/courses/cs081/2009_09, what is the
“babbage.cs.qc.cuny.edu” part?
A. The name of a computer
B. The name of a directory
C. The name of a file
D. The name of a web browser
E. The name of a person
2. From what you know about the web site for this course, what is the name of the file that is delivered
to the browser for the URL in Question 1?
3. If a directory contains two subdirectories named “css” and “images” and “images” contains a file
named “flower.jpg,” what would be the pathname that a file in the css directory would use to reference
the flower.jpg file?
A. flower.jpg
B. ./flower.jpg
C. images/flower.jpg
D. ../images/flower.jpg
E. .../images/stylesheeet.css
4. Which of the following is not in any part of an HTTP request message?
A. The Internet address of the computer to which the request is being sent
B. The Internet address of the computer from which the request is being sent
C. The pathname to the file being requested
D. The port number of the web server
E. The XHTML contents of the web page being requested
5. Write the complete XHTML code for a paragraph element with an id of exam and a class of
important. Make the content of the paragraph any grammatically correct English sentence.
First Name Last Name! ! October 22, 2009
Student ID: Student ID!Exam ID: Exam ID
Instructions:
For multiple choice questions, circle the letter of the one best choice unless the
question explicitly states that it might have multiple correct answers.
There is no penalty for guessing, so be sure to answer all questions.
Unless otherwise indicated, all questions count equally.
CS-081 Midterm Exam
pf3
pf4

Partial preview of the text

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

  1. In the URL, http://babbage.cs.qc.cuny.edu/courses/cs081/2009_09, what is the “babbage.cs.qc.cuny.edu” part? A. The name of a computer B. The name of a directory C. The name of a file D. The name of a web browser E. The name of a person
  2. From what you know about the web site for this course, what is the name of the file that is delivered to the browser for the URL in Question 1?
  3. If a directory contains two subdirectories named “css” and “images” and “images” contains a file named “flower.jpg,” what would be the pathname that a file in the css directory would use to reference the flower.jpg file? A. flower.jpg B. ./flower.jpg C. images/flower.jpg D. ../images/flower.jpg E. .../images/stylesheeet.css
  4. Which of the following is not in any part of an HTTP request message? A. The Internet address of the computer to which the request is being sent B. The Internet address of the computer from which the request is being sent C. The pathname to the file being requested D. The port number of the web server E. The XHTML contents of the web page being requested
  5. Write the complete XHTML code for a paragraph element with an id of exam and a class of important. Make the content of the paragraph any grammatically correct English sentence. Student ID: Student ID Exam ID: Exam ID

Instructions:

For multiple choice questions, circle the letter of the one best choice unless the

question explicitly states that it might have multiple correct answers.

There is no penalty for guessing, so be sure to answer all questions.

Unless otherwise indicated, all questions count equally.

CS-081 Midterm Exam

  1. What is wrong with this XHTML code: Hello, World!. A. You cannot put punctuation, like commas and exclamation marks between H1 tags. B. The second tag should be . C. The second tag should be . D. XHTML tag names must be lower case. E. There should be a space before the H in Hello and another one after the exclamation mark. For the questions 7-14, choose your answers from the following choices, which are based on the following code. You may use the same choice more than once, or not at all. Welcome to Vickery’s Term Paper A. B.h C.id D.“main-title” E.id=”main-title” F.’ G.Welcome to Vickery’s Term Paper H.Welcome to Vickery’s Term Paper
  2. _____ An XHTML element
  3. _______ A character entity
  4. _____ The content of an element
  5. _____ The name of an attribute
  6. _____ The value of an attribute
  7. _____ A start tag
  8. _____ A tag name
  9. _______ Representation of a right single quote character
  10. Draw a diagram showing the DOM Tree structure for an XHTML document consisting of head, body, title, and html elements. Put those elements in their proper relationship to each other. Then add a heading followed by two paragraphs, a subheading, and then two more paragraphs in their proper places in that same tree. Answer here: Student ID: Student ID Exam ID: Exam ID
  1. Which box property would normally used to manage the space between boxes? A. margin B. padding C. border D. spacing E. fill
  2. What does this CSS rule do: #target { float:left; } A. It takes the element with the id of target out of the normal flow of the web page, and moves it as far left as possible; element that follow it will flow around its right side. B. It causes the element with the id of target to be positioned on the right side of the web page, and the other elements will float around it on its left side. C. The element with the id of target will appear below any elements that have been floated to the left. D. The element with the id of target will appear above any elements that have been floated to the left. E. It will have no effect on the element with the id of target because you can only use the float property with selectors that are tag names.
  3. What is the name for the color #00F? A. Yellow B. Black C. White D. Gray E. Blue
  4. What is the hexadecimal representation of black? A. #0FF B. #F C. # D. #F0F E. #
  5. List the names of the two required attributes of the img element, and tell what each is used for:
  6. Why do you have to do a case-sensitive link check on your site before you submit an assignment in this course? Student ID: Student ID Exam ID: Exam ID