=========================preview======================
(comp101)[2006](s)midterm2~masze^_10101.pdf
Back to COMP101 Login to download
======================================================
For questions 1 to 12, use a pencil to fill in the circle on the answer sheet that represents the best answer (4 points for each question).
1. Which kind of protocol is used when you browse the Web through your Web browser?
A. HTTP
B. POP3
C. IMAP
D. HTML
2. When inserting an image into HTML document, which of the following attribute should not be omitted in order to improve accessibility?
A. align
B. alt
C. href
D. width
3. The color of a pixel is represented by the strength of each prime color R, G, B, with 8 bits for each prime color. Given a JPEG picture with 800*600 pixels, how large is the storage required to save it on the PC?
A. 800x600x24/8 bytes
B. 800x600x24 bytes
C. 800x600x8 bytes
D. Not sure (based on the information given)
4. Which of the following image format supports animation?
A. .bmp
B. .gif
C. .jpg
D. .png
5. What does the browser do for the text between the <pre> and </pre> tags?
A. It places the text in the middle of the window.
B. It places the text on top of the browser window.
C. It preserves the exact formatting of text.
D. It uses the text as the name of the target HTML file.
6. Which of the following statements about GIF is wrong?
A. GIF is a loss-less compression format.
B. GIF is short for Graphic Interchange Format.
C. GIF has no audio capability.
D. GIF supports true color.
7. Which tag is used to create an ordered list?
A. DL
B. LIST
C. OL
D. UL
8. To create a hyperlink to a file test.html, which is located in the same directory, which of the following code is correct?
A. <a href="#test.html"> TEST</a>
B. <a href="test.html"> TEST</a>
C. <link href="test.html"> TEST</link>
D. <link href="#test.html"> TEST</link>
9. What is the wrong thing to do to convert an HTML document to XHTML?
A. Change all attributes and tags to lower case.
B.hange all id attributes to name.
CC. Close all open tags.
D. None of the above.
10. What is the purpose of dithering?
A. To improve the image quality when too few real colors are available.
B. To compress an image in a loss-less way.
C. To compress an image in a lossy way.
D. To smooth out jagged lines in a character or image.
11. What is the result of converting the decimal number 214 into hexadecimal presentation?
A. D6
B. 412
C. 326
D. 6D
12. Which of the following statement(s) are correct? I. JPEG can support more colors in an image than GIF
II. BMP can support more colors in an image than GIF
III. JPEG can support transparency
A. I only
B. I & II
C. II & III
D. I, II & III
13. (12 pts) Fill in the blanks to create a webpage in HTML 4.01 with the following layout (assumin