Name: ________________________________
Section: ____________

FIT100 Winter Quarter
University of Washington
Midterm #1
January 24, 2005
Closed book, closed notes, closed neighbor; no calculators
2 points per part except as noted

 
.
Permanent data is stored on disk instead of in RAM because A. disk is faster than RAM
B. IC memory is volatile
C. disks can be replaced when they fail
D. RAM is vulnerable to hackers














 
.
"Drop down" refers to A. a style of menu
B. an earthquake protection strategy
C. reduction in available memory
D. reduction of processor speed
E. increasing miniaturization of circuits














 
.
When we speak of a computer system's "desktop" ...

A. we are referring to the external case
B. we are using a metaphor
C. we mean any part which sits on the desk (as opposed to under it, for example)
D. we mean the shell of a Unix system














 
.
Which of the following (parts of URLs or e-mail addresses) generally IS case-sensitive?
A. the path
B. the domain
C. the username
D. the protocol
E. the port














 
.
When an host (domain) name is translated into an IP address, which part of the IP address is the translation of the TLD?
A. The first 3 digits
B. The seond 3 digts
C. The third 3 digits
D. The fourth 3 digits
E. There is no simple correspondence














 
.
When a packet is sent from one host to another on the Internet, it may pass through several other computers (hosts and routers).  What prevents an evil computer from deliberately not forwarding the packet to the proper place?
A. a password
B. a sequence code
C. on-line monitoring by the W3C
D. the http protocol
E. none of the above














 


.
A student whose UWNetID is snoboader has a Dante account set up in the usual way.  In the web area, the student has created a directory called images with a subdirectory called snowy, and within snowy there are files, including one named holiday.html and another named powder.jpg.  (Pause for a breath! Visualize or draw the structure).
What is the correct URL to reach the page holiday.html?
A. http://students.washington.edu/snoboader/public_html/snowy/images/holiday.html
B. http://dante.washington.edu/public_html/holiday.html
C. ssh://snoboader.u.washington.edu/holiday.html
D. http://students.washington.edu/snoboader/images/snowy/holiday.html
E. http://snoboader.washington.edu/images.snowy














 
.
(Same situation as above) If the page holiday.html contains an img tag, what is a correct way for the tag to reference the file powder.jpg?

A. src="powder.jpg"
B. src="images/powder.jpg"
C. src="/images/powder.jpg"
D. src="snowy/images/powder.jpg"
E. src="holiday.html/powder.jpg"














 
.
On Unix systems, typing in the command ls ...

A. logs the user out of a shell
B. logs the user into a shell
C. shows directories and files
D. starts SSH
E. shows the last time SSH was used














 
.
On a Unix system, if you are in a directory named lab2 and want to get to the directory which contains it, a suitable command would be
A. mkdir lab2
B. pwd /lab2
C. pwd lab2/..
D. exit lab2
E. cd ..














 
.
The main purpose of the site http://validator.w3.org is to:
A. index web pages
B. modify (mark up) web pages
C. be a reference manual for W3C standards of all kinds
D. point out possible errors in html code
E. validate domains














 
.
Ethernet is used primarily
A. within a PAN
B. within a LAN
C. within a WAN
D. to connect major gateways on the Internet
E. internally within a computer














 
 

.
The number of "hops" of a packet refers to
A. how many times it is sent back because of errors
B. how many times it is forwarded before reaching the destination
C. the number of top-level domains it must travel to reach its destination
D. the number of data bytes it contains
E. the number of different hosts it is addressed to














   
.
What is true about default web pages?
A. Whenever the server cannot find a requested page (because a URL is incorrect), it creates a default web page
B. There can only be one default web page per site
C. There can be a default web page in each folder within a web site
D. On every system, a default web page must be named index.html














   
.
The hexadecimal number #990003 represents a shade of
A. black
B. gray
C. blue
D. green
E. red














 
.
Which statement is true about files whose name ends in .jpg?

A. Giving a file a name ending in .jpg makes it an image file
B.  Giving a file a name ending in .jpg compresses it
C. Giving a file a name ending in .jpg signals that it should contain an image
D. Changing a file name which ends in .jpg to .doc converts the file to Word document format














 
.
A Domain Name Server

A. lets companies and individual register names for their use
B. locates the IP address for domains
C. locates the domain name given a IP address
D. is an organization which decides which decides which domain names are legal

































. (worth 4 MC questions)
Here is a small html file.  In the space to the side, render it as best you can: draw a browser window and the file as it would be displayed.

<html>
<head><title>Color Magic</title><head>
<body>January 1, 1977
<h1>Rainbow colors</h1>
Traditionally,
the colors of the rainbow are
<ol>
<li>red orange
 yellow</li>
<li>green<br>blue</li></ol>
violet.
<p>Tradition <b>can</b> be misleading.</p>
<body>
</html>



















 
. (worth 2 MC questions)
Is the Internet the same thing as the World Wide Web?  Answer Yes or No, and the explain your answer in no more than one paragraph.





















 
. (worth 2 MC questions)
Sometimes using a hierarchy works better for finding information than an index-based strategy, and sometimes the reverse is true.  Give a brief (but convincing!) example of each situation.