Full file at
Tutorial 2: Creating Hyperlinks
MULTIPLE CHOICE
1.____ establishes standards for communications between file servers and client computers.
a. / TCP / c. / IPb. / HTTP / d. / HTCP
ANS:BPTS:1REF:HTML 56
2.Which of the following pairs of protocols work together to send packets across communication lines?
a. / HTTP and IP / c. / TCP and IPb. / TCP and HTTP / d. / URL and HTTP
ANS:CPTS:1REF:HTML 56
3.Personal computers like desktops, laptops, or netbooks are called ____.
a. / servers / c. / clientsb. / users / d. / mainframes
ANS:CPTS:1REF:HTML 56
4.HTTP is an acronym for ____.
a. / Hypertext Transmission Protocol / c. / Hypertext Transfer Protocolb. / Hyperlinked Transfer Protocol / d. / Hypertext Transmission Program
ANS:CPTS:1REF:HTML 56
5.Text links are generally ____.
a. / red and italized / c. / green and underlinedb. / blue and underlined / d. / blue and italized
ANS:BPTS:1REF:HTML 56
6.Which of the following is an invalid IP address?
a. / 125.15.221.111 / c. / 64.211.45.2b. / 201.62.256.12 / d. / 222.1.222.2
ANS:BPTS:1REF:HTML 56
7.The suffix is a(n) ____-letter abbreviation that groups domain names based on their category.
a. / two or three / c. / two to fourb. / three / d. / two or more
ANS:CPTS:1REF:HTML 56
8.All of the following are top-level domain names, except ____.
a. / info / c. / conb. / org / d. / edu
ANS:CPTS:1REF:HTML 56
9.Another term for top-level domain name is ____.
a. / prefix / c. / domain extensionb. / suffix / d. / file extension
ANS:BPTS:1REF:HTML 56
10.Internet services include ____.
a. / viewing documents / c. / e-mailingb. / file transfer / d. / all of the above
ANS:DPTS:1REF:HTML 56
11.____ is a protocol used to transfer a file to or from a server.
a. / HTTP / c. / FTPb. / IP / d. / TCP
ANS:CPTS:1REF:HTML 57
12.It is possible to establish a link to ____.
a. / another page within the same Web siteb. / a page within another Web site
c. / a named section on the same page
d. / any of the above
ANS:DPTS:1REF:HTML 57
13.Which of the following cannot be used for establishing a link?
a. / video clip / c. / imageb. / text / d. / image map
ANS:APTS:1REF:HTML 57
14.In the URL shown in the accompanying figure, the protocol is ____.
a. / index / c. / httpb. / wishtree / d. / www
ANS:CPTS:1REF:HTML 57
15.In the URL shown in the accompanying figure, index.htm is a(n) ____.
a. / Web page / c. / domain nameb. / service / d. / suffix
ANS:APTS:1REF:HTML 57
16.In the URL shown in the accompanying figure, the service is ____.
a. / http / c. / wwwb. / wishtree / d. / com
ANS:CPTS:1REF:HTML 57
17.In the URL shown in the accompanying figure, the domain name is ____.
a. / www / c. / index.htmb. / wishtree / d. / .com
ANS:BPTS:1REF:HTML 57
18.Browsers are designed to do all of the following, except ____.
a. / display text / c. / display linksb. / edit images / d. / display images
ANS:BPTS:1REF:HTML 59
19.For images to download as quickly as possible in the browser, you should use image-editing software such as ____ beforehand to resize the original image.
a. / Microsoft Expression Web / c. / Adobe Photoshopb. / Adobe Resize / d. / either a or c
ANS:DPTS:1REF:HTML 59
20.It is ____ to specify a width and height for an image in the image tag code.
a. / required / c. / recommendedb. / optional / d. / forbidden
ANS:CPTS:1REF:HTML 59
21.To create a link to a specific place on the same Web page an attribute called ____ is needed.
a. / width / c. / idb. / name / d. / link
ANS:CPTS:1REF:HTML 61
22.Links to ids are also known as ____.
a. / key links / c. / id linksb. / anchor links / d. / page links
ANS:BPTS:1REF:HTML 61
23.It is recommended to limit the home page to not more than ____ screens of content.
a. / two / c. / fourb. / three / d. / as many as needed
ANS:BPTS:1REF:HTML 61
24.On long Web pages, it is useful to have a link back to the ____ of the page.
a. / bottom / c. / any new paragraphb. / top / d. / block
ANS:BPTS:1REF:HTML 61
25.In XHTML code the anchor element is represented by the start and end anchor tags ____.
a. / <anchor</anchor> / c. / <anc</anc>b. / <a</a> / d. / <p</p>
ANS:BPTS:1REF:HTML 62
26.Values for the id attribute must be enclosed by ____.
a. / angle brackets / c. / parenthesesb. / % symbols / d. / quotes
ANS:DPTS:1REF:HTML 61
27.Within the accompanying code the attribute value that identifies the place on the page to be linked to is ____.
a. / Winter Water Logo / c. / topb. / winterlogo.gif / d. / alt
ANS:CPTS:1REF:HTML 62
28.A(n) ____ is a way to access a resource on your computer or on the Internet.
a. / id attribute / c. / altb. / hypertext reference / d. / anchor
ANS:BPTS:1REF:HTML 62
29.Which of the following characters is used as a flag character in the value of the hypertext reference attribute?
a. / c. / $b. / % / d. / #
ANS:DPTS:1REF:HTML 62
30.An element that is used for establishing links is called a(n) ____.
a. / anchor / c. / keyb. / link / d. / connector
ANS:APTS:1REF:HTML 62
31.Which of the following attributes has been deprecated?
a. / id / c. / srcb. / href / d. / name
ANS:DPTS:1REF:HTML 62
32.Which of the following expressions needs to be avoided when creating link text?
a. / Back to Top / c. / Backb. / Click Here / d. / Forward
ANS:BPTS:1REF:HTML 63
33.By default, text link changes its color to ____ after the link has been clicked.
a. / red / c. / greenb. / purple / d. / blue
ANS:BPTS:1REF:HTML 63
34.When a link leads to another page, the page where the link is included is called the ____.
a. / target page / c. / referring pageb. / linking page / d. / source page
ANS:CPTS:1REF:HTML 64
35.Navigation bars are easy to construct using the ____ symbol on your keyboard to separate one link from the next.
a. / separator / c. / discriminatorb. / divider / d. / piping
ANS:DPTS:1REF:HTML 64
36.The ____ attribute is used to create a ScreenTip for links.
a. / navigation / c. / titleb. / target / d. / flag
ANS:CPTS:1REF:HTML 64
37.The ScreenTip appears when a visitor to the Web page ____.
a. / clicks the linkb. / points to and right-clicks the link
c. / passes the mouse pointer over the link
d. / all of the above
ANS:CPTS:1REF:HTML 65
38.When linking to an id on a different page the following are parts of the hypertext reference, except ____.
a. / the target page / c. / the id nameb. / the referring page / d. / the flag character
ANS:BPTS:1REF:HTML 66
39.What is missing in the following code intended to link to an id on a different page on your Web site?
<a href=”personal.htm#”>profile</a>
a. / the name of the id / c. / the hypertext reference elementb. / the anchor element / d. / the text users click to activate the link
ANS:APTS:1REF:HTML 66
40.To link to an external Web site the ____ must be included in the value for the hypertext reference.
a. / mailto protocol / c. / HTTP protocolb. / TCP/IP protocol / d. / either a or c
ANS:CPTS:1REF:HTML 67
41.As shown in the accompanying figure, some Web sites may not have ____ in their URL.
a. / www / c. / a domainb. / a protocol / d. / an end anchor tag
ANS:APTS:1REF:HTML 68
42.Which part of the code in the accompanying figure is shown in the browser and used to activate the link?
a. / URL / c. / paragraph tagsb. / Learn More About Allspice / d. / hypertext reference attribute
ANS:BPTS:1REF:HTML 68
43.Images such as ____ are commonly used as navigational icons within a Web page.
a. / bullets / c. / pointersb. / arrows / d. / either b or c
ANS:DPTS:1REF:HTML 69
44.Any text or image code that falls between the start and end anchor tags can be clicked and used as a ____ in the browser.
a. / target / c. / paragraphb. / link / d. / document
ANS:BPTS:1REF:HTML 69
45.To use an image as a link, the image file name needs to be included as a value for the ____ attribute.
a. / href / c. / altb. / img / d. / src
ANS:DPTS:1REF:HTML 70
46.A small image that serves as a link to a larger instance of the same image is called a(n) ____.
a. / icon / c. / thumbnailb. / anchor / d. / d link
ANS:CPTS:1REF:HTML 71
47.To specify that an image will be used as an image map the ____ atribute needs to be added.
a. / imgmap / c. / usemapb. / map / d. / hotspot
ANS:CPTS:1REF:HTML 73
48.The ____ attribute provides a longer description of the image than the alt attribute.
a. / longd / c. / dlongb. / longdesc / d. / desclong
ANS:BPTS:1REF:HTML 73
49.If a Web site developer puts a letter ____ beside an image, it can serve as a link to another page that has a detailed description of the image.
a. / d / c. / lb. / D / d. / L
ANS:APTS:1REF:HTML 73
50.The ____ element is the container for all the code in an image map.
a. / mapping / c. / imagemapb. / map / d. / mapimage
ANS:BPTS:1REF:HTML 74
51.A developer can create ____ on an image to link it to different pages.
a. / not more than five hotspots / c. / not more than three hotspotsb. / as many hotspots as needed / d. / only two hotspots
ANS:BPTS:1REF:HTML 75
52.A(n) ____ element is used to create a hotspot on an image.
a. / segment / c. / sectorb. / area / d. / link
ANS:BPTS:1REF:HTML 75
53.Which of the following is not one of the <area> tag’s attributes?
a. / rect / c. / altb. / coords / d. / href
ANS:APTS:1REF:HTML 75
54.The shape attribute of the <area> tag can take any of the following values, except ____.
a. / circle / c. / triangleb. / poly / d. / rect
ANS:CPTS:1REF:HTML 75
55.Coordinates of the ____ corners of a rectangle determine the values of the coords attribute.
a. / upper-left and lower-left / c. / upper-left and lower-rightb. / lower-left and upper-right / d. / lower-left and lower-right
ANS:CPTS:1REF:HTML 76
56.There are ____ values used for the coords attribute of a circle shape.
a. / two / c. / fourb. / three / d. / one
ANS:BPTS:1REF:HTML 76
57.If the shape attribute is “poly” and the shape contains seven corners, how many values are needed for the coords attribute?
a. / 7 / c. / 14b. / 8 / d. / 16
ANS:CPTS:1REF:HTML 76
58.Coords values should be enlosed in ____ and separated by ____.
a. / quotes, semicolons / c. / brackets, commasb. / brackets, semicolons / d. / quotes, commas
ANS:DPTS:1REF:HTML 76
59.The assumption that an XHTML file that contains a link and its target file are stored in the same folder is called ____.
a. / absolute file addressing / c. / root file addressingb. / relative file addressing / d. / Web file addressing
ANS:BPTS:1REF:HTML 77
60.A(n) ____ file address specifies the entire directory path to a linked file.
a. / relative / c. / absoluteb. / referential / d. / dynamic
ANS:CPTS:1REF:HTML 77
61.For better management of a large Web site it is recommended not to put all files in the ____ folder.
a. / parent / c. / rootb. / child / d. / sibling
ANS:CPTS:1REF:HTML 77
62.A(n) ____ folder is a folder that is at least one level higher in the dirctory structure than another folder.
a. / ancestor / c. / parentb. / predecessor / d. / antecedent
ANS:CPTS:1REF:HTML 77
63.If two folders are on the same level, they are referred to as ____ folders.
a. / related / c. / siblingb. / matching / d. / none of the above
ANS:CPTS:1REF:HTML 77
64.Each folder in a directory structure can contain ____.
a. / other folders / c. / only foldersb. / files / d. / both a and b
ANS:DPTS:1REF:HTML 78
65.Which of the following is correct for the accompanying figure?
a. / Cities and Towns are sibling foldersb. / Cities is a child folder and Towns is a parent folder
c. / Cities and Towns are not related folders
d. / Cities is a parent folder and Towns is a child folder
ANS:DPTS:1REF:HTML 78
66.According to the accompanying figure, which of the following is the correct code to place within the miami.htm page to link to the seaside.htm page?
a. / <a href=”Cities/Towns/seaside.htm”> Where to Eat in the Seaside </a>b. / <a href=”Towns/seaside.htm”> Where to Eat in the Seaside </a>
c. / <a href=”Cities/seaside.htm”> Where to Eat in the Seaside </a>
d. / none of the above
ANS:BPTS:1REF:HTML 79
67.To link to a file that is in a folder one level above the current folder, the ____ notation is used, followed by the path to the file.
a. / /.. / c. / ../b. / ..\ / d. / ../../
ANS:CPTS:1REF:HTML 79
68.PDF is an acronym for ____.
a. / Printable Document Format / c. / Publisher Document Formatb. / Portable Document Format / d. / Portable Discriptive Format
ANS:BPTS:1REF:HTML 82
69.The ____ attribute was used to establish a default window where a Web page would open when the user clicks a link.
a. / window / c. / destinationb. / target / d. / frame
ANS:BPTS:1REF:HTML 82
70.The ____ protocol is responsible for opening e-mail processing software when a link is clicked.
a. / http / c. / mailtob. / e-mail / d. / ftp
ANS:CPTS:1REF:HTML 83
Case-Based Critical Thinking Questions
Case 2-1
Zhanna was working on a short presentation on the technologies that make the World Wide Web work. She had several questions and asked her friend Kyra to help her.
71.Kyra tells Zhanna the popularity that the World Wide Web enjoys today is due largely to its ____.
a. / ability to send and receive packets of informationb. / ability to view information in a nonlinear manner
c. / ability to refer to Web sites by an IP address
d. / ability to obtain any information in the world
ANS:BPTS:1REF:HTML 56TOP:Critical Thinking
72.Which of the following does Kyra tell Zhanna makes it possible to establish standards for communications within the World Wide Web?
a. / suffixes / c. / protocolsb. / servers / d. / links
ANS:CPTS:1REF:HTML 56TOP:Critical Thinking
73.Zhanna has heard of the TCP/IP protocols, but is uncertain what they do. Kyra explains that ____ moves packets of information from one computer to another.
a. / TCP / c. / HTTPb. / IP / d. / Any of the above
ANS:BPTS:1REF:HTML 56TOP:Critical Thinking
74.Zhanna had heard the term top-level domain name, but Kyra tells her that another name for that term is ____.
a. / client key / c. / suffixb. / service / d. / company name
ANS:CPTS:1REF:HTML 56TOP:Critical Thinking
75.Zhanna is under the impression that a link in a Web page cannot be used for sending e-mail - it can only be sent using Microsoft Outlook or other e-mail software. Kyra tells her that the ____ protocol can be used to do this.
a. / mail / c. / emailtob. / mailto / d. / sendmail
ANS:BPTS:1REF:HTML 57TOP:Critical Thinking
Case-Based Critical Thinking Questions
Case 2-2
Max recently came back from Australia, where he developed a Web site about Australian animals. He used the following image to create the code for an image map, shown below the picture. When he tested the code in a browser, he discovered that the code does not work properly. He asked his brother Ethan to help him fix the code. Ethan asked him several questions in order to help him. (Note: the image size is 420 x 280 pixels).
<p<map id="Australia" imagename="Australia">
<area shape="rect" coords="20, 20, 230, 160" href="parrots.htm" alt="Australian Parrots" title="Australian Parrots Page" />
<area shape="rect" coords="100, 20, 440, 160" href="penguins.htm" alt="Australian Penguins" title="Australian Penguins" />
<area shape="poly" coords="20, 160, 230, 300" href="kangaroos.htm" alt="Australian Kangaroos"
title="Australian Kangaroos" />
<area shape="rect" coords="230, 160, 440, 300" href="koalas.htm" alt="Australian Koalas"
title="Australian Koalas" />
</p>
76.Ethan tells Max he can identify ____ errors in the code.
a. / 3 / c. / 5b. / 4 / d. / 6
ANS:BPTS:1REF:HTML 73|HTML 77
TOP:Critical Thinking
77.What tag(s) is(are) missing in the code?
a. / <a</a> / c. / </map>b. / <imagemap> / d. / <br />
ANS:CPTS:1REF:HTML 73|HTML 77
TOP:Critical Thinking
78.Ethan discovered that the values for one of the four coords attributes are incorrect, so the areas of the image are overlapped. Which one needs to be corrected?
a. / 20, 20, 230, 160 / c. / 20, 160, 230, 300b. / 100, 20, 440, 160 / d. / 230, 160, 440, 300
ANS:BPTS:1REF:HTML 73|HTML 77
TOP:Critical Thinking
79.The area for Australian Kangaroos is set wrong. How can it be fixed?
a. / change shape attribute value to rectb. / change shape attribute value to square
c. / change coords attribute values to 20, 160, 230, 160, 230, 300, 20, 300
d. / either a or c
ANS:DPTS:1REF:HTML 73|HTML 77
TOP:Critical Thinking
80.Which of the attribute names used in the code above is invalid?
a. / shape / c. / imagenameb. / href / d. / alt
ANS:CPTS:1REF:HTML 73|HTML 77
TOP:Critical Thinking
TRUE/FALSE
1.By default, text links are red.
ANS:FPTS:1REF:HTML 56
2.TCP is an acronym for Transfer Control Protocol.
ANS:FPTS:1REF:HTML 56
3.Internet addresses are composed of a series of four numbers separated by periods.
ANS:TPTS:1REF:HTML 56
4.A top-level domain name is also called a suffix.
ANS:TPTS:1REF:HTML 56
5.The Uniform Resource Locator in the accompanying figure is an address at the wishtree Web site.
ANS:TPTS:1REF:HTML 56
6.Index.htm in the accompanying figure is the path to the folder on the server.
ANS:FPTS:1REF:HTML 57
7.You can establish a link to another Web site, but not to an internal page of that site.
ANS:FPTS:1REF:HTML 57
8.An image can be divided into several areas and each of these areas can serve as a different link.
ANS:TPTS:1REF:HTML 57
9.The anchor element is an inline element.
ANS:TPTS:1REF:HTML 62
10.The title attribute of the anchor tag is optional.
ANS:TPTS:1REF:HTML 64
11.Not just any image can be used as an image map.
ANS:FPTS:1REF:HTML 73
12.The areas of an image map designated to be used as links are called linkspots.
ANS:FPTS:1REF:HTML 73
13.Height and width attributes are used to create a rectangle area for an image map.
ANS:FPTS:1REF:HTML 76
14.An absolute file address specifies the entire directory path to a linked file.
ANS:TPTS:1REF:HTML 77
15.The root directory cannot contain child folders.
ANS:FPTS:1REF:HTML 77
16.In the accompanying figure, Towns is a child folder of Cities.
ANS:TPTS:1REF:HTML 78
17.The notation (../) is used to move to the folder one level below the current folder.
ANS:FPTS:1REF:HTML 79
18.PDF is a file format created by Microsoft to view and exchange documents.
ANS:FPTS:1REF:HTML 82
19.Links can be established only to XHTML files.
ANS:FPTS:1REF:HTML 83
20.An e-mail harvester is software that collects e-mail addresses to send spam.
ANS:TPTS:1REF:HTML 83|HTML 84
MODIFIED TRUE/FALSE
1.HTTP is the protocol used to transfer files to or from a server. ______
ANS:F
FTP
File Transfer Protocol
FTP (File Transfer Protocol)
File Transfer Protocol (FTP)
PTS:1REF:HTML 57
2.The bottom of the first screen of a Web page is called the pagebottom. ______
ANS:F, fold
PTS:1REF:HTML 61
3.A(n) anchor element is used for links. ______
ANS:TPTS:1REF:HTML 62
4.The page that appears when the user clicks a link is called the target page. ______
ANS:TPTS:1REF:HTML 64
5.The title element is used to create a ScreenTip for links. ______
ANS:F, attribute
PTS:1REF:HTML 64
6.It is common to include several links within the list item tags of a(n) ordered list. ______