New Perspectives On HTML CSS And XML Comprehensive 4th Edition by Patrick Carey – Test Bank

 

 

To Purchase this Complete Test Bank with Answers Click the link Below

 

https://tbzuiqe.com/product/new-perspectives-on-html-css-and-xml-comprehensive-4th-edition-by-patrick-carey-test-bank/

 

If face any problem or Further information contact us At tbzuiqe@gmail.com

 

Sample Questions

 

 

 

Tutorial 3: Designing a Web Page with CSS

 

TRUE/FALSE

 

1.    To render a document, the device displaying the page needs a style sheet that specifies the appearance of each page element.

 

ANS:  T                    PTS:   1                    REF:   HTML 142

 

2.    In every version of CSS, you apply a style rule containing a list of style properties to an

element or a group of elements known as a selector.

 

ANS:  T                    PTS:   1                    REF:   HTML 144

 

3.    One advantage of user-defined style sheets is that they make the Web more accessible to visually impaired users who may require larger fonts or the absence of clashing color schemes.

 

ANS:  T                    PTS:   1                    REF:   HTML 145

 

4.    The exact order in which external style sheets and embedded style sheets are processed

by the browser depends on the order in which they are listed within the HTML file.

 

ANS:  T                    PTS:   1                    REF:   HTML 149

 

5.    The first style sheet interpreted by the browser is the one built in to the browser itself.

 

ANS:  T                    PTS:   1                    REF:   HTML 145

 

6.    Styles set by the author of a Web page and stored in an internal style sheet are loaded

after internal and user-defined style sheets.

 

ANS:  F                    PTS:   1                    REF:   HTML 146

 

7.    Another type of style sheet created by a Web page author is an embedded style sheet,

in which the styles are inserted directly within the body element of an HTML document.

 

ANS:  F                    PTS:   1                    REF:   HTML 148

 

8.    Style sheets cannot be as long and complicated as HTML files.

 

ANS:  F                    PTS:   1                    REF:   HTML 151

 

9.    A color value is an alphabetic expression that describes the properties of a color.

 

ANS:  F                    PTS:   1                    REF:   HTML 152

 

10.  CSS also allows RGB values to be entered as hexadecimal numbers.

 

ANS:  T                    PTS:   1                    REF:   HTML 153

 

11.  Saturation measures the intensity of the chosen color and ranges from 0% (no color) up to 100% (full color).

 

ANS:  T                    PTS:   1                    REF:   HTML 158

 

12.  Web pages are unstructured documents in which elements are nested within other elements,

forming a hierarchy of elements.

 

ANS:  F                    PTS:   1                    REF:   HTML 165

 

13.  A generic font describes the general appearance of a typeface, but does not rely on a specific font definition.

 

ANS:  T                    PTS:   1                    REF:   HTML 171

 

14.  Absolute measurements are appropriate when you know the physical properties of

an output device and want to fix a size to a specific value.

 

ANS:  T                    PTS:   1                    REF:   HTML 174

 

15.  The subscript and superscript styles lower or raise text vertically, as well as resize it.

 

ANS:  F                    PTS:   1                    REF:   HTML 183

 

16.  List style types can be used with contextual selectors to create an outline style based

on nested lists.

 

ANS:  T                    PTS:   1                    REF:   HTML 195

 

17.  By default, browsers offset ordered and unordered lists from the surrounding text.

 

ANS:  T                    PTS:   1                    REF:   HTML 198

 

18.  Links that are underlined or highlighted only when the mouse pointer hovers over the linked text display what is known as the hover over effect.

 

ANS:  F                    PTS:   1                    REF:   HTML 200

 

19.  Without underlines, there is no visual clue that the links in the navigation list act as hypertext.

 

ANS:  T                    PTS:   1                    REF:   HTML 200

 

20.  Good management skills are as crucial to good Web design as a well-chosen color or typeface.

 

ANS:  T                    PTS:   1                    REF:   HTML 210

 

MODIFIED TRUE/FALSE

 

1.    CSS2 made it possible to create Web pages that had visually interesting and attractive

designs and layouts._________________________

 

ANS:  F, CSS1

 

PTS:   1                    REF:   HTML 143

 

2.    Writing a style rule on a single line saves space, but entering each style property

on a separate line often makes your code easier to read and edit. _________________________

 

ANS:  T                                                     PTS:   1                    REF:   HTML 144

 

3.    To import a style sheet, add the command

 =import url(url);

to the style sheet file, where url is the URL of an external style sheet file. _________________________

 

ANS:  F, @import url(url);

 

PTS:   1                    REF:   HTML148

 

