Mid-Term Flashcards

1
Q

In a web application, the client uses a ______ to interact with a web server.

A

browser

web browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A _______________ makes web sites available to other computers over a network

A

web server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An intranet is a _____________ area network that is used for web applications

A

local

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A web application starts when a client sends a/an ______________________ to a server.

A

request

HTTP request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A ___________ web page is one that doesn’t change.

A

static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

An HTML document that’s generated by a web application is a ________________________ web page.

A

dynamic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The Mozilla Corporation publishes a web browser named ___________.

A

Firefox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When you include JavaScript in a web application, the language is run by the JavaScript engine of the _____________

A

browser

web browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

To format a web page, you use ____________.

A

CSS

Cascading Style Sheets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When you _____________ a web site, you upload its folders and files from a WAN to an Internet Server

A

deploy
publish
FTP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In an HTTP URL, the_____________ is coded immediately after the protocol but before the path.

A

domain

domain name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Because all web browsers don’t interpret HTML and CSS the same way, a major web development issue is _______________ compatibility

A

cross-browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Using the techniques that will help your web site rank higher in search engine results is called _________

A

search engine optimization SEO

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

An HTTP response is sent from

a. the web server to the application server
b. the application server to the web server
c. the client to the web server
d. the web server to the client

A

d. the web server to the client

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When a client requests a dynamic web page, the HTML is generated by

a. the web server
b. an application server
c. a database server
d. the web browser

A

b. an application server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Google publishes a web browser named

a. Safari
b. Opera
c. Chrome
d. Internet Explorer

A

c. Chrome

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

JavaScript code is run by the

a. database server
b. application server
c. web server
d. web browser

A

d. web browser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

To load a web page into a web browser, you can

a. type the URL of the web page into the browser’s address bar
b. type just the filename of the web page into the browser’s address bar
c. type the domain name of the web page into the browser’s address bar
d. click the browser’s Back button

A

a. type the URL of the web page into the browser’s address bar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

To load a web page from an intranet into your web browser, you can

a. click on the Load or Reload button
b. use the Open or Open File command in the File menu
c. type just the file name into the address bar
d. type just the domain name into the address bar

A

b. use the Open or Open File command in the File menu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

To view the source code for a web page in the Firefox or IE browser, you can select the appropriate command from the

a. File menu
b. Source menu
c. View menu
d. Page menu

A

c. View menu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Which of the following is NOT a guideline for user accessibility?

a. Provide text that is easy to read.
b. Make sure all links can be accessed with the keyboard.
c. Make sure that any essential information in images is also provided in text.
d. Make sure that each page will run in all browsers

A

d. Make sure that each page will run in all browsers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

In HTML, the body element provides the structure and ____________________ of the document.

A

content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

In HTML, a/an ____________________ tag begins with a slash (/) followed by the name of the tag.

A

closing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

In HTML, you must enclose the value for an attribute in quotation marks if the value includes one or more__________

A

spaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

In HTML, you can code a ____________________ attribute as just the attribute name

A

Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

When you comment out HTML code, you put the code within an HTML __________

A

comment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

______________ refers to characters like tab characters, line return characters, and spaces that are ignored by the browser.

A

whitespace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

A CSS rule set consists of a _______________________ and one or more rules.

A

selector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

A CSS selector can refer to a specific HTML element by specifying the value of the element’s ________________________ attribute

A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

When you start a new HTML file from a ______________________, you start from code that can be used for more than one HTML file.

A

template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

When you edit a CSS or HTML file with an editor like Aptana, it usually provides both syntax coloring and auto __________

A

completion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

If you’re using Internet Explorer to test a web page for the first time, you can find the file in the Windows _________________ and double-click on it

A

Explorer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

When you _____________________ a web page, you load the page into a browser to see whether it works correctly.

A

test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

When you _____________________ a web page, the page is processed by a program that tests whether all of the code is valid.

A

validate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

One of the benefits of validating an HTML document is that it can solve some ____________________ problems

A

testing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

A valid HTML document requires

a. a head element and a page element
b. a head element and a body element
c. a body element and a div element
d. a page element and a div element

A

b. a head element and a body element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Within a CSS rule set, a declaration (rule), includes

