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

1. You are given a 5-minute video at 30 frames per second, where each frame is 640*480 pixels with 24-bit color. How much bandwidth is needed for smooth presentation without compression?
A. 640*480*24*30*5*60/8/1000 Kbps




B. 640*480*24*30/1000 Kbps

C. 640*480*24*30*5*60/1000 Kbps

D. 640*480*24*30/8/1000 Kbps

2. Which of the following statements about JavaScript is not correct?



A. Variables in JavaScript are case-sensitive.

B. JavaScript is used to create dynamic webpages.

C. JavaScript functions must be placed in the <head> section.

D. The <script> tag must include the type attribute to pass W3C validation.

3. Which of the following JavaScript code segments swaps the values of a and b using variable temp?



A. a=b;
temp=a;
b=temp;
B. temp=b;
b=a;
a=temp;
C. b=temp;
a=b;
temp=a;
D. temp=b;
a=b;
b=temp;

4. Which of the following JavaScript data declarations is correct?



A. my_mark

B. _mark

C. 9-temp-mark

D. my-mark

5. An array num is defined in a JavaScript segment as var num=new Array(10);
Which of the following statements is wrong?

A. num[0]=num[1]+num[2];

B. num[3]=num[4]/num[5];




C. if(num[6]>0)num[7]++;

D. num[8]=num[9]-num[10];


6. The following pseudo code IF (value not found) THEN return position to -1




A. can be translated to machine language by an assembler for execution.

B. can be translated to machine language by an interpreter for execution.

C. can be translated to a high-level language by people for interpretation or compilation.

D. None of the above

7. Which of the following is not a high-level language?



A. Java

B.++

CC. Cobol

D. Assembly language
8. Which of the following file formats does not support animation?



A. .swf
B. .gif
C. .ppt
D. .jpg

9. Using copyright-protected work needs the permission of the copyright owners or to give them credits. Which of the following can be copied without permission?
A. 5 minutes of a video clip.
B. 10 images by an individual artist or photographer.
C. 30 seconds of a 2-minute song.
D. The appearance of a 10,000-line webpage.




10. Which of the following audio recordings has the most number of channels?
A. CD
B. DAT
C. Dolby surround
D. Professional studio recording



11. Which one of the following MPEG formats is not a video format?



A. MPEG-1

B. MPEG-2

C. MPEG-4

D. MPEG-7



12. What does a sample rate of 44.1KHz for an audio file mean?



A. 44.1K samples are taken for each second of the sound recorded.
B. The audio file contains only samples of sound of 44.1KHz.

C. The audio file is a recording of so