4.    decimal is a number expressed in base 16 rather than in the base 10 form we use every day. _________________________

 

ANS:  F, hexadecimal

 

PTS:   1                    REF:   HTML 153

 

5.    An additional factor in applying a style sheet is that properties are passed from a parent

element to its children in a process known as style inheritance.

 

ANS:  T                                                     PTS:   1                    REF:   HTML 150

 

6.    One approach to retaining the consistency of Web page text is to use absolute units, which are expressed relative to the size of other objects within the Web page. _________________________

 

ANS:  F, relative

 

PTS:   1                    REF:   HTML174

 

7.    Relative units define a font size using one of five standard units of measurement. _________________________

 

ANS:  F, Absolute

 

PTS:   1                    REF:   HTML 174

 

8.    RGB triplets can describe 256^3 (16.7 million) possible colors, which is a greater number of colors than the human eye can distinguish. _________________________

 

ANS:  T                                                     PTS:   1                    REF:   HTML 153

 

9.    Hue measures the brightness of the color and ranges from 0% (black) up to

100% (white). _________________________

 

ANS:  F, Lightness

 

PTS:   1                    REF:   HTML 158

 

10.  parent element is an element that contains one or more other elements, which are child elements of the parent. _________________________

 

ANS:  T                                                     PTS:   1                    REF:   HTML 165

 

11.  general font is a font that is identified by name, such as Times New Roman or Helvetica._________________________

 

ANS:  F, specific

 

PTS:   1                    REF:   HTML 171

 

12.  pixel is a relative unit because the actual rendered size depends on the density

of the output device. _________________________

 

ANS:  T                                                     PTS:   1                    REF:   HTML 175

 

13.  Leading refers to the amount of space between characters, while tracking refers to the amount of space between words. _________________________

 

ANS:  F, Kerning

 

PTS:   1                    REF:   HTML 176

 

14.  The @font-face rule is one example of a CSS @rule, which specifies a command or directive that controls how browsers interpret and run the contents of a CSS style sheet._________________________

 

ANS:  T                                                     PTS:   1                    REF:   HTML 189

 

15.  Structural pseudo-elements are used to classify items based on their locations within the

hierarchy of page elements._________________________

 

ANS:  F, pseudo-classes

 

PTS:   1                    REF:   HTML 203

 

MULTIPLE CHOICE

 

1.    The second version of CSS, CSS2, was introduced in 1998, expanding the language to provide styles to _________.

a.

set the font size, type, and other properties of Web page text

c.

specify background and foreground colors of different page elements

b.

apply a background image to any element

d.

position elements at specific locations on a page

 

 

ANS:  D                    PTS:   1                    REF:   HTML 143

 

2.    A user could change the font size assigned to paragraph and heading text, set foreground and background colors, and specify whether or not to display _____ images.

a.

outline

c.

clip art

b.

inline

d.

graphic

 

 

ANS:  B                    PTS:   1                    REF:   HTML 145

 

3.    An external style sheet is included by adding the link element

<link href=”url” rel=”stylesheet” type=”text/css” />

to the document head, where ______is the URL of the external style sheet file.

a.

stylesheet

c.

url

b.

text/css

d.

href

 

 

ANS:  C                    PTS:   1                    REF:   HTML 146

 

4.    The style sheet rules in a(n) ________ style sheet take precedence over any rules set in the browser’s internal style sheet or in a user-defined style sheet.

a.

internal

c.

embedded

b.

outside

d.

external

 

 

ANS:  D                    PTS:   1                    REF:   HTML146

 

5.    The ______ statement must always come before any other style rules in the style

sheet.

a.

@import

c.

!import

b.

@embed

d.

!embed

 

 

ANS:  A                    PTS:   1                    REF:   HTML 148

 

6.    The @import rule has the same impact as adding multiple ____ elements to the

HTML file.

a.

connection

c.

contact

b.

link

d.

integrated

 

 

ANS:  B                    PTS:   1                    REF:   HTML 148

 

7.    Unlike an external style sheet, a(n) _______ style sheet is applied only to the Web

page in which it is placed.

a.

linked

c.

embedded

b.

internal

d.

integrated

 

 

ANS:  C                    PTS:   1                    REF:   HTML 149

 

8.    Inline styles are styles applied directly to specific elements using the style attribute

<element style=”style rules”> … </element>

where element is the HTML element and _______ are CSS styles applied to that element.

a.

style rules

c.

element style

b.

element

d.

style

 

 

ANS:  A                    PTS:   1                    REF:   HTML 149

 

9.    If two style rules have equal specificity, and thus equal importance, then the one that is defined _____ in the style sheet is the one used.

a.

last

c.

second

b.

first

d.