a. a selector and a declaration block
b. a selector and a value
c. a property and a selector
d. a property and a value

A

d. a property and a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Three of the common CSS selectors select

a. by element type, id attribute, and class attribute
b. div, h1, and p elements
c. by element, header, and footer
d. h1, ul, and li elements

A

a. by element type, id attribute, and class attribute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

To start a new CSS file from a template in Aptana, you a. open the template, add code to it, and save it with a new name

b. open the template and save it with a new name before you add code to it
c. create the new file and then copy and paste the template code into it
d. link to the template when you start the new file

A

d. link to the template when you start the new file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

If you’re using Aptana to edit an HTML file, the easiest way to test it is to

a. find it in the Windows Explorer and double-click on it b. type it’s path and filename into your browser’s address bar
c. use the browser’s Open or Open File command in the File menu
d. click on the Run button in Aptana’s toolbar

A

d. click on the Run button in Aptana’s toolbar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

When you’re using a Markup Validation Service,

a. the page won’t run in a browser if it isn’t valid
b. a trivial coding error can cause multiple validation errors
c. you can be sure that a validated page will work correctly in a browser
d. you need to validate all pages of your site

A

b. a trivial coding error can cause multiple validation errors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

The ______________ element in the head section of an HTML document can provide data that is used by some search engines

A

meta

metadata

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

By default, a browser displays each _________________ element on a new line

A

block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

To apply boldface to text with HTML, you can enclose the text within a/an _________________ element.

A

b
<b> </b>
strong
<strong> </strong>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

A character ___________________ is a code that can be used to display a special character like a copyright symbol in a web page

A

entity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

The ________________________ attribute is used to uniquely identify an HTML element

A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

You should use the ______________ element to identify a section of a web page only when the HTML5 semantic elements don’t apply.

A

div

<div> </div>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

The main portion of a web page is commonly coded as an HTML5 ____________________ element

A

section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

A sidebar in a web page should be coded as an HTML5 ____________________ element

A

aside

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

A series of navigation links should usually be coded within an HTML5 ____________________ element

A

nav

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

A relative URL is relative to the ________________________ web page

A

current

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

A path that is relative to the root folder of a web site is called a/an ____________________ path

A

root-relative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

An <a> element provides a/an _______________________ to another web page</a>

A

link

54
Q

In HTML, a numbered list is referred to as a/an _______________________ list

A

ordered

55
Q

The title element in the head section of an HTML document specifies the text

a. that’s used to refer to the document
b. that’s used to refer to the application
c. that’s displayed in the title bar of the browser
d. that’s displayed in the status bar of the browser

A

c. that’s displayed in the title bar of the browser

56
Q

Three inline elements are

a. nav, b, and span
b. b, a, and img
c. li, img, and h1
d. a, img, and ul

A

b. b, a, and img

57
Q

When the code that follows is loaded into the browser, it <h2>About this book</h2>

a. displays “About this book” in the default h2 format
b. displays “ABOUT THIS BOOK” in the default paragraph format
c. displays “About this book” in the default paragraph format
d. displays “ABOUT THIS BOOK” in the default h2 format

A

a. displays “About this book” in the default h2 format

58
Q

By default, the <br></br> tag

a. breaks a page into two parts
b. starts a new line of text
c. displays text in bold
d. creates a link

A

b. starts a new line of text

59
Q

What character entity is created by the” “ character?

a. &
b. ©
c. ®
d. a space

A

d. a space

60
Q

The class attribute

a. can be applied to only one element in an HTML document
b. determines the priority level of an HTML element
c. determines the copy that will be displayed when the mouse hovers over an element
d. can be used by CSS to apply the same formatting to more than one HTML element

A

d. can be used by CSS to apply the same formatting to more than one HTML element

61
Q

The <a> element that follows </a><a>Update</a>

a. displays “Update” as a link
b. displays “update.html” as a link
c. displays “Update” as plain text
d. displays “update.html” as plain text

A

a. displays “Update” as a link

62
Q

The img element that follows “<p><img></img></p> “

a. displays “Murach Logo” above the image that’s retrieved
b. displays “Murach Logo” within a p element
c. displays “Murach Logo” if the image can’t be found
d. displays the image as text within a p element

A

c. displays “Murach Logo” if the image can’t be found

63
Q

