CITW 160 Exam 2 Name 35 Points Multiple Choice For each of the

advertisement
CITW 160 Exam 2
Name __________________________
35 Points
Multiple Choice
For each of the following questions, circle the letter of the answer that best answers the
question. Each correct answer is worth 1 pt. (14 points for this section)
1. Which is correctly written to emphasize the text below?
a. </em>Semester break is Almost Here!<em>
b. <em> Semester break is Almost Here!<em>
c. <em> Semester break is Almost Here!</em>
d. <em> Semester break is Almost Here!<em/>
2. Which is the correct line break tag?
a. <br>
b. <bk>
c. <brk>
d. <b>
3. Which tag is used to create anchors for links to another pages.
a. <ul>
b. <ol>
c. <a>
d. <an>
4. URL stands for:
a. Uniform Resource Locator
b. Universal Resource Locator
c. Universal Reference Language
d. Both a and b
e. None of the above
5. The <title> tag usually shows up at the very top of the browser window in the:
a. File menu item
b. Next to the Back button
c. Title Bar
d. Address bar
Page 1 of 8
CITW 160 Exam 2
Name __________________________
35 Points
6. The <meta> tag is usually placed:
a. After the <body> tag
b. Somewhere inside the <head> tag
c. In-between the <title> tags
d. Just above the </html> tag
7. Which of the following code would add an external CSS file to a web page:
a. <link rel=”stylesheet” href=”styles.css” type=”text/css”>
b. <meta href=”styles.css”>
c. <body href=”styles.css”>
d. <link stylesheet src=”styles.css”>
8. Given the following CSS code:
body
{
background-color: blue;
}
What is the value for the above code?
a. body
b. blue
c. background-color:
d. b and c
e. none of the above
9. Given the following CSS code,
body
{
color: #FF8500;
}
What is #FF8500 in the above code?
a. attribute
b. value
c. tag
d. color
e. All the above
f. a, b, and d
g. b and d
Page 2 of 8
CITW 160 Exam 2
Name __________________________
35 Points
10. Which of these tags are all <table> tags?
a. <thead><tcol><trow>
b. <table><tr><tt>
c. <table><tr><td>
d. <table><data><row>
11. In an HTML table, a heading tag (<th>) displays text as bold and _____.
a. left-aligned
b. center-aligned
c. right-aligned
d. justified
12. Which of the following image formats supports more colors and resolutions than the
other formats listed.
a. JPG
b. BMP
c. GIF
d. TIFF
13. The textarea tag (i.e. <textarea> ) has two primary attributes, namely:
a. size and width
b. size and maxlength
c. rows and cols
d. select and option
14. Using the following sentence (including formatting) from the comic strip Calvin &
Hobbes:
It's not denial. I'm just selective about what I accept.
Which of the following is correct (underline or circle)?
a. <i>It's not denial. I'm just <b>selective</i> about what I accept..</b>
b. <b>It's not denial. I'm just <i>selective</i> about what I accept..</b>
c. <i><b>It's not denial. I'm just selective about what I accept..</b></i>
d. <b>It's not denial. I'm just selective about what I accept..</b>
Page 3 of 8
CITW 160 Exam 2
Name __________________________
35 Points
True or False
For each statement, circle True or False. Each answer is worth ½ pt. (6 points this section)
True
False
15. The default file name for the main page where browsers look first is
named home.htm or home.html.
True
False
16. Spaces should not be used in the file name of your web pages.
True
False
17. An external link href attribute looks like this: <a
href=”www.lcc.edu”>.
True
False
18. Accessibility checks are an important part of testing a site because
they help ensure the site's graphics, layout, navigation, forms, and other
functions are viewable and accessible to a broader user base,
particularly individuals with specific disabilities.
True
False
19. An ordered list begins with the <ul> tag and ends with the </ul> tag.
True
False
20. Coding a table width as 80% means the table will fill 80% of the
element that contains it.
True
False
21. HTML code is not case-sensitive, meaning <body> is the same as
<bOdY>
True
False
22. Hyperlinks can only be text; they cannot be icons, shapes, or other
graphics.
True
False
23. All items added in the <head> section of a web page are visible in a
web browser except the contents of the <title> tag.
True
False
24. A good label for a hyperlink is "click here."
True
False
25. In an HTML form, a password input control will always display
bullets (i.e., dots) as data is entered into it.
True
False
26. Cascading Style Sheets are an official W3C specification that defines
the presentation of a web page.
Page 4 of 8
CITW 160 Exam 2
Name __________________________
35 Points
The following HTML Page showing HTML structure with the corresponding CSS Page
showing CSS presentation would render a web page that looks similar to the following
image – if the blanks were properly filled-in.
For each blank line (_______) on the next HTML Page, while considering the CSS Page, please
write the correct tag, attribute, id, class, or element that is missing.
Page 5 of 8
CITW 160 Exam 2
Name __________________________
35 Points
HTML Page:
Each correctly filled-in blank line is worth 1 pt. (11 points for this section)
<!doctype html>
<html lang="en-us">
<_______>
<meta charset="utf-8">
<title>Exam 2 Web Page</_______>
<meta name="keywords" content="citw160, web design, LCC, graduation" >
<link rel="stylesheet" href="css/styles.css" media="screen">
</head>
<body>
<_______>
<img src="images/lcc-logo.jpg" alt="LCC Logo" class= "_________" >
Developing Pages for the Web
</h1>
<p>
If you are you ready to graduate listen to an important <a _______="graduate.mp3">audio
clip</a>
</p>
<hr >
<h2>
Use this contact form to get in touch with us:
</h2>
<form name=”my_form" method="post" action="mailto:pipperd@lcc.edu">
<p>
<label for="name">Name
<input type="text" id="name" >
</label>
</p>
<p>
<label for="email">Email
<_______ type="text" id="email" >
</label>
</p>
<p>
<label for="message">Message
Page 6 of 8
CITW 160 Exam 2
Name __________________________
35 Points
<_______ id="message" cols="45" rows="5"></textarea>
</label>
</p>
<p>
<input type="reset" value="Reset" >
<input type="______" value="Submit" >
</p>
</_______>
<hr>
<p id="______">
Copyright © 2011 Lansing Community College, MI 4893
</p>
</______>
</html>
CSS Page :
Circle and Identify a SELECTOR, a CLASS and an ID for 1 pt. each (3 points for this section)
body
{
background-color: white;
}
img
{
border: none;
}
.textmiddle
{
vertical-align: middle;
}
h1
{
Page 7 of 8
CITW 160 Exam 2
Name __________________________
35 Points
color: #b8b8b8;;
font-size: 1.2em;
text-align: left;
font-family: Verdana, sans-serif;
}
h2
{
color: #618bb5;
font-size: 1.1em;
font-family: Verdana, sans-serif;
}
p
{
color: #18599b;
font-size: 1em;
font-family: Verdana, sans-serif;
text-align: left;
margin-top: 1em;
margin-bottom: 1em;
}
form p
{
color: black;
}
#footer
{
font-size: 0.8em;
font-family: arial, helvetica, sans-serif;
color: #18599b;
}
Page 8 of 8
Download