third

 

 

ANS:  A                    PTS:   1                    REF:   HTML 150

 

10.  An additional factor in applying a style sheet is that properties are passed from a parent

element to its children in a process known as __________.

a.

style sheets

c.

style inheritance

b.

an embedded style sheet

d.

style link

 

 

ANS:  C                    PTS:   1                    REF:   HTML 150

 

11.  Many Web browsers now include _______ tools to allow page designers to

track each style back to its source.

a.

designer

c.

developer

b.

planner

d.

creator

 

 

ANS:  C                    PTS:   1                    REF:   HTML 150

 

12.  Style comments can also be added to embedded style sheets as long as they are placed between the opening and closing

<style> ______.

a.

markers

c.

links

b.

tags

d.

placeholders

 

 

ANS:  B                    PTS:   1                    REF:   HTML 151

 

13.  Adding all three primary colors–red, green and blue–at maximum intensity produces the color _____, while adding any two of the three primary colors at maximum intensity produces the trio of complementary colors—yellow, magenta, and cyan.

a.

white

c.

lime

b.

blue

d.

black

 

 

ANS:  A                    PTS:   1                    REF:   HTML 152

 

14.  Yellow has the triplet ____.

a.

(0, 0, 0)

c.

(0, 255, 255)

b.

(255, 255, 0)

d.

(255, 0, 255)

 

 

ANS:  B                    PTS:   1                    REF:   HTML 153

 

15.  CSS allows RGB values to be entered as ____.

a.

decimals

c.

WYSIWYG values

b.

hexadecimals

d.

RBG values

 

 

ANS:  B                    PTS:   1                    REF:   HTML 153

 

16.  In the hexadecimal system, 16 is expressed as ____.

a.

1F

c.

10

b.

F

d.

1

 

 

ANS:  C                    PTS:   1                    REF:   HTML 153

 

17.  In the hexadecimal system, 21 is expressed as ____.

a.

1F

c.

15

b.

F

d.

F1

 

 

ANS:  C                    PTS:   1                    REF:   HTML 153

 

18.  CSS supports the ___  basic color names.

a.

16

c.

256

b.

64

d.

216

 

 

ANS:  A                    PTS:   1                    REF:   HTML 154

 

19.  Color also evokes an emotional response, in which certain colors are associated with

particular feelings or concepts, such as the color ____ for assertive, powerful, sexy, and dangerous.

a.

black

c.

blue

b.

orange

d.

red

 

 

ANS:  D                    PTS:   1                    REF:   HTML 155

 

20.  Browsers recognize five ____ font groups.

a.

specific

c.

generic

b.

monospace

d.

designed

 

 

ANS:  C                    PTS:   1                    REF:   HTML 171

 

21.  If you use a hexadecimal value for a color, you preface the hexadecimal string with a(n) ____.

a.

pound symbol

c.

question mark

b.

ampersand

d.

exclamation point

 

 

ANS:  A                    PTS:   1                    REF:   HTML 153

 

22.  CSS supports styles to define both the text and ______ color for each element on your page.

a.

font

c.

style

b.

background

d.

forecolor

 

 

ANS:  B                    PTS:   1                    REF:   HTML 156

 

23.  To set the foreground or text color of an element, use the following property:

a.

text: color;

c.

color: color;

b.

forecolor: color;

d.

backcolor: color;

 

 

ANS:  C                    PTS:   1                    REF:   HTML 156

 

24.  ____ units define a font size using one of five standard units of measurement.

a.

Relative

c.

Standard

b.

Absolute

d.

Uppercase

 

 

ANS:  B                    PTS:   1                    REF:   HTML 174

 

25.  ____ units express font size relative to the size of other objects within the Web page.

a.

Absolute

c.

Standard

b.

Relative

d.

Output

 

 

ANS:  B                    PTS:   1                    REF:   HTML 174

 

26.  If an element contains 12pt text, a length of 2em equals ____.

a.

24pts

c.

4pts

b.

12pts

d.

2pts

 

 

ANS:  A                    PTS:   1                    REF:   HTML 174

 

27.  A(n) ____ represents a single dot on the output device.

a.

element

c.

link

b.

icon

d.

pixel

 

 

ANS:  D                    PTS:   1                    REF:   HTML 175

 

28.  The amount of space between pairs of letters is referred to as the ____.

a.

tracking

c.

kerning

b.

dithering

d.

pacing

 

 

ANS:  C                    PTS:   1                    REF:   HTML 176

 

29.  ____ is the tint of the color and is based on the color’s location on the color

wheel.

a.

Hue

c.

Lightness

b.

Saturation

d.

Darkness

 

 