The <a> element that follows goes to a web page </a><a>JavaScript and DOM Scripting</a>

a. in the same folder as the current page
b. in a folder that is subordinate to the current page
c. in another folder that is at the same level as the current page
d. in a folder that is subordinate to the root folder for the web site

A

b. in a folder that is subordinate to the current page

64
Q

The img element that follows gets the image file from the images folder, which is “<p><img></img></p>”

a. at the level above the current folder
b. at the level below the current folder
c. at the same level as the current folder
d. at two levels above the current folder

A

c. at the same level as the current folder

65
Q

Which of the following should you do to provide accessibility to img elements with useful content?

a. Code an src attribute with an absolute URL.
b. Code an alt attribute that describes the image.
c. Use a PNG image.
d. Provide an alternate image.

A

b. Code an alt attribute that describes the image.

66
Q

To include styles in an HTML document, you can use an external style sheet, an embedded style sheet or ____________________________ attributes on inline HTML elements.

A

style

67
Q

To include a CSS file in an HTML document, you use the _______________________ element

A

link

68
Q

You use a JavaScript ____________________ to help older browsers recognize the HTML5 structural elements

A

shiv

shim

69
Q

You can use ems or percentages to specify a _______________________ unit of measurement

A

relative

70
Q

To specify a color in a CSS rule, you can code a/an ____________________ value in percentages or in hexidecimal numbers

A

RGB

71
Q

When you code a selector that selects by ______________________, the rule set applies to just one HTML element

A

id

72
Q

In the rule set that follows, the selector applies to all elements that have “red” as their ____________________________ name

A

class

73
Q

To apply styles to all elements, you can use the ______________________ selector

A

universal

74
Q

In the rule set that follows, the selector selects all paragraph elements that are ____________________________ of the element with “main” as its id

A

descendants

75
Q

For user accessibility, you should apply the same formatting to the :focus pseudo-class for an element as you apply to the ____________________ pseudo-class for that element

A

:hover

76
Q

If more than one rule set is applied to an element, the rule set with the selector that has the highest ______________________ is used

A

specificity

77
Q

Times New Roman is a font ________________

A

family

78
Q

Underlining and overlining are a type of text formatting that is referred to as text ______________

A

decoration

79
Q

To provide the top-level formatting for a page, a style sheet commonly formats

a. body and HTML5 semantic elements
b. classes
c. universal selectors
d. attributes

A

a. body and HTML5 semantic elements

80
Q

When you use an external style sheet with an HTML document, you get all but one of the benefits that follow. Which one is it?

a. Your HTML files are smaller and simpler
b. Your CSS files are easy to create and maintain
c. You provide consistent formatting for all of the pages that use the style sheet
d. You can modify the formatting for all of the related pages by changing one style sheet

A

b. Your CSS files are easy to create and maintain

81
Q

Which of the following units of measurement is equal to the font size for the current font?

a. a pixel
b. a point
c. an em
d. a percentage

A

c. an em

82
Q

Which of the following is NOT one of the ways that you can specify a color in CSS?

a. color: white;
b. color: rgb(50%, 25%, 25%);
c. color: getColor(“red”);
d. color: #cd5c5c;

A

c. color: getColor(“red”);

83
Q

The RGBA and HSLA colors that are available with CSS3 let you specify

a. the opacity of the color
b. the concentration of the color
c. a pattern for the color
d. a name for the color

A

a. the opacity of the color

84
Q

Which of the following is a valid selector for a class named menu?

a. menu
b. #menu
c. .menu
d. > menu

A

c. .menu

85
Q

A child selector in CSS allows you to select elements that

a. are any descendant of an element
b. are a direct descendant of an element
c. have an attribute that matches the specified child
d. have a class that matches the specified child

A

b. are a direct descendant of an element

86
Q

Pseudo-class selectors let you apply formatting

a. to selected portions of text
b. to elements that specify multiple classes
c. when a button control is clicked
d. when specific conditions occur

A

d. when specific conditions occur

87
Q

If two CSS rules conflict, which of the following rules overrides the other rule?

a. the rule marked as !important in a web page
b. the normal rule in a web page
c. the normal rule in a user style sheet
d. the default rule for the web browser

A

a. the rule marked as !important in a web page

