=========================preview======================
(COMP101)Final2005spr.pdf
Back to COMP101 Login to download
======================================================
For questions 1 to 30, please use pencil to fill in the circle on the answer sheet that represents the best answer (2 points for each question).

1. When you see a file with extension .wav, what does it represent?
A. A colorful image.
B. A sound track.
C. A video clip.
D. An animation sequence.



2. The data transfer speed of network connections is normally measured in bps. It represents
A. Number of bits per second.
B. Number of bytes per second.
C. Number of blocks per second.
D. Number of binary packets per second.



3. A special characteristic of the ADSL connection is:
A. Download speed will be the same as upload speed.
B. Download speed is faster than upload speed.
C. Upload speed is faster than download speed.
D. Download speed and upload speed are affected by the number of simultaneous users of the connection.



4. Which of the following compression format is used for VCD?
A. MPEG1
B. MPEG2

C. MPEG3

D. MPEG4






5. The quality of streaming video is affected by
A. the window size.
B. the number of open windows.
C. the amount of free space on the hard disk.
D. the connection speed.



6. Which of the following specifications can provide the best audio quality?



Sample rate
Bit depth
Channels

A.
16 KHz
8-bit
2

B.
44.1 KHz
16-bit
2

C.
16 KHz
16-bit
2

D.
44.1 KHz
8-bit
2





7. For the HTML line below, what will be the label of the button?
<input type="submit" value="click me!!"
name="dont click me" onClick="alert('COMP101')">

A. submit
B. click me!!
C. dont click me
D. COMP101



8. Which attribute or keyword is not required for the <SCRIPT> tag of a JavaScript segment in order to be considered valid HTML?
A. javascript
B. language
C. type
D. text







9. What is the output of the following JavaScript segment?
function process(a, b) {




var resultA = a + 1;
var resultB = b + 1;
return resultA;
// return resultB;
}
var total = process(13,24);
document.write(total);
A. 14

B. 25

C. 37

D. total



10. What is the output of the following JavaScript segments?
function sum (a, b) {
var result = a + b;
return result;
}

var answer = sum (13,24);
document.write("answer");





A. 13
B. 24
C. 37
D. answer

11. It is possible to pass the W3C validator by including alt="" as an attribute for <IMG>. But that is not good practice since
A. the image may shrink to the size of one blank character.
B. the image may be too large for the screen.
C. the caption of the image may become "".
D. the Microsoft Narrator may not provide any useful information for the vision-impaired people.


12. Since authoring tools such as Dreamweaver or Frontpage are so easy to use, why should we still learn the details of the