QUIZZES OBJECTIVE ASSESSMENT AND PRE ASSESMENT
TEST LATEST UPDATE
Which style sheet code defines the 18-pixel Arial font for all level two
headers?
A) h2
{
font-family-: Arial; font-weight: 18px; }
B) .h2
{
font-name: Arial; font-size: 18px; }
C) h2
{
font-family: Arial; font-size: 18px; }
D) .h2
{
font-name: Arial; font-weight:18px; } - ANSWER--h2
{
font-family: Arial; font-size: 18px; }
Given the following CSS code:
body {
color : white;
}
, WGU C777 EXAM 2024 | TESTING EXAM WITH ALL 70
QUIZZES OBJECTIVE ASSESSMENT AND PRE ASSESMENT
TEST LATEST UPDATE
Which part of an element is affected by the color property?
A) Text
B) Border
C) Background
D) Shadow - ANSWER--Text
What should be added first when embedding CSS in a single web page
as an internal style sheet?
A) A <style> element to the <head> section
B) A <head> element to the <style> section
C) Declarations within a <style> </style> block
D) Declarations within a <head> </head> block - ANSWER--A <style>
element to the <head> section
What is the first character a developer should use for an id selector in
CSS?
A) #
B) :
C) ;
D) . - ANSWER--#
, WGU C777 EXAM 2024 | TESTING EXAM WITH ALL 70
QUIZZES OBJECTIVE ASSESSMENT AND PRE ASSESMENT
TEST LATEST UPDATE
A developer has an image that needs to remain in the same place when
the page is scrolled. Which CSS positioning scheme should this
developer use?
A) Static
B) Absolute
C) Relative
D) Fixed - ANSWER--Fixed
A developer needs two pixels of space on the left side of content relative
to the border. Which CSS property should this developer use?
A) padding-left:2px;
B) border:2px;
C) margin-left:2px;
D) float:left; - ANSWER--padding-left:2px;
A web designer reviews the following CSS3 code:
#brand {
font-weight: bold;
}
Which paragraph element will it select?
A) <p class="brand">Web Design</p>
B) <p id="brand">Web Design</p>