ANS:  A                    PTS:   1                    REF:   HTML 158

 

30.  ______ measures the intensity of the chosen color and ranges from 0% (no color) up to 100% (full color).

a.

Hue

c.

Lightness

b.

Saturation

d.

Darkness

 

 

ANS:  B                    PTS:   1                    REF:   HTML 158

 

31.  ______ measures the brightness of the color and ranges from 0% (black) up to

100% (white).

a.

Hue

c.

Lightness

b.

Saturation

d.

Darkness

 

 

ANS:  C                    PTS:   1                    REF:   HTML 158

 

32.  Graphic designers consider ____ easier to use because it allows you to guess at an

initial color based on hue and then tweak the saturation and lightness values to fine-tune

the final color.

a.

HTML

c.

HSL

b.

CSS

d.

HTM

 

 

ANS:  C                    PTS:   1                    REF:   HTML 159

 

33.  _____ defines how much of the colors below the surface of the current object show through to affect its appearance.

a.

Clarity

c.

Lightness

b.

Saturation

d.

Opacity

 

 

ANS:  D                    PTS:   1                    REF:   HTML 159

 

34.  The amount of space between words is called ____.

a.

kerning

c.

pacing

b.

tracking

d.

dithering

 

 

ANS:  B                    PTS:   1                    REF:   HTML 176

 

35.  With semi-transparent colors, the final color rendered by a browser depends on the

background color of the ______element.

a.

parent

c.

sibling

b.

child

d.

descendant

 

 

ANS:  A                    PTS:   1                    REF:   HTML 159

 

36.  A technique known as ______ enhancement  places code conforming to older

standards before newer properties.

a.

color

c.

text

b.

progressive

d.

opacity

 

 

ANS:  B                    PTS:   1                    REF:   HTML 160

 

37.  The color scheme that uses two hues close to one another on the color wheel in which one color is the

dominant color and the other is a supporting color used only for highlights and nuance is _____.

a.

triad

c.

analogic

b.

tetrad

d.

monochrome

 

 

ANS:  C                    PTS:   1                    REF:   HTML 161

 

38.  The default unit of length for kerning and tracking is the ____.

a.

pica

c.

point

b.

pixel

d.

inch

 

 

ANS:  B                    PTS:   1                    REF:   HTML 176

 

39.  A _____ element is an element that contains one or more other elements, which are child elements.

a.

family

c.

parent

b.

sibling

d.

descendant

 

 

ANS:  C                    PTS:   1                    REF:   HTML 165

 

40.  Two child elements that share the same parent are referred to as ______ elements.

a.

parent

c.

child

b.

sibling

d.

descendant

 

 

ANS:  B                    PTS:   1                    REF:   HTML 165

 

41.  ____ is the space between lines of text.

a.

Tracking

c.

Leading

b.

Kerning

d.

Dithering

 

 

ANS:  C                    PTS:   1                    REF:   HTML 178

 

42.  Extending the first line of text to the left of the text block creates a ____ indent.

a.

tracking

c.

leading

b.

kerning

d.

hanging

 

 

ANS:  D                    PTS:   1                    REF:   HTML 178

 

43.  Each child element may contain children of its own and so forth down the hierarchy, creating a set of ______ elements that are all descended from a common parent.

a.

descendant

c.

parent

b.

child

d.

sibling

 

 

ANS:  A                    PTS:   1                    REF:   HTML 165

 

44.  The style rule

* {color: blue;}

uses the asterisk (*) selector—also known as the ______ selector—to select all elements

in the document.

a.

character

c.

wildcard

b.

text

d.

object

 

 

ANS:  C                    PTS:   1                    REF:   HTML 166

 

45.  A typeface in which each character has the same width and is often used to display programming code is ______

a.

monospace

c.

cursive

b.

serif

d.

fantasy

 

 

ANS:  A                    PTS:   1                    REF:   HTML 171

 

46.  Two attributes, ______, are often key in targeting styles to a specific

element or group of elements.

a.

id and char

c.

id and type

b.

id and class

d.

id and elem

 

 

ANS:  B                    PTS:   1                    REF:   HTML 168

 

47.  One reason to use the class attribute is to assign the same _____ to multiple elements

that belong to the same class.

a.

rule

c.

style

b.

format

d.

theme

 

 

ANS:  C                    PTS:   1                    REF:   HTML 168

 

48.  A typeface that mimics handwriting with highly stylized elements and flourishes,

best used in small doses for decorative page elements, is ______.

a.

serif

c.

fantasy

b.

monospace

d.

cursive

 

 

ANS:  D                    PTS:   1                    REF:   HTML 171

 