88
Q

Which of the following selectors is most specific?

a. .nav
b. #nav
c. a
d. div

A

b. #nav

89
Q

Which of the following selectors applies to all <a> elements with “hot” as their class name that are coded within a div element that has “header” as its id?</a>

a. a.hot #header
b. a.hot > header
c. #header a.hot
d. #header a:hot </a>

A

c. #header a.hot

90
Q

Which of the following can you NOT do when adding shadows to text?

a. Set the color of the shadow.
b. Set the opacity of the shadow.
c. Set the horizontal and vertical offset.
d. Determine how much the shadow is blurred.

A

b. Set the opacity of the shadow.

91
Q

In the box model, the border comes between the margin and the _____________________ for box.

A

padding

92
Q

By default, the box for a block element is as wide as the _________________ that it’s in.

A

block

93
Q

By default, the box for a block element is as tall as the _________________ requires

A

content

94
Q

If you want to use padding to control the spacing before and after h2 elements, you should start by setting the ____________________________ for those elements to zero

A

margin

margins

95
Q

If the bottom margin for one element is 1.5 em and the top margin for the element below it is 1 em, how large is the margin between the two elements when the page is rendered in a browser? _____________

A

1.5em

96
Q

When you set a border for a block element, you can set the color, style, and _________

A

width

97
Q

If you set the background color for the body of a page to blue and you don’t set the background color for a section within the body, the background of the section will be _____________

A

blue

98
Q

By default, if you specify a background image for a block element, it will be __________________ both horizontally and vertically so it fills the block element

A

repeated

99
Q

To calculate the height of a box when using the box model, you add the height of the content area to the sum of the heights of the

a. top and bottom margins and top and bottom padding
b. top and bottom borders, top and bottom margins, and top and bottom padding
c. top and bottom borders, top margin, and bottom margin
d. top and bottom borders, top padding, and bottom padding

A

b. top and bottom borders, top and bottom margins, and top and bottom padding

100
Q

You use a reset selector to

a. set the margins and padding for all elements to zero
b. set inherited properties to their default values
c. set the font sizes for all text elements to their defaults
d. set the background color for all elements to white

A

a. set the margins and padding for all elements to zero

101
Q

In the code that follows margin: 0 auto; the auto keyword means

a. to automatically adjust the margins for the element whenever necessary
b. to center the element horizontally within the containing block
c. to center the element vertically within the containing block
d. to automatically align the element based on the size of the browser window

A

b. to center the element horizontally within the containing block

102
Q

The code that follows padding: .5em 0 .25em; applies this padding to an element:

a. .5em above, 0 left, and .25em below
b. .5em above, 0 left and right, and .25em below
c. .5em above, 0 right, and .25em below
d. .5em above and below, 0 right, and .25em left

A

b. .5em above, 0 left and right, and .25em below

103
Q

The code that follows border-style: solid none; means that the box should have

a. a solid top border
b. solid top and bottom borders
c. solid borders on all four sides
d. solid borders on all four sides and no background image

A

b. solid top and bottom borders

104
Q

Which of the following formatting can you NOT apply to boxes using CSS3?

a. rounded corners
b. linear gradients
c. radial gradients
d. shadows

A

c. radial gradients

105
Q

When you use CSS to set the float property for an element, you should also set the ________ of the element

A

width

106
Q

To stop an element from flowing into the space on the side of a floated element, you can code the __________ property

A

clear

107
Q

If you want to use a _________ page layout, you set the width of the page to a percent

A

liquid

108
Q

When you use ___________ positioning with CSS, the other elements on the page are positioned as if the element wasn’t there

A

absolute

109
Q

When you use ________ positioning with CSS, the positioned element doesn’t move in the browser window, even when you scroll

A

fixed

110
Q

When you set the float property for a block element to left, the elements that follow it will flow into the space

a. to the left of the floated element
b. to the right of the floated element
c. to the left of the floated element if there’s enough space
d. to the right of the floated element if there’s enough space

A

a. to the left of the floated element

111
Q

Which of the following techniques can you NOT use to create a two-column layout?

a. Code the first column before the second column and then float the first column to the left.
b. Code the first column before the second column and then float both columns to the left.
c. Code the columns in any order and then float both columns to the left.
d. Code the columns in any order and then float the first column to the left and the second column to the right.

