
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