C779 Pre Assessment Questions and
Correct Answers
What are Syntactically Awesome Sheets (SASS) used for with regard to adding functionality?
- ANS As a CSS extension language for preprocessing.
Given the following CSS:
p{color: red;}
p{color: yellow;}
p{color: green;}
p{color: purple;}
Which color is used when text in the referenced paragraph displays? - ANS Purple
Given the following markup code:
<nav id="basenav"> green or black </nav>
#basenav {
color:red;
}
nav {
color: blue;
}
, Which color will the navigation element be? - ANS Red
Which code block should be used to set the background image for a webpage? - ANS Body
{ background-image: url('paper.gif') }
Which HTML tag is used to display text exactly as it is defined in the HTML markup? - ANS Pre
Which CSS state selectors show uninspected HREF's in red? - ANS a:link {color:red;}
Which type of address does the hyperlink ../about/map.html point towards? - ANS Relative
Uniform Resource Locator (URL)
Which attribute is used with the <img> tag to display text if the image fails to load? - ANS <alt>
Which property is used in CSS3 to specify the left or right alignment of an image? - ANS Float
Which attribute is used to specify the format of a video file? - ANS Type
Which symbol with an href value tells the browser to look for an anchor within the current
document? - ANS Hash(#)
Which valid code shows a functional, formatted hyperlink reference? - ANS <a
href=http://www.wgu.edu>WGU</a>
Which pair of points is specified when defining a rectangular hot spot? - ANS Upper left
and lower right
Which two points are specified when defining a circular hot spot? - ANS Center Radius
Correct Answers
What are Syntactically Awesome Sheets (SASS) used for with regard to adding functionality?
- ANS As a CSS extension language for preprocessing.
Given the following CSS:
p{color: red;}
p{color: yellow;}
p{color: green;}
p{color: purple;}
Which color is used when text in the referenced paragraph displays? - ANS Purple
Given the following markup code:
<nav id="basenav"> green or black </nav>
#basenav {
color:red;
}
nav {
color: blue;
}
, Which color will the navigation element be? - ANS Red
Which code block should be used to set the background image for a webpage? - ANS Body
{ background-image: url('paper.gif') }
Which HTML tag is used to display text exactly as it is defined in the HTML markup? - ANS Pre
Which CSS state selectors show uninspected HREF's in red? - ANS a:link {color:red;}
Which type of address does the hyperlink ../about/map.html point towards? - ANS Relative
Uniform Resource Locator (URL)
Which attribute is used with the <img> tag to display text if the image fails to load? - ANS <alt>
Which property is used in CSS3 to specify the left or right alignment of an image? - ANS Float
Which attribute is used to specify the format of a video file? - ANS Type
Which symbol with an href value tells the browser to look for an anchor within the current
document? - ANS Hash(#)
Which valid code shows a functional, formatted hyperlink reference? - ANS <a
href=http://www.wgu.edu>WGU</a>
Which pair of points is specified when defining a rectangular hot spot? - ANS Upper left
and lower right
Which two points are specified when defining a circular hot spot? - ANS Center Radius