=========================preview======================
(comp101)[2007](s)midterm2~masze^_10107.pdf
Back to COMP101 Login to download
======================================================
For each of the questions 1 to 17, please circle the best answer on the paper and use a pencil to fill in the circle on the answer sheet (4 points for each question).
1. What is URL?
A. Unique Relocation Linker
B. Uniform Resource Locator
C. Universal Resolvable Location
D. United Redirecting Link
2. What is HTML?
A. High Tech Marking Language
B. Hyper Text Markup Language
C. Highly Tolerant Machine Language
D. Human To Machine Language
3. When a user opens the webpage www.ust.hk in the computer lab, where is the website located?
A. The users computer
B. The labs router
C. The HKUST Web server
D. HKUSTs Internet Service Provider
4. Which of the following is NOT a valid HTML tag?
A. <h0>
B. <p>
C. <li>
D. <i>
5. Which of the following contains an incorrect attribute value?
A. <h1 align="center">
B. <font size="+2">
C. <body bgcolor="#CDEFGH">
D. <img src="image.gif" alt="my image">
6. What is the effect of the attribute background in the following HTML tag: <body background="image.jpg">?
A. A repeated image image.jpg tiled over the window
B. An enlarged image image.jpg fitted to the window
C. A floating image image.jpg placed on the window
D. An image image.jpg fixed at the center of the window
7. Which of the following is NOT a valid usage of CSS?
A. Defining CSS in the attributes of tags
B. Defining CSS inside the head section
C. Defining CSS inside the body section
D. Defining CSS in an external file
8. Colors are defined as #XXYYZZ in HTML. What colors do XX, YY and ZZ represent respectively?
A. Blue, Red, Green
B. Green, Red, Blue
C. Green, Blue, Red
D. Red, Green, Blue
9. Which of the following choices is the result of loss-less compression?
A. JPG
B. GIF
C. BMP
D. GIF & BMP
10. If someone has uploaded the file index.html to his iHome account (cs_abc), which of the following is a correct way to open the webpage?
A. ftp://ihome.ust.hk/~cs_abc/index.html
B. ftp://ihome.ust.hk/~cs_abc/index/
C. http://ihome.ust.hk/~cs_abc/index.html
D. http://ihome.ust.hk/~cs_abc/index/
11. What is the dithering technique in processing images?
A. To increase the perceived resolution
B. To decrease the perceived resolution
C. To increase the number of perceived colors
D. To decrease the number of perceived colors
12. Which of the following tag cannot be put inside the body section, in order to be considered a valid HTML document?
A. <link>
B. <div>
C. <script>
D. <h1>
13. Given the following HTML code segment for a table: (1) <table> (2) <tr> (3) <td> (4) My Table Cell (5) </td> (6) </tr> (7) </table> If someone wants to