A

c. Code the columns in any order and then float both columns to the left.

112
Q

For a two-column layout where the main section is liquid and the aside is fixed, you use CSS to

a. set the body width to a percent and don’t set the section width
b. set the body with to a fixed width and set the section width to a percent
c. set both the body and section widths to percents
d. set the body width to fixed width and don’t set a section width

A

a. set the body width to a percent and don’t set the section width

113
Q

For a three-column layout, you can

a. code the section and asides in any sequence and then float them all to the left
b. code the section and asides in sequence from left to right and then float the first aside to the left and the second aside to the right
c. code the section and asides in any sequence and then float the first aside and the section to the left and the second aside to the right
d. float the section in the center and let the asides flow around it

A

c. code the section and asides in any sequence and then float the first aside and the section to the left and the second aside to the right

114
Q

Which of the following should you NOT do when using CSS3 properties to create text columns?

a. Make the columns wide enough to read easily.
b. Justify the text in the columns.
c. Include the property prefixes required to display the columns in browsers that support this feature.
d. Code the columns in an article element

A

b. Justify the text in the columns.

115
Q

When you set the position property for a block element to absolute, the browser

a. takes the element out of the flow of elements on the web page
b. keeps the element in the flow of elements on the web page
c. doesn’t allow the element to overlap other elements on the web page
d. positions the element relative to the browser window

A

a. takes the element out of the flow of elements on the web page

116
Q

When you set the position property for a block element to fixed, the element

a. always appears in the top left corner of the browser window
b. moves when you scroll in the browser window
c. can’t overlap other elements on the web page
d. is positioned relative to the browser window

A

d. is positioned relative to the browser window

117
Q

By default, a/an _________ list is displayed as a bulleted list.

A

unordered

118
Q

A description is a type of list that consists of terms and _______

A

descriptions

119
Q

When you code the HTML for a list, you code ________ elements within ul or ol
elements

A

li

120
Q

If necessary, you can use CSS to change the bullets, numbers, or _____________ of
list items.

A

alignment

121
Q

To create a link to another web page, you can use a/an ___________ element

A

<a></a>

a</a>

122
Q

To create a link that starts an email, you code the href attribute as ______________
followed by the email address.

A

mailto

mailto:

123
Q
By default, there isn’t any special formatting for the \_\_\_\_\_\_\_\_\_\_\_\_ pseudo-class
selector for a link.
A

hover

124
Q

To create a link that opens another web page in a new window, you can code the
_______________ attribute for a link.

A

target

125
Q

To create a link that moves to a placeholder on the same page, you code the href attribute as #
followed by the name of the _______________ attribute for the element that the link
should go to

A

id

126
Q

To help the browser determine what media player to use when playing a media file using an <a>
element, you use the type attribute to specify the ___________ type.</a>

A

MIME

127
Q

To create a navigation bar with an unordered list, you must set the display property for the list items to
____________ so the links are displayed horizontally.

A

inline

128
Q

To change the left alignment of the items in an unordered list, you set the

a. left margin for the ul element
b. left padding for the ul element
c. left margin for each li element
d. left padding for each li element

A

b. left padding for the ul element

129
Q

The four pseudo-class selectors for links are

a. link, visited, active, and inactive
b. link, active, inactive, and hover
c. unvisited, visited, active, and inactive
d. link, visited, active, and hover

A

d. link, visited, active, and hover

130
Q

To remove the underlining from an <a> element, you can use CSS to set its</a>

a. text-decoration property to none
b. text-decoration property to off
c. underline property to none
d. underline property to off</a>

A

a. text-decoration property to none

131
Q

To link to placeholders on the same page as the links, you must code the placeholders

a. as elements
b. with placeholder attributes
c. as <a> elements with class attributes
d. as </a><a> elements with id attributes</a>

A

d. as <a> elements with id attributes</a>

132
Q

If you want the user to be able to click anywhere in a box in a navigation list that’s created by using
<a> elements within the list items of an unordered list, you must
a. set the list-style property for the list to none
b. set the display property for the list items to block
c. set the text-decoration property for the </a><a> elements to none
d. set the display property for the </a><a> elements to block</a>

A

b. set the display property for the list items to block