Exam 1 Sample Test Questions


For all of the questions below, you must not only give an answer but you must show all of your work and describe all of your reasons for choosing your answer.

  1. Question: If the ASCII code for the letter "A" is 65, what is the ASCII Code for the letter "D"?

  2. Question: Suppose you have an image of size 400x300 pixels. How much memory in bytes is required to store the uncompressed image if:

    1. 8 bit color (don't forget the palette) is used.
    2. true color (24 bit) is used?

  3. Question: Computers are based on bits which have two possible states (0 or 1). Suppose a new computer is invented that is based on "tri-its" (this is a made-up word). A tri-it can have 3 possible states (-1,0,1).

    1. How many pieces of information could be stored in a single tri-yte (1 tri-yte = 8 tri-its)?
    2. 16 bit color provides 216 = 65,536 different colors. How many different colors could be represented using 16 tri-it color?
    3. What is the minimum number of tri-its that would be required if you only wanted to represent the same 65,536 that are available on a bit based machine?

  4. Question: Below is sample code for a very simple table.

    	<table>
    	<tr> 
       		<td>  This is the first cell in a sample table. </td>
    	</tr>
    	<tr>
       		<td>  This is the second row in the table. </td>
    	</tr>
    	</table>
    

    What would the code be for a table that looks like:

  5. Question: Suppose you have a picture that you want to compress and store as a gif file. Which of the below choices is typically going to be the smallest/largest in size.

    1. 4 bit, 100% dither
    2. 4 bit, 0% dither
    3. 2 bit, 50% dither
    4. 2 bit, 100% dither

  6. Question: Which of the choices in the previous problem will typically have the best/worst quality. For a small class of images, all of the above will be identical in quality. What class of images is this?

  7. Question: If you set the background color to red using an external style sheet and you set the background color to blue using an inline style tag, what will the actual color of the document be?

  8. Question: A good friend of yours is a painter who wants to display and sell her work on the web. Being the good friend that you are, you offer to design and implement her web site. Describe in as much detail as you can, what needs to be done. Include:

    1. The types of questions you will need to ask your friend to find out exactly what she wants.
    2. Based on her answers, what design features will be in the web site.
    3. Examples of the overall web site structure.
    4. Design details of the key pages.
    5. How many hours do you think it will take to gather the data, do the design, and to do the implementation.
    6. If you were to charge for the job, what price would you ask?