=========================preview======================
(comp101)[2006](f)final~masze^_10097.pdf
Back to COMP101 Login to download
======================================================
For questions 1 to 22, 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 following fragment really looks like a part of machine language?
A.
ADD R1, R2
B.
int x = a + b
C.
Let x be the sum of a and b
D.
01001010 00000001 00000010
2.
Which of the following is NOT a high-level programming language:
A.
C++
B.
Fortran
C.
HTML
D.
Java
3.
The process of writing computer programs generally consists of several separate steps. Which of the following sequences is correct?
A.
Compilation, implementation, testing and publication
B.
Design, compilation, observation and testing
C.
Design, implementation, compilation and debugging
D.
Design, implementation, testing and compilation
4.
The method used by a CODEC depends very much on the type of data. Which of the following is NOT a method used by any CODEC:
A.
Averaging
B.
Encryption
C.
Range reduction
D.
Removing repetition
5.
Which of the following statements about JavaScript is NOT correct?
A.
JavaScript does not require compilation since it is an interpreted language.
B.
JavaScript is a scripting language which is simply another name for an assembly language.
C.
JavaScript is case-sensitive which means that it distinguishes between upper- and lower-case characters.
D.
JavaScript was designed to enhance the capabilities of Web browers.
6.
JavaScript supports the concept of variables to store values. Which of the following is a legal variable name?
A.
c9876@5432
B.
c9876-5432
C.
c9876:5432
D.
c9876_5432
7.
Which of the following is a correct way to specify a loop in JavaScript to process even numbers between 0 and 10(both included)?
A.
for (i=0; i < 10; i = i+2)
B.
for (i=0; i < 12; i = i+2)
C.
for (i=10; i > 0; i = i-2)
D.
for (i==10; i >= 0; i = i-2)
8.
Mr. X is watching a silent video clip online. The video is 2 minutes long at 15 frames per second where each frame is 1024*768 pixels in true color. How much bandwidth is needed for watching the video smoothly without compression?
A.
1024*768*15*3/1000 Kbps
B.
1024*768*15*24/1000 Kbps
C.
1024*768*15*2*60/1000 Kbps
D.
1024*768*15*24*2*60/1000 Kbps
9.
Copyright laws are designed to protect the intellectual property of the creator. Mr. X has just bought a DVD movie named Spiderman 3 which is 90 minutes long. He is allowed to:
A.
Copy the DVD to his notebook computer to enjoy the movie while travelling.
B.
Publish a 10-minute highlight segment of the movie on the Web.
C.
Rent the DVD to a friend.
D.
Sell copies of the DVD to his classmates.
10.
What is the name o