=========================preview======================
(comp101)[2005](s)midterm2~masze^_10096.pdf
Back to COMP101 Login to download
======================================================
For questions 1 to 17, please use pencil to fill the circle on the Multiple Choice Item Answer Sheet that represents the best answer (4 points for each question).

1. What does the browser do for the text between the <TITLE> and the </TITLE> tags?
A. It places the text in the top border of the browser window.
B. It places the text as the title for the contents in the browser window using the largest font available.
C. It displays the text as title for the image just before it.
D. It uses the text as the named anchor at the beginning of the webpage.



2. When you type http://course.cs.ust.hk/comp101/ in the browsers address window, which file does the server look for in the comp101 directory?
A. comp101.html
B. frontpage.html
C. home.html
D. index.html



3. Which of the following tags instructs the browser to display text which is centered in the browser window?
A. <blockquote>
B. <br>
C. <center>
D. <indent>




4. The relative link in an HTML file is used to:

A. link to a place within the file
B. link to a file within the same website
C. link to a file at the URL given
D. link to the home page of the website
5. You typed HTTP://COURSE.CS.UST.HK/COMP101/ in the browsers address window but got the 404not found error. What was the problem?
A. You should have begun the URL with WWW.
B. The HTTP should have been typed in lower case.
C. The address COURSE.CS.UST.HK should have been typed in lower case.
D. The directory COMP101 should have been typed in lower case.



6. The World Wide Web is very popular these days because
A. it is well-supported by many advertisers.
B. it is a more effective medium than e-mails for communication over the Internet.
C. it is easy to use by ordinary people.
D. the browser Internet Explorer is available on all computers to surf the Web.



7. Cookies are files that
A. enable the user to know how popular a website is.
B. enable the browser to anticipate the users next action.
C. enable the website to know the users browsing habit.
D. enable the operating system to block inappropriate contents of websites.



8. Why is it important to make sure an HTML document 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 vision-impaired people (blind people).
C. It shows professionalism by including the W3C validation logo.
D. All of the above.



9. If a designer wishes to include the logo of the CS Department "CS.gif" to his webpage and make it a clickable link to the home page of the department (www.cs.ust.hk), he can
A. <a href="http://www.cs.ust.hk"> <img src="CS.gif"> </a>
B. <a href="CS.gif"> http://www.cs.ust.hk </a>
C. <img src="CS.gif" alt="http://www.cs.ust.hk">
D. <a href="http://www.cs.ust.hk" src="CS.gif"></a>



10. When you type into a search e