49.  When referenced by the font-family property, a specific font refers to a font ______ that is

stored on a user’s computer.

a.

definition

c.

format

b.

style

d.

color

 

 

ANS:  A                    PTS:   1                    REF:   HTML 171

 

50.  A typeface in which a small ornamentation appears at the tail end of each

character is _____.

a.

sans-serif

c.

monospace

b.

serif

d.

fantasy

 

 

ANS:  B                    PTS:   1                    REF:   HTML 171

 

51.  A general rule for printing is to use ______ fonts for headlines and serif fonts for

body text.

a.

serif

c.

monospace

b.

sans-serif

d.

cursive

 

 

ANS:  B                    PTS:   1                    REF:   HTML 172

 

52.  One commonly used relative unit is the ____ unit.

a.

in

c.

em

b.

ft

d.

en

 

 

ANS:  C                    PTS:   1                    REF:   HTML 174

 

53.  One of the great advantages of relative units like the em unit is that they can make

your page ______, allowing the page to be rendered the same way no matter what font

size is used by the browser.

a.

expandable

c.

flexible

b.

collapsable

d.

scalable

 

 

ANS:  D                    PTS:   1                    REF:   HTML 174

 

54.  The size or _______of most output devices is typically expressed in terms of pixels.

a.

resolution

c.

density

b.

clarity

d.

scale

 

 

ANS:  A                    PTS:   1                    REF:   HTML 175

 

55.  To prevent your browser from displaying address text in italic, you can set the font-style property to _____.

a.

bold

c.

semi-italic

b.

normal

d.

semi-bold

 

 

ANS:  B                    PTS:   1                    REF:   HTML 180

 

56.  The _____ value of the vertical-align style aligns the bottom of the element with the bottom of the font of the surrounding content.

a.

baseline

c.

text-bottom

b.

bottom

d.

sub

 

 

ANS:  C                    PTS:   1                    REF:   HTML 183

 

 

57.  In the preceding figure, the item number _____ displays the shortcut property.

a.

1

c.

3

b.

2

d.

4

 

 

ANS:  B                    PTS:   1                    REF:   HTML 184

 

58.  In the preceding figure, the item number ____ sets the background color to dark and the text color to white or semi-transparent white.

a.

1

c.

3

b.

2

d.

4

 

 

ANS:  A                    PTS:   1                    REF:   HTML 184

 

59.  The Web font format that supports Internet Explorer is _______.

a.

TrueType/OpenType

c.

Scalable Vector Graphics

b.

Embedded OpenType

d.

Web Open Font Format

 

 

ANS:  B                    PTS:   1                    REF:   HTML 185

 

60.  The great advantage of a Web font is that it gives a designer control over the ______

used in a document.

a.

theme

c.

font

b.

style

d.

typeface

 

 

ANS:  D                    PTS:   1                    REF:   HTML 186

 

61.  The CSS @rule that imports an external style sheet file located at ur1 is _______.

a.

@import url(urlmedia

c.

@namespace prefix uri

b.

@charset “encoding”;.

d.

@media media {

styles

}

 

 

ANS:  A                    PTS:   1                    REF:   HTML 189

 

62.  The following are some errors that can cause your style sheets to fail, except for ______

a.

missing semicolons

c.

missing curly braces

b.

missing colons

d.

typos

 

 

ANS:  B                    PTS:   1                    REF:   HTML 190

 

63.  To display an ordered list with alphabetical markers such as

64.  Home

65.  Getting Started

66.  Scrapbooking Tips

67.  Supply List

you would apply the following list style to the ol element:

a.

ol {list-style-type: lower-roman;}

c.

ol {list-style-type: upper-roman;}

b.

ol {list-style-type: upper-greek;}

d.

ol {list-style-type: upper-alpha;}

 

 

ANS:  D                    PTS:   1                    REF:   HTML 194

 

64.  List style types can be used with contextual selectors to create a(n) _____ style based

on nested lists.

a.

table

c.

hierarchy

b.

outline

d.

tree

 

 

ANS:  B                    PTS:   1                    REF:   HTML 195

 

65.  The style rule

ul {list-style-image: url(redball.gif);}

displays items from ______ lists marked with the graphic image in the redball.gif file.

a.

ordered

c.

unstructured

b.

unordered

d.

structured

 

 

ANS:  B                    PTS:   1                    REF:   HTML 196

 

 

Comments

Popular posts from this blog

Pharmacology For Canadian Health Care Practice 3rd Edition By Linda Lane Lilley – Test Bank

Memory Foundations And Applications 2nd Edition By Bennett L. Schwartz – Test Bank

Operations And Supply Chain Management 14 Edition By Jacobs – Test Bank