WED201c - Full Quizlet
WED201c - Full Quizlet
1. Which of the following returns the hostname A 9. Which is the correct file extension for a web page? D
and port of the current URL?
A .doc
a, Location B .ppt
b, Window C .txt
c, Navigator D .html
d, History
10. How much horizontal space ("width") will this div use? 84
2. To access your cPanel account, you need ... A
div{
A a username and password from your hosting width:50px;
server padding: 10px;
B the username and password for your margin: 5px;
computer border: 2px;}
C the port number for your account
11. How much vertical space ("height") will this div use? 74
3. Using only a default style sheet.. A
div{
A. will typically make your page look worse height:50px;
B. will typically make your page look great padding: 5px 10px;
margin: 5px;
4. The link to the external style sheet should be B
border: 2px;}
in the:
12. How much width will this div occupy? 134
A. <header>
B. <head> div{
C. <div> width:100px;
D. <footer> padding: 10px;
margin: 5px;
5. A default style sheet is used to: A
border: 2px;}
A. Eliminate differences in browser default 13. Which of the following are the advantages of using C
styling JavaScript for form validation?
B. Insert the prefixes needed to support
different browsers A Increase end-user satisfaction
B Conservation of the bandwidth
6. Which property can remove the underline from text-
C. All of the others
links? (Only provide the property name; do not decoration
D. Increased validity of the form submission
give it a value.)
14. width="100" and width="100%" is ? C
7. The property/value pair A
A. WHATWG A. IP address
B. DARPA B. server
C. W3C C. host
D. document
47. A basic functionality of browsers is to translate A
HTML documents into viewable webpages. 57. Which organization is responsible for assigning B
top-level domain names?
A. True
B. False A. Internet Engineering Task Force (IETF)
B. Internet Corporation for Assigned Numbers
48. A single web page may require several iterations A
and Names (ICANN)
of the Request-Response Cycle.
C. World Wide Web Consortium (W3C)
A. True 58. The Request-Response Cycle... C
B. False
A. is an outdated process used by HTML 4.1
49. Which version of HTML introduced semantic tags? A
B. is performed once for each requested page.
C. may require several iterations of the Request-
A. HTML 5
Response Cycle.
B. HTML 2.0
C. HTML 3.2 59. What does LAN stand for? local-
D. HTML 4.01 area
network
50. Which version of HTML included browser specific A
features? 60. What does WAN stand for? Wide
area
A. HTML 3.2 network
B. HTML 5
61. HTML uses _________ to annotate documents. This tags
C. HTML 4.01
is a way of marking up the content to identify
D. HTML 2.0
specific HTML elements.
51. The predecessor of the internet was D
62. HTML5 should not... C
A. Al Gore
A. be device-independent
B. CompuServe
B. use markup instead of scripting where
C. DARPA
appropraite
D. Arpanet
C. take advantage of the most up-to-date
52. URL stands for C plugins.
63. Which of the following best explains the C
A. Universal Relation Locator
difference between syntax and semantics.
B. Unordered Resource Location
C. Uniform Resource Locator
A. Syntax and semantics are interchangeable.
53. (Enter a year) 1996 B. A browser may have trouble displaying a page
CSS1 was introduced for public use in if the semantics is incorrect.
C. A browser may have trouble displaying a page
54. The first graphical browser was.... (please use one Mosaic
if the syntax is incorrect.
word answer)
64. What are proprietary tags? B 73. Which of these tags breaks the tenet of the B
separation of content and layout?
A. Tags used to define ownership of the
content A. center
B. Tags that work only on certain browsers B. br
C. Tags that displayed copyright information C. p
65. Which of these tags breaks the tenet of the C 74. W3C stands for ________. C
separation of content and layout?
A) World Wide Web Consult
A. body B) World Wide Web Contract
B. h1 C) World Wide Web Consortium
C. font D) Wide World Web Consortium
66. Which of the following are browsers? A 75. Which version of HTML introduced different D
document types?
A. Chrome, Firefox, Safari
B. Firefox, Windows, Chrome A. HTML 2.0
C. Safari, Mac, Sublime, Chrome B. HTML 3.2
C. HTML5
67. Which of the following is an example of a A
D. HTML 4.01
top-level domain?
76. _____________ is used to create rules about the color, CSS
A, .biz font, and layout of our pages
B, umich.edu
77. Semantics is A
C, mysite
68. What does HTML stand for? Hyper Text A. the practice of giving content on the page
Markup meaning and structure by using proper element
Language
B. the set of rules that defines the combinations of
69. Which of the following is part of a URL? A
symbols that are considered to be a correctly
structured document or fragment in that language
A. domain (or host ), protocol
B. protocol and doctype
C. circular
C. heading
78. Semantic code describes the ___ of content on a B
70. What is the Request/Response Cycle? B
page, regardless of the style or appearance of that
content.
A. The process that happens when a HTML5 is
created with an editor
A. number
B. The process that happens when a client
B. value
requests a page and a server responds with
C. language
the appropriate files
C. The process that happens when a server 79. The # symbol specifies that the selector is a/an B
requests a page and a client responds with
the appropriate files A. tag
B. id
71. A ________________________ is a computer that is in server
C. first
charge of handling resource requests from
D. class
multiple computers.
80. Using tags that have semantic meaning A
72. The original developers of HTML were A
opposed to the addition of tags for graphical
A. increases accessibility and improve search engine
images.
optimization
B. increases search engine optimization
A. True
C. breaks the separation between content and
B. False
layout
81. Using the header and footer tags can improve the A 90. Which of the following are valid tags for HTML5 B
search engine optimization for your page. headings?
A. True A. <heading>..</heading>
B. False B. <h5>..</h5>
C. <h9>..</h9>
82. Every well-formed HTML document should include: A
D. <h7>..</h7>
A. doctype, head, body 91. Which set of element tags is used to create the highest C
B. doctype, header, body level heading?
C. header, nav, footer
D. alt text A. <h9>..</h9>
B. <h6>...</h6>
83. What is wrong with the following code? C
C. <h1>...</h1>
D. <header>..</header>
<a href = "picture.jpg">My dog</a> chews socks.
92. All of the content you wish to appear on the screen D
A. You can not have text after the closing </a> tag. should be in which tag?
B. The alt text attributes is missing from the tag.
C. This code is semantically and syntactically correct. A. <main>
D. The link in the href must have a full URL B. <html>
C. <content>
84. Block-level elements begin on a new line A
D. <body>
A. True 93. Which tag is used to create a link? C
B. False
A. <link>
85. Inline-level elements begin on a new link B
B. <hyper>
C. <a>
A. True
D. <anchor>
B. False
94. Which tag is used to let the browser know that it is A
86. A <div> block is an inline-level element B
about to see JavaScript code?
A. True
A. script
B. False
B. head
87. A <span> block is an inline-level element A C. js
95. Which of the following code is the correct way to link B
A. True
to an email address?
B. False
88. Which tag represents a line break (new line)? B A. <a href= "[email protected]?
subject=Hi&body=How are you">Email</a>
A. <break>
B. <br> B. <a href= "[email protected]?
C. <line> subject=Hi&body=How%20are%20you">Email</a>
D. <lb>
89. Which of the following is the correct way to comment C C. <a href= "[email protected]?
on HTML5? subject=Hi&body=How%are%you">Email</a>
C.
<ul>
<li>Vegetables</li>
<li>Fruit
<ol>
<li>Blueberries</li>
<li>Bananas</li>
</ol>
</li>
</ul>
D.
<ol>
<li>Vegetables</li>
<li>Fruit>/li>
<ul>
<li>Blueberries</li>
<li>Bananas</li>
</ul>
</ol>
100. The <ul> and <ol> elements may contain only <li> A 108. What are the elements to help organize the data and C
elements. structure of a table?
A. .highlight:hover{color:green;}
A. Use a hexadecimal value
B. p.highlight:hover{color:green;}
B. Use the color name
C. p:hover > highlight{color:green;}
C. Use an rgb value
D. p:hover > highlight{color:green;}
D. All of these options are valid.
122. Assume the following rule is the only one that styles A
117. If your body tag uses the style attribute style="text- B
the body element:body{font-family: Cursive,
align:center", you can overwrite that property by using
Helvetica, Verdana;}What happens if the browser
the CSS3 rule.
doesn't support any of these font families?
body{
A. The text will be displayed in the default browser
text-align: left;
font-family
}
B. The text will not be displayed
C. The text will be displayed in Cursive
A. True
B. False 123. The browser defaults override rules specified in an B
external style sheets.
118. What is wrong with the following code? A
A. True
body{
B. False
color: #000000;
background-color:#FFFFFF
font-family: Times, Arial, Cursive;
}
A. ++
B. --
C. ==
D. +=
E. =+
154. What value is returned by 9 % 5? 4 162. The mobile version of your web page should have B
the same layout of every other version of your site.
155. What is the difference between == and === ? B
A. True
A. The == operator is the assignment operator, while
B. False
=== is the equality operator.
B. The == operator only checks for equivalent values, 163. Which fluid measurement type returns a percentage vw
not equivalent type too. of the viewport width?
C. The === operator only checks for equivalent values,
164. Which fluid measurement type returns a percentage vh
not equivalent type too.
of the viewport height?
156. What is the logical operator for OR? ||
165. 1 _____ = 1% of viewport height vh
157. Which of the following is NOT a fluid measurement A
166. The fluid measurement % can only be used on non- B
textual elements
A. px
B. %
A. True
C. rem
B. False
D. em
167. Responsive sites can have a mixture of fluid and A
158. Responsive Web Design is... C
absolute measurements.
A. meta
A. True
B. breakpoint
B. True
C. wireframe
D. media-query size 191. Which snippet of CSS is commonly used to center an C
element horizontally?
184. Wireframes should... C
A. site-align: center;
A. specify the layout of your pages
B. margin: auto 0;
B. specify the layout, color, and content of your pages
C. margin: 0 auto;
C. specify the layout and content of your pages
D. margin: center;
185. A key component of your wireframes should test A
192. True or False, Boostrap is mobile-first A
A. interaction
A. True
B. color schemes
B. True
C. code syntax
193. A standard navigation pill is created with: D
186. Give an example screen width size for a mobile phone A
using pixels. (Just provide a number, and not the px!!!)
A.
<ul class="nav pills">
-480
B.
<nav class="nav nav-pills">
A. True
C
B. False
<ul class="nav-pills">
187. Give an example screen width size for a mobile phone B D
using pixels. (Just provide a number, and not the px!!!) <ul class="nav nav-pills">
194. True or False, the Bootstrap grid system works across A
-250
multiple devices.
A. True
A. True
B. False
B. True
195. Which of the following bootstrap classes are used to D 200. Consider the following code using Bootstrap 3: C
create a justified tabs navigation? (Reminder, "justified" <div class = "col-sm-2 col-lg-4">
means that they grow/shrink to take up the full width
of the screen.) In an xs viewport the div will be _____ columns wide.
A. <ul class="nav nav-pills dropdown"> In an lg viewport the div will be _____ columns wide.
B. <nav class="dropdown-menu">
C. <ul class="dropdown-menu"> A. 3
B. 4
197. Consider the following code using Bootstrap 3: C
C. 12
D. None
<div class = "col-md-3 col-lg-7">
202. Consider the following code using Bootstrap 3: B
In an xs viewport the div will be _____ columns wide.
<div class = "col-sm-6 col-lg-4">
A. 3
B. 7 In a sm viewport the div will be _____ columns wide.
C. 12
D. None A. 4
B. 6
198. Consider the following code using Bootstrap 3: C
C. 12
D. None
<div class = "col-md-3 col-lg-7">
203. Consider the following code using Bootstrap 3: B
In a sm viewport the div will be _____ columns wide.
<div class = "col-sm-8 col-lg-4">
A. 3 In a md viewport the div will be _____ columns wide.
B. 7
C. 12 A. 4
D. None B. 8
C. 12
199. Consider the following code using Bootstrap 3: A
D. None
<div class = "col-md-3 col-lg-7"> 204. Consider the following code using Bootstrap 3: A
In a md viewport the div will be _____ columns wide. <div class = "col-lg-2 col-sm-5">
In a lg viewport the div will be _____ columns wide.
A. 3
B. 7 A. 2
C. 12 B. 5
D. None C. 12
D. None
205. Consider the following code using Bootstrap 3: C 212. This may seem like an odd question, but I am going to A
ask you what the URL is for the Bootstrap 3 website.
<div class = "col-md-5 col-lg-2"> - getbootstrap.com
In a sm viewport the div will be _____ columns wide.
A. True
A. 2 B. False
B. 5
213. If you are using an editor (not CodePen) you will need D
C. 12
to reference Bootstrap resources where?
D. None
206. Consider the following code using Bootstrap 3: C A. In the head element - with a link to the css and js
files
<div class = "col-sm-7 col-lg-2"> B. In the body with a link to jQuery and JavaScript
In an xs viewport the div will be _____ columns wide. C. In the body section - with a link to the css and js
files
A. 2 D. In the head element - with a link to the css - and
B. 7 again at the bottom of the body with a link to jQuery
C. 12 and JavaScript
D. None
214. Designing multiple pages, one for each type of major A
207. True or false, Bootstrap is a framework for back-end B device (phone, tablet, laptop, and desktop) is called
web development.
A. Adaptive Design
A. True B. the .m paradigm
B. False C. Multi-site design
208. True or false, Bootstrap is a framework for front-end A 215. Consider the following code where the font-size of a D
web development. div is 32px, the font-size of a paragraph is .5em, and
the font size of a span element is .5em.
A. True
B. False <div>
<p>
209. Bootstrap uses ... A
Here, there.. How big is the <span>font</span>?
<p>
A. HTML, CSS, and JavaScript
</div>
B. HTML & CSS
What is the font-size of the span element in px?
C. CSS
(Looking for a numeric answer only, no
D. JavaScript
measurements.)
E. HTML
210. Which of the following is a benefit of using the A A. 32
Bootstrap CDN? B. 5
C. 0.5
A. You always are linked to the latest Bootstrap code. D. 8
B. You are able to customize the Bootstrap values
which you can not do with a local version of the code.
C. Using the CDN is the only way to use Bootstrap for
free.
211. True or False, with Bootstrap you need to change your A
HTML code to utilize the Bootstrap classes.
A. True
B. False
216. Consider the following CSS rules: B 220. Which of the following code segments will create two C
equal columns?
div{
width: 25%; A.
} <div class="row">
@media all and (min-width: 500px){ <div class="col-sm-4">.col-sm-4</div>
div{ <div class="col-sm-8">.col-sm-8</div>
width: 50%; </div>
}
} B.
What is the width of any div elements on a 450px <div class="row">
screen? <div class="col-sm-4">.col-sm-4</div>
<div class="col-sm-4">.col-sm-4</div>
A. 100% <div class="col-sm-4">.col-sm-4</div>
B. 25% </div>
C. 50%
C.
217. Which Bootstrap class will apply a striped look to a A
<div class="row">
Bootstrap table?
<div class="col-sm-6">.col-sm-4</div>
<div class="col-sm-6">.col-sm-4</div>
A. .table-striped
</div>
B. table-striped
C. .table.striped
D.
218. If you created a site with a Bootstrap drop-down menu C <div class="row">
and it is visible, but not functioning, the problem is <div class="col-sm-2">.col-sm-4</div>
probably with... <div class="col-sm-8">.col-sm-4</div>
<div class="col-sm-2">.col-sm-4</div>
A. The link to the Bootstrap HTML code. </div>
B. The link to the Bootstrap CSS code.
221. What is the logical operator for AND? &&
C. The link to the Bootstrap JavaScript code.
222. JavaScript code must be placed in the <head> section B
219. Which of the following is a recommended way to A
of the document.
incorporate Bootstrap into your code?
A. True
A. Use a link to the Content Delivery Network
B. False
B. Use a link to the Bootstrap 3 site.
223. Which is the correct syntax to change the contents of A
the HTML element below?
A. document.getElementById('quiz').innerHTML = "New
content!";
B.
document.getElementsByTagName('p').innerHTML("New
content!");
C. document.getElementsByTagName('p').innerHTML =
"New content!";
D. document.getElementById('quiz').innerHTML("New
content!");
224. Where can you put JavaScript? C
A. fruit[0]
B. fruit[1]
C. [fruit]0
D. fruit_0
E. None of the above.
236. Where can you put JavaScript? E 241. Consider the following code: C
function Hello();{
A <!html>
alert("Hello");
B <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
document.write("Hello on the screen");
5.01//EN" "http://www.w3.org/TR/html5/strict.dtd">
}
C <!DOCTYPE>
D <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
A. The fact that you are outputting the message twice
4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
B. You can't use document.write after using an alert.
E <!DOCTYPE html>
C. The semicolon after Hello()
239. Which is the best/proper way to declare that the A
243. Assume that this code is linked together correctly. A
language for your page is English?
p{
A <html lang="en">
color: red;
B <html lang=en>
padding:10px 5px;
C <html lang="english">
background: black;}
D <lang="english">
E <lang="en">
.fancy{
240. Which of the following best defines the relationship B font-family: cursive;
between defining a function and calling a function? background: red;
color: green;}
A. A function can be defined multiple times in a single
file .plain{
B. A function can be called multiple times in a single font-family: Times, serif;
file. color: black;}
<p>Hi</p>
A. red
B. green
C. black
D. browser default
244. This is probably a typo, why? A 249. Assume that this code is linked together correctly. C
.body{ p{
margin: 10px;} color: red;
padding:10px 5px;
A. The period in front of the word body means the background: black;
browser will look for a class called body, not the }
element. .fancy{
B. The period in front of the word body means the font-family: cursive;
browser will look for an id called body, not the background: red;
element. color: green;
}
245. What is true about this code? D
.plain{
font-family: Times, serif;
<p class = "fancy box"> ....</p>
color: black;
}
A. It is not legal to have two words ("fancy box")
<p class = "plain fancy">Hi</p>
within the class.
What color font is used to display "Hi"?
B. The fancy styling will take precedence over the
box styling.
A. red
C. The box styling will take precedence over the
B. green
fancy styling.
C. black
D. From this code, you can't know which styling will
D. browser default
take precedence.
250. Assume that this code is linked together correctly. C
246. The class selectors are part of the DOM A
p{
A. True
color: red;
B.False
padding:10px 5px;
247. The id selectors are part of the DOM. A background: black;
}
A. True .fancy{
B.False font-family: cursive;
248. Descendant selectors B background: red;
color: green;
nav a{ }
.... .plain{
} font-family: Times, serif;
are more specific than child selectors color: black;
nav>a{ }
.... <p class = "fancy plain">Hi</p>
} What color font is used to display "Hi"?
A. True A. red
B.False B. green
C. black
D. browser default
251. In the following code snippet, what value is given for D 258. Which of the following is the proper syntax for a D
the left margin? pseudo-class?
257. What is wrong with this code? A 261. Which CSS3 property allows you to change property B
values smoothly over a given duration?
div{
position: static; A. focus
left: 10px; B. transistion
} C. change
D. hover
A. The code works, but the left property is not
necessary since static elements don't allow offsets
B. There is nothing wrong with this code
C. "relative" is not a valid option for positon
262. Sometimes elements overlap one another. Which property specifies the stacking order of the elements? (A high value A
means it is more likely to be place in front of another.) ONLY PROVIDE THE PROPERTY, NOT A VALUE.
A. z-side
B. x-side
C. y-side