=========================preview======================
(comp101)[2007](sum)final~masze^_10102.pdf
Back to COMP101 Login to download
======================================================
For each of the questions 1 to 30, please use a pencil to fill in the circle on the answer sheet that represents the best answer (2 points for each question).
1.Which of the file formats below can be used for graphical contents?



A..mid









B..mp3


C..swf


D..wav


2.How do we estimate the file size of an 8 min song without compression, recording in stereo, 24-bit at a sample rate of 44 kHz, for streaming using bandwidth of 1.5 Mbps?



A.8 x 24 x 44000 bytes









B.60 x 24 x 44000 x 2 bytes


C.8 x 60 x 24 x 44000 / (1.5 x 220) bytes


D.8 x 60 x 24 x 44000 x 2 / (1.5 x 220) bytes


3.The three basic constructs of a computer program are



A.array, function and statement









B.choice, loop and sequence


C.function, loop and sequence


D.keyword, special term and variable


4.What will the button look like when it is defined as below in HTML?



<input type="submit" value="click me!!"
name="don't click me" onclick="alert('comp101')">
A.










B.



C.



D.



5.A special characteristic of the ADSL connection is:



A.Download speed and upload speed are set depending on the application.









B.Download speed is faster than upload speed.


C.Download speed will be the same as upload speed.


D.Upload speed is faster than download speed.


6.What would be the output of the following JavaScript segment if placed within a <script> tag in the <body> section?



function difference(a, b) {
var result = a + b;
return result;
}
var total = difference(24,13);
document.write(total);
A.11









B.37


C.difference(24,13);


D.total


7.Which one of the following formats of audio compression is the best for recording a speech?



A..mid









B..mp3


C..svg


D..swf


11
8.According to the "fair use" guideline, one may upload music without seeking permission from copyright owner as long as proper credits are given for



A.up to 10% or 30 seconds, whichever is less.









B.up to 10% or 30 seconds, whichever is more.


C.up to 30% or 10 seconds, whichever is less.


D.up to 30% or 10 seconds, whichever is more.


9.A "plug-in" is usually refers to



A.a hardware adapter to connect the new device with an existing computer.









B.a program that compresses some contents to a file in a particular format.


C.a program that decompresses some file to recover the original contents.


D.a software adapter to let the browser handle new content formats.


10.Which compression technique is likely to allow full recovery of original contents when decompressed?



A.Averaging









B.Range reduction


C.Removing repetition


D.Selectivity


11.The "selectivity" compression technique uses the following strategy:



A.leave out the details that are not likely to be noticed