=========================preview======================
(comp101)[2005](f)final~masze^_10092.pdf
Back to COMP101 Login to download
======================================================
For each of the questions 1 to 22, please use pencil to fill in the circle on the answer sheet that represents the best answer (2 points for each question).

1. If you want to publish a flash movie you created, the file should be in which format?



A. .flash
B. .mov
C. .swf
D. .wav

2. Which of the following compression format is most suitable for Internet and mobile video?



A. MPEG1
B. MPEG2
C. MPEG3
D. MPEG4

3. Which of following is a valid JavaScript variable name?



A. 3a
B. badName
C. Good-Name
D. valid Name

4. If you use your own notebook computer in the HKUST Library to surf the Web free of charge, you are connected to Internet through:



A. Wireless LAN
B. 3G

C. GPRS

D. Blue Tooth




5. Which of the following is a correct way to specify a loop in JavaScript which iterates 5 times?



A. for(i=1,i<=5,i++) { }
B. for(i==1,i==5,i++) { }
C. for(i=5;i>0;i--) { }
D. for(i=5;i--;i>0) { }


6. Which of the following is not considered a high level programming language?



A. Assembly
B. Basic
C. Fortran
D. Java

7. Which script language is used in our lab to place a counter on the webpage to count the number of visits?



A. CGI
B. CSS
C. JavaScript
D. VBScript

8. What is the size of a 30-second silent video clip without compression (at 30 frames per second for a frame of 800x600 pixels) in true color?


A. 800x600x30x30x24/8 bytes

B. 800x600x30x24/8 bytes

C. 800x600x30x30/8 bytes

D. 800x600x30x30x24 bytes




9. The tag that gives HTML documents the hypertext characteristic is



A. <a>
B. <h1>
C. <href>
D. <link>

10. All the WYSIWYG Web design tools (such as Dreamweaver or Frontpage) offer a view to let the designer review and change the HTML code. Why?



A. The HTML code view is for teaching the designer how HTML works.
B. The HTML code view is needed to let the designer preview the creation before uploading to the Web server.
C. The HTML code view is useful for the designer to make fine adjustments.
D. The HTML code view is for the designers reference only.

11. The easiest way to make all pages of a website with consistent look-and-feel is



A. using an external style sheet.
B. using internal style sheets that are designed appropriately for each page.
C. using in-line style sheets with consistent style.
D. using any two of them in a cascade fashion.


12. What is the name of the attribute used to identify a segment of code to be JavaScript?



A. javascript
B. script
C. text
D. type


13. Color on a webpage is normally specified with six hexadecimal digits. How many different colors can be specified?



A. 6x6x6=216
B. 8x8x8=512
C. 16x16x16=4,096
D. 256x256x256=16,777,216


14. What is the tag used to include an image in the webpage?



A. <a>
B. <img>
C. <i