
Perfect Student Midterm Exam March 20, 2007
Student ID: 9999 Exam: 7434 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: Answer all questions in your examination booklet, in sequence, please. Unless
otherwise indicated, all questions count equally.
1. Where is your “My Web Pages” folder?
A. In C:\htdocs
B. In My Documents
C. On ginkgo.cs.qc.edu
D. On www.qc.cuny.edu
E. On babbage.cs.qc.edu
2. What happens to your My Web Pages folder when you log off?
A. Nothing. If I want to access it again I have to log into the same computer.
B. It is automatically copied to all the other computers in the lab.
C. It is automatically deleted.
D. It is automatically copied to maple and then copied to whatever computer I log into next.
E. A copy is automatically emailed to Dr. Vickery
3. What are the restrictions on accessing web pages in the lab using tilde (~) at the beginning of the
pathname part of a URL?
A. The web pages have to be located under C:\htdocs.
B. Tilde means to go up one directory from the current directory.
C. There are no restrictions.
D. You cannot use a tilde in the pathname part of a URL.
E. The user whose account name follows the tilde must be logged into the computer named in the
hostname part of the URL at the time the access is made.
4. What does a web designer have to be careful about when developing pages on a Windows
computer that will eventually be delivered using a Unix computer?
A. Unix file and directory names are case sensititve, but Windows file and directory names are case
insensitive, so links that worked on Windows might not work on Unix.
B. Windows file and directory names are case snensitive, but Unix file and directory names are case
insensitive, so links that worked on Windows might not work on Unix.
C. You can’t run an Apache server on Windows, but you can run it on Unix.
D. You have to use Internet Explorer to look at web pages that were developed on Windows, and you
have to use Firefox to look at web pages that were developed on Unix.
E. You have to change all your pictures from JPEG to PNG when you move the web pages from
Windows to Unix.
5. What happens if you copy web pages to C:\htdocs?
A. They can be accessed relative to the document root on any computer in the lab.
B. They can be accessed relative to the document root only on the computer where you made the
copy.
C. They can no longer be accessed by anyone once you log off.
D. Dreamweaver manages them for you from that point on.
E. They are automatically deleted from My Web Pages.
6. What does an Apache server do if someone requests a directory instead of a file in a URL?
A. It executes an alert() function to find out what the browser wants to do about the problem.
B. It looks up the user in a database to see if the person is a repeat offender.
C. It IM’s the web designer to report the problem.
D. It sends a bug report to the Apache Foundation so a programmer can fix the problem.
E. If configured to do so, and if the file exists, it returns a file named index.xhtml found in that
directory.