=========================preview======================
(comp101)[2004](f)midterm2~masze^_10088.pdf
Back to COMP101 Login to download
======================================================
For questions 1 to 17, please use pencil to fill the circle on the answer sheet that represents the best answer (4 points for each question).

1. What does the browser do for the text between the <H1> and the </H1> tags?
A. It uses the text as instructions to the browser on how large the largest font should be.
B. It places the text on top of the browser window.
C. It displays the text using the largest font supported by the browser.
D. It uses the text as the first hyperlink from the webpage.



2. What does the browser do when it encounters the tag <BODY BGCOLOR="#BB00BB">?
A. It sets the background color of the window to blue.
B. It sets the background color of the window to yellow.
C. It sets the background color of the window to purple.
D. It sets the background color of the window to white.



3. You entered http://no.such.thing.com/try/again.html as URL for the browser but got the 404not found error. What was the problem?
A. You forgot to begin the URL with www.
B. There was no host computer with address as no.such.thing.com.
C. There was a host computer with the address but it was not responding due to hardware problem.
D. There was a host computer with the address but it did not have the file try/again.html.



4. Which of the following tags instructs the browser to display text which is underlined?
A. <u>
B. <ul>
C. <b>
D. <em>



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

A. link to a place within the file
B. link to a named file within the same directory
C. link to another website with the same name
D. display the name on top of the browser window as anchor

6. It is a good idea to specify width and height of an image in an HTML file since
A. the image may be distorted if its width and height are not specified.
B. the image may load faster if it has a smaller width and a smaller height than its original dimensions.
C. the image may be placed at a defined location on the webpage.
D. the text may be displayed before the computer finishes loading the image.



7. When defining a table in an HTML file, one should
A. define rows before defining table cells that form columns.
B. define columns before defining table cells that form rows.
C. define table cells first and align them into rows and columns.
D. define the page layout first using frames.



8. Why is it important to test whether an HTML is valid before uploading it to the Web server?
A. It is likely to look the same on most browsers.
B. It is likely to be accessible by mobility-impaired people (people confined in wheelchairs).
C. It shows professionalism by including the W3C validation logo.
D. All of the above.



9. If a designer wishes to include a photo "4WD.jpg" to his webpage, he can include
A. <a href="4WD.jpg"> A 4-wheel Drive Vehicle </a>
B. <a href="A 4-wheel Drive Vehicle"> 4WD.jpg </a>
C. <img src="4WD.jpg" alt="