=========================preview======================
(comp101)[2004](s)midterm2~masze^_10091.pdf
Back to COMP101 Login to download
======================================================
For questions 1 to 17, please tick the box that has thebest answer (4 points for each question).
1. What does the browser do for the text between the <TITLE> and the </TITLE> tags? . It uses the text as the name of the HTML file.
. It places the text on top of the browser window. . It places the text inside the browser window as a big title for the Web page.
. It considers the text a hyperlink to the homepage.
2.
What does the browser do when it encounters the tag <BODY BGCOLOR="#FFFF00">? . It sets the background color of the window to blue. . It sets the background color of the window to yellow.

. It sets the background color of the window to purple. . It sets the background color of the window to white.

3.
Why would a valid HTML page need the tag <!DOCTYPE > at the beginning of the file?


. The browser needs to know which character set will be used in contents of the webpage.
. The browser needs to know which version of the HTML standards to use to interpret the instructions in the webpage.
. The browser needs to know how was the document typed by the designer in order to re-create its look-and-feel.
. None of the above is true.
4.
Which of the following tags instructs the browser to display text using the largest font available? . <strong> . <b>

. <h1>
. <h6>


5.
The named anchor in an HTML file is used to

. link to a place within the file . link to a named file within the same directory . link to another website with the same name . anchor the browser window at the upper left corner

6.
It is a good idea to specify width and height of an imagein an HTML file since


. the image may be distorted if its width and height arenot specified.
. the image may load faster if it has a smaller widthand a smaller height than its original dimensions.
. the text may be displayed around the image while it isloading.
. the text may be displayed before the computer finishesloading the image.
7. Which one below is not a proper use of the alt attribute?
. The browser may display the alternative text of theimage if it does not support graphics.
. The vision-impaired user may hear the text through a screen reader when the image is displayed.
. The browser uses the text as a caption for the image displayed.
. The browser may display the alternative text when the mouse is over the image.
8. Why is the World Wide Web considered a killerapplication of the Internet?
. It uses the hypertext concept.
. It attracts many advertisers.
. It runs on virtually all computers.
. It allows retrieval of useful information with little

training.

9.
Before you provide valuable personal information (such ascredit card number) to a website to initiate a business transaction, you should

. make sure that the protocol is smtp
. make sure that the protocol is pop3
. make sure that the protocol is http
. make sure that the protocol is https


10.
Some websit