Unit 2 Question Bank

This page includes several sample questions that could be used for assessment of students' understanding of the material covered in Unit 2. Questions are organized by module. Questions are coded in fully accessible, standards-compliant HTML and could easily be plugged into an HTML form that students could take online. However, this page itself is not a functional quiz. Use the Options below to display the questions how you need them before printing or copying.

Options

Module 1

Question 1

What is the purpose of your web portfolio?
Correct answer: c. To inform visitors about the skills you are developing

Question 2

Which keyboard symbol is conventionally used to indicate (show) a space between words in file and folder names?
Correct answer: a. _ (underscore)

Question 3

Typically, when a web request includes a path but no filename (e.g., http://uw.edu/accessibility), servers look first for the file named—
Correct answer: d. index.html

Module 2

Question 1

Question 2

Question 3

Which symbols are used to enclose HTML tags?
Correct answer: a. <>

Question 4

The latest version of HTML, and the version taught in this course is—
Correct answer: c. HTML5

Question 5

Which pair of tags marks the start and end of your HTML document?
Correct answer: a. <html></html>

Question 6

Which two elements contain the two main sections of an HTML document?
Correct answer: b. <head> and <body>

Question 7

Which element serves as a container for all the visible content of a page?
Correct answer: d. <body>

Question 8

Which element is used to identify the main heading on a page?
Correct answer: c. <h1>

Question 9

Which element is used to add an image to a page?
Correct answer: d. <img>

Question 10

Which of the following is correct HTML for inserting an image?
Correct answer: b. <img src="image.gif" alt="Short description of image"/>

Question 11

Which container tag is used to contain a block of content?
Correct answer: d. <div></div>

Question 12

What two types of software do you need to create webpages & view them?
Correct answer: b. A text editor and a browser

Question 13

What will be the displayed output of the following code?
<!--Here is some text-->
<h1>Here is a heading</h1>
Correct answer: b. Here is a heading

Question 14

What does HTML stand for?
Correct answer: a. Hypertext Markup Language

Question 15

Should a DOCTYPE declaration be the first thing in an HTML document?
Correct answer: a. Yes, always

Question 16

Which element is used to create a paragraph?
Correct answer: a. <p>

Module 3

Question 1

Question 2

Which of the following elements is displayed by browsers as a list of bulleted items?
Correct answer: a. <ul>

Question 3

Which of the following elements is displayed by browsers as a numbered list?
Correct answer: c. <ol>

Question 4

What file extension is typically associated with HTML files?
Correct answer: c. html

Question 5

Regardless of whether a list is ordered or unordered, the items in an HTML list are marked up with the <li> element.
Correct answer: a. True

Question 6

Which HTML element is the best choice for marking up a website's navigation menu?
Correct answer: c. <ul>

Module 4

Question 1

Question 2

Question 3

When coding a hyperlink, which of the following HTML attributes is used to identify the destination of the link?
Correct answer: a. href

Question 4

Which of the following is the correct HTML for linking to the Smithsonian Insitute (www.si.edu)?
Correct answer: c. <a href="http://www.si.edu/">Smithsonian Institute</a>

Question 5

Which of the following statements about absolute URLs is false?
Correct answer: c. An absolute URL refers only to a portion of the web address, rather than to the full address.

Question 6

Which of the following statements about absolute URLs is false?
Correct answer: c. An absolute URL refers only to a portion of the web address, rather than to the full address.

Question 7

Which of the following statements about relative URLs is false?
Correct answer: a. They give the full address to the target page, starting with "http://".

Question 8

Same-page hyperlinks are useful because they enable keyboard users to skip navigation links and get directly to the main content.
Correct answer: a. True

Question 9

Which of the following HTML attributes must have a unique value (only used once per web page)?
Correct answer: b. id

Module 5

Question 1

Can tables be nested (a table inside of another table)?
Correct answer: a. Yes

Question 2

Which of the following HTML elements are all related to data tables?
Correct answer: a. <table> <tr> <caption>

Question 3

Which of the following HTML elements is for indicating a column or row header in a table?
Correct answer: c. <th>

Question 4

The scope attribute assists screen reader users by—
Correct answer: c. Helping users to understand the relationships between row and column headers and their data cells, even if users can't see the table visually.