wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Compuscholar Chapter 6 Exam Review

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What term describes one specific feature such as size or color?

a)

Property

b)

Declaration Block

c)

Rule

d)

Value

2.

Which property would you set to control the color of the background in an element?

a)

color

b)

background-color

c)

back

d)

font-color

3.

What symbol indicates that numeric values will be hexadecimal instead of decimal?

a)

@

b)

*

c)

!

d)

#

4.

Which of the following declarations will turn the text in a paragraph to bold?

a)

font-weight: normal;

b)

font-size: large;

c)

font=bold;

d)

font-weight: bold;

5.

What element would you style to set default properties for all of the other elements on your web page?

a)

< p >

b)

< html >

c)

< head >

d)

< body >

6.

Which of the following is NOT a way to apply CSS properties to your website?

a)

The inline method

b)

The embedded method

c)

The outline method

d)

The external method

7.

What does this line of code in an external CSS file tell the browser? @charset "utf-8";

a)

The font style to use

b)

That you are using base-8

c)

The character set you are using

d)

To bold the text on the screen

8.

What symbols are used in external CSS files to create a comment?

a)

<!--and-->

b)

/* and */

c)

###

d)

//

9.

What is the correct format for creating a style rule in an external CSS file?

a)

Selector name, opening curly brace, declaration block, closing curly brace

b)

Opening curly brace, selector name, declaration block, closing curly brace

c)

Declaration block, Selector name, opening curly brace, closing curly brace

d)

Selector name, declaration block, opening curly brace, closing curly brace

10.

Given a RGB value of #00FF00, what will be the resulting color on the screen?

a)

Red

b)

Green

c)

Blue

d)

A mixture of red, green, and blue

11.

What is the disadvantage of placing inline styles in your HTML pages?

a)

If you want to make a site-wide style change, you need to find and edit every copy of those inline styles

b)

Inline styles clutter your HTML mark-up and make it harder to read

c)

Both of these are disadvantages

d)

Neither of these are disadvantages

12.

How do you create an inline style?

a)

Add a “style” attribute to the target element

b)

Add a “css” attribute to the target element

c)

Add a list of property attributes to the target element

d)

Define a style rule in your < head > area

13.

Each spot of color on a monitor is defined in RGB, which stands for:

a)

Red, Green, Blue

b)

Red, Gray, Brown

c)

Rose, Green, Black

d)

Red, Gray, Black

14.

How many digits are there in the "hexadecimal" numbering system?

a)

2

b)

10

c)

16

d)

256

15.

What is true about the format of a declaration block found inside a < style > element instead of inline?

a)

The format is the same as inline, but you might add some whitespace to put each declaration on a different line.

b)

You do not need to separate declarations with semi-colons at the end.

c)

You can use an equals sign (=) between the property and value.

d)

All of these are true.

16.

What does this code do? < style type="text/css" > p { color: blue; }

a)

Creates blue text anywhere “text/css” appears on the web page

b)

Makes every “p” text character on the web page blue

c)

Creates a web page with a blue background

d)

Defines a blue color for text inside a paragraph element

17.

The word “cascading” in CSS is best described by which statement below?

a)

The final properties of an element are changed by applying a variety of rules to that particular location within the overall HTML page

b)

A list of style rules are strictly applied from the bottom to the top of the list, with no exceptions.

c)

Once you start to style an element, you are required to continue adding styles until all possible properties are defined.

d)

One mistake in a higher rule will immediately wipe out all lower rules.

18.

If you define CSS rules 1, 2 and 3 as shown below, properties from which rule(s) would apply to a paragraph < p > element located within the body? body { /* Rule 1 */ color:green; } h1 { /* Rule 2 */ color:blue; } p { /* Rule 3 */ font-size:16px }

a)

Rule 1 and Rule 3

b)

Rule 3 only

c)

Rule 1, Rule 2, and Rule 3

d)

Rule 2 and Rule 3

19.

What special element will tell the browser the location of the CSS file?

a)

< css >

b)

< link >

c)

< inline >

d)

< external >

20.

Which of the following lines of code will correctly set the color of text inside a < h2 > element to blue, when found in an external CSS file?

a)

h2 { text-color:blue; }

b)

style="h2:color;blue;"

c)

h2 { color: blue; }

d)

h2 text-color:blue