=========================preview======================
(comp101)[2006](f)midterm2~masze^_10099.pdf
Back to COMP101 Login to download
======================================================
For questions 1 to 12, please use a pencil to fill in the circle on the answer sheet that represents the best answer (4 points for each question).
1.
Which of the following tags in an HTML document does NOT need a corresponding closing tag to be considered valid?
A.
<p>
B.
<br>
C.
<body>
D.
<blockquote>
2.
If you want to insert an image into an HTML document which will be displayed in the middle of a browser window instead of left or right, which of the following attributes should be used?
A.
align
B.
margin
C.
position
D.
width
3.
If you want to let people send you email to the address MrX@cse.ust.hk in your webpage by clicking Contact me, you should write:
A.
<a href="MrX@cse.ust.hk"> Contact me </a>
B.
<a href="mailto:MrX@cse.ust.hk"> Contact me </a>
C.
<link href="MrX@cse.ust.hk"> Contact me </link>
D.
<link href="mailto:MrX@cse.ust.hk"> Contact me </link>
4.
Given the body of an HTML document without using CSS, <body> This is question 4 <TAG> Can you answer it correctly? </TAG> </body> If you want to display the content exactly like below, which of the following should TAG be in the document?
A.
blockquote
B.
indent
C.
p
D.
pre
5.
If you want to build a table in HTML with two columns and three rows, how many times will <tr> and <td> appear?
A.
2 3
B.
2 6
C.
3 2
D.
3 6
6.
In HTML, we can use six hexadecimal numbers to specify the color of certain objects. We know red is #FF0000, green is #00FF00, and blue is #0000FF. What are the hexadecimal numbers corresponding to white and yellow?
A.
#000000 #FF00FF
B.
#000000 #FFFF00
C.
#FFFFFF #FF00FF
D.
#FFFFFF #FFFF00
7.
It is more difficult to edit a true-color image than text since
A.
It is difficult to define the boundaries of a graphic object for editing.
B.
There are too many different formats for a true-color image.
C.
There are too many different graphics editors.
D.
All of the above
8.
How many different colors can be specified using six hexadecimal numbers?
A.
6*6*6
B.
16*16*16
C.
6*6*6*16*16*16
D.
16*16*16*16*16*16
9.
Given a trueCcolor BMP picture with 1024*768 pixels, how large is the storage required to save it on the PC?
A.
1024*768 bytes
B.
1024*768*2 bytes
C.
1024*768*3 bytes
D.
1024*768*6 bytes
10.
Which of the following is NOT correct about JPEG?
A.
JPEG uses a lossless compression technique
B.
JPEG doesnt support animation
C.
JPEG is short form of Joint Photographic Experts Group
D.
JPEG can support true-color
11.
What is the purpose of anti-aliasing?
A.
To improve the image quality when too few real colors are