Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
1.
|
What
is the purpose of an HTML attribute? a. | define the type of HTML version used in the HTML
document | b. | define desired behaviour or indicate additional element
properties | c. | make the HTML tag unique within the HTML
document | d. | allows the browser to sort the HTML tags alphabetically if
needed | | |
|
|
2.
|
Which
statement regarding HTML is false?
a. | HTML content can be created by a web server before that content
is sent to the browser. | b. | HTML is human-readable text. | c. | HTML is designed
to work on any browser and operating system. | d. | HTML elements
must be defined in alphabetic order or the browser will not display the
content. | e. | HTML elements define the structure of the content rather than
its presentation. | | |
|
|
3.
|
What
is a hyperlink? a. | A reference to a
specific part of a web page. | b. | The name of the web server. | c. | The text part of
any internet resource. | d. | The browsers interface. | | |
|
|
4.
|
What
does the acronym HTML represent? a. | Handy Technical Monitor Language | b. | High Tech
Manipulation Language | c. | Hypertext Markup Language | d. | Hypertext Market
Language | | |
|
|
5.
|
The
correct order of document structure in an HTML document is: a. | <start>
</start>
<end>
</end>
| b. | <head>
</head>
<tail>
</tail>
| c. | <html>
<head>
</head>
<body>
</body>
</html>
| d. | <html>
<title>
</title>
<head>
</head>
<body>
</body>
</html> | | |
|
|
6.
|
The
HTML file looks like this (spaces as shown):
<!doctype html>
<html>
<head>
<title>Test </title> </head>
<body> Sometimes the
sun
shines
brightly.
</body>
</html>
How does the
browser show this content?
a. | Sometimes the sun
shines brightly.
| b. | Sometimes the sun shines
brightly.
| c. | Sometimes
the sun
shines
brightly.
| d. | Sometimes the sun
shines
brightly. | | |
|
|
7.
|
HTML
tags are enclosed using the ____ symbols. a. | curly brace | b. | square
bracket | c. | parenthesis | d. | angle
bracket | | |
|
|
8.
|
The
process of assembling and formatting an HTML document by the web browser is called
__. a. | rendering | b. | defining | c. | texting | d. | collecting | | |
|
|
9.
|
Which
part of the HTML document serves as the container of the HTML content? a. | <head>
element | b. | <body> element | c. | <title>
element | d. | <html>
element | | |
|
|
10.
|
Which
HTML element would not be defined in the <head>
element?
a. | <meta> | b. | <title> | c. | <style> | d. | <br> | | |
|
|
11.
|
Which
one of the following HTML examples demonstrates the correct syntax for specifying an attribute within
an HTML element?
a. | <tagname>
<attribute=value> | b. | <tagname attribute=
value> | c. | <tagname attribute : value
> | d. | <tagname attribute, value > | | |
|
|
12.
|
The
governing body which oversees the development of the HTML standard is __.
|
|
13.
|
A
paragraph of text can be displayed in HTML using which tag? a. | <par> The
paragraph goes here...</par> | b. | <para> The paragraph goes here...</para> | c. | <paragraph> The paragraph goes here...</paragraph> | d. | <p> The paragraph goes here...</p> | | |
|
|
14.
|
What
is the name of the organization which oversees the development of many internet technologies such as
HTML? a. | IETF | b. | ISOC | c. | W3C | d. | Microsoft | | |
|
|
15.
|
Which
HTML element provides additional information about the HTML document to the browser? a. | <meta name="author" content="John
Smith"> | b. | <p>This is the start of my
story.</p> | c. | <table> ... </table> | d. | <info
start="page"> | | |
|
|
16.
|
Which
HTML element forces the next element onto a new line? a. | <img> | b. | <br> | c. | <span> | d. | <b> | | |
|
|
17.
|
Which
HTML element does not force a new line? a. | <a> | b. | <span> | c. | <img> | d. | <dl> | | |
|
|
18.
|
Which
HTML element correctly defines a hypertext reference for the text Main to the file index.html ? a. | <link
href="index.html">Main</link> | b. | <a
href="index.html">Main</a> | c. | <a
ref="index.html">Main</a> | d. | <href="index.html">Main</href> | | |
|
|
19.
|
Which
HTML element correctly defines a hypertext reference for the text "summary" to the file
summary.html,
which is in the parent folder?
a. | <anchor
href="summary.html">summary</link> | b. | <a
href="summary.html">summary</a> | c. | <a
href="../summary.html">summary</a> | d. | <href="summary.html">summary</href> | | |
|
|
20.
|
What
is the purpose of this HTML element:
<a
href="../report.html">View report</a>
? a. | Provide a hypertext link to the file "View report" found in
the folder report.html. | b. | Provide a hypertext link to the file report.html which is in the
current folder. | c. | Provide a hypertext link to the file report.html which is located in
the parent folder. | d. | Provide a hypertext link to the file /report.html which is located in
the folder named .. | | |
|
|
21.
|
What
is the purpose of this HTML element:
<a
href="admin/report.html">View report</a>
? a. | Provide a hypertext link to the file report.html found in the folder
named admin. | b. | Provide a hypertext link to the file report.html which is in the
current folder. | c. | Provide a hypertext link to the file report.html which is located in
the parent folder named admin. | d. | Provide a hypertext link to the file /report.html which is located in
the folder named admin. | | |
|
|
22.
|
What
is the purpose of the title attribute?
<a
href="report.html" title="Show the report information">View report</a>
a. | The title attribute updates the browser title tab with new
text. | b. | The title attribute causes the browser to speak the title
information. | c. | The title attribute creates a second back-up link for older
browsers. | d. | The title attribute shows a tooltip pop-up bubble to add
information about a link. | | |
|
|
23.
|
When
creating hypertext links within your HTML content, which one of the following would you not
recommend as a proper link text guideline?
a. | Provide information about the link if it is a very large file
or requires a plug-in. | b. | Avoid making entire sentences or paragraphs as hypertext
links. | c. | Provide the title attribute in the hypertext
definition. | d. | Define the link as a <meta> element in the
<head> section. | | |
|
|
24.
|
What
is the correct HTML to define the image robin.png as a hypertext link to the file robin.html ? a. | <a
href="robin.png" alt="robin picture">
<img
src="robin.html"></a> | b. | <a href="robin.html" alt="robin
picture">
<img
src="robin.png"></a> | c. | <img src="robin.png">
<a
href="robin.html" alt="robin picture"></a> | d. | <a href="robin.html" alt="robin
picture"></a>
<img
src="robin.png"> | | |
|
|
25.
|
Some
characters should not be used in file names. Which character is ok to use in a file
name? a. | underscore (_) | b. | asterisk (*) | c. | question mark (?) | d. | forward slash (/) | | |
|
|
26.
|
What
HTML entity will show a less than character < ? a. | > | b. | < | c. | &less; | d. | & | | |
|
|
27.
|
What
character does this HTML entity represent & ?
|
|
28.
|
Which
DOCTYPE declaration is required for an HTML 5 document?
a. | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
| b. | <!DOCTYPE html>
| c. | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
//EN"
"http://www.w3.org/TR/html4/strict.dtd">
| d. | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict
//EN"
"http://www.w3.org/TR/xhtml1/xhtml1-strict.dtd">
| | |
|
|
29.
|
Which
HTML 5 element is a self-contained portion of text such as a forum post, a magazine or newspaper
article, a blog entry, or a user-submitted comment? a. | <nav> | b. | <header> | c. | <article> | d. | <text> | | |
|
|
30.
|
What
is the purpose of the HTML 5 element <nav> ? a. | It shows the
header and footer elements in the browser window. | b. | It represents a
section of a page that links to other pages. | c. | It represents content that is tangentially related to the main
topic. | d. | It is used in
forms to help manage user input. | | |
|
|
31.
|
Which
HTML element is similar to a paragraph but is used to visually block up related text or image content
on the page. a. | <h1> | b. | <a> | c. | <div> | d. | <header> | | |
|
|
32.
|
Which
HTML element correctly defines a table having two rows but the top row has one cell and the lower row
has two cells? Each cell has a single period within it. a. | <table>
<tr>
<td> . </td>
<td> . </td>
</tr>
<tr>
<td colspan="2"> .
</td>
</tr>
</table>
| b. | <table>
<tr>
<td rowspan="2"> . </td>
<td> . </td>
</tr>
<tr>
<td> . </td>
</tr>
</table>
| c. | <table>
<tr>
<td> . </td>
</tr>
<tr>
<td> . </td>
<td> . </td>
</tr>
</table>
| d. | <table>
<tr>
<td colspan="2"> .
</td>
</tr>
<tr>
<td> . </td>
<td> . </td>
</tr>
</table> | | |
|
|
33.
|
Which
HTML element correctly defines this table structure layout?
a. | <table border="1">
<tr>
<td> A
</td>
<td> B </td>
</tr>
<tr>
<td colspan="2"> C
</td>
</tr>
</table>
| b. | <table
border="1">
<tr>
<td rowspan="2"> A </td>
<td> B </td>
</tr>
<tr>
<td> C </td>
</tr>
</table>
| c. | <table border="1">
<tr>
<td> A </td>
</tr>
<tr>
<td> B </td>
<td> C </td>
</tr>
</table>
| d. | <table border="1">
<tr>
<td colspan="2"> A
</td>
</tr>
<tr>
<td> B </td>
<td> C </td>
</tr>
</table> | | |
|
|
34.
|
Which
HTML element correctly defines this table structure layout?
a. | <table
border="1">
<tr>
<td> BC </td>
<td> AB </td>
<td> SK </td>
</tr>
<tr>
<td rowspan="3">
US </td>
</tr>
</table>
| b. | <table
border="1">
<tr>
<td colspan="3"> BC </td>
<td colspan="3">
AB </td>
<td colspan="3"> SK </td>
</tr>
<tr>
<td> US </td>
</tr>
</table>
| c. | <table border="1">
<tr>
<td> BC </td>
<td> AB </td>
<td> SK </td>
</tr>
<tr>
<td colspan="2">
US </td>
</tr>
</table>
| d. | <table
border="1">
<tr>
<td> BC </td>
<td> AB </td>
<td> SK </td>
</tr>
<tr>
<td colspan="3">
US </td>
</tr>
</table> | | |
|
|
35.
|
Which
HTML element correctly defines this list structure ?
iaardvark
ibeaver
icivet
a. | <ol>
<li>
aardvark </li>
<li>
beaver </li>
<li>
civet </li>
</ol>
| b. | <ul>
<li> aardvark </li>
<li> beaver
</li>
<li>
civet </li>
</ul>
| c. | <list>
<li> aardvark </li>
<li> beaver
</li>
<li>
civet </li>
</list>
| d. | <dl>
<dt> aardvark </dt>
<dt> beaver
</dt>
<dt>
civet </dt>
</dl> | | |
|
|
36.
|
Which
HTML element correctly defines this list structure ?
1. Hamlet
2.
Macbeth
3. Othello
a. | <dl>
<li>
Hamlet </li>
<li> Macbeth
</li>
<li>
Othello </li>
</dl>
| b. | <ul>
<li>
Hamlet </li>
<li> Macbeth
</li>
<li>
Othello </li>
</ul>
| c. | <list>
<li> Hamlet
</li>
<li>
Macbeth </li>
<li>
Othello </li>
</list>
| d. | <ol>
<li>
Hamlet </li>
<li> Macbeth
</li>
<li>
Othello </li>
</ol> | | |
|
|
37.
|
Which
HTML element correctly defines this list structure ?
asset
An economic resource
that is expected to be of benefit in the future.
gain
Excess of revenues received over
costs relating to a transaction.
a. | <p>
<dt>
asset </dt>
<dd> An economic
resource that is expected to be of benefit in the future. </dd>
<dt> gain
</dt>
<dd>
Excess of revenues received over costs relating to a transaction. </dd>
</p>
| b. | <dt>
<dl>
asset </dl>
<dd> An economic
resource that is expected to be of benefit in the future. </dd>
<dl> gain
</dl>
<dd>
Excess of revenues received over costs relating to a transaction. </dd>
</dt>
| c. | <dl>
<dt> asset
</dt>
<dd>
An
economic resource that is expected to be of benefit in the future.
</dd>
<dt>
gain </dt>
<dd> Excess of
revenues received over costs relating to a transaction. </dd>
</dl>
| d. | <dl>
<li>
asset </li>
<dd> An economic
resource that is expected to be of benefit in the future. </dd>
<li> gain
</li>
<dd>
Excess of revenues received over costs relating to a transaction. </dd>
</dl> | | |
|
|
38.
|
Which
HTML element correctly defines an image ?
a. | <img
src="bird.png" alt="this is my budgie"> | b. | <img scr="bird.png" alt="this is my
budgie"> | c. | <img
pic="bird.png" alt="this is my budgie"> | d. | <img "bird.png" alt="this is my
budgie"> | | |
|
|
39.
|
Which
HTML element correctly defines an imagemap using rectangle hotspots ?
a. | <img src="canada.png"
usemap="#mymap">
<map name="mymap">
<area shape="circle"
coords="1,1,10" href="first.html"
<area shape="circle"
coords="11,20,20" href="second.html"
</map> | b. | <img src="canada.png"
usemap="#mymap">
<map name="mymap">
<area shape="box"
coords="1,1,10,10" href="first.html"
<area shape="box"
coords="11,11,20,20" href="second.html"
</map> | c. | <img
src="canada.png" usemap="#mymap">
<map
name="mymap">
<area
shape="default" href="first.html"
<area shape="default"
href="second.html"
</map> | d. | <img
src="canada.png" usemap="#mymap">
<map
name="mymap">
<area
shape="rect" coords="1,1,10,10" href="first.html"
<area shape="rect"
coords="11,11,20,20" href="second.html"
</map> | | |
|
|
40.
|
Which
HTML element is used for non HTML content like a Java applet or an ActiveX file?
a. | <microsoft> | b. | <object> | c. | <content> | d. | <nonHTML> | | |
|