Search Header Logo

CodeHS Unit 2 Retake Review

Authored by Wayground Content

Computers

9th - 12th Grade

CodeHS Unit 2 Retake Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following ranks the CSS selectors from highest precedence to lowest precedence?

Class name

Tag name

ID name

Element name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: You can create static styles with inline style= (on HTML tags) that are not possible using CSS

True

False

Only in certain browsers

Only for specific HTML elements

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the code be to select all <img> tags on a page and give them a height of 200 pixels?

img { height: 200px; }

img { height: 150px; }

img { height: auto; }

img { height: 100%; }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have the following CSS rules:

p {

color: green;

}

.fire {

color: red;

}

#title {

color: blue;

}

What font color will the following HTML element have after being styled by the given CSS:

<p class="fire" id="title">Hello World!</p>

Green

Red

Blue

Yellow

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the format for a CSS rule?

h1 {
color:blue;
}

h1 {
background-color:red;
}

h1 {
font-size:16px;
}

h1 {
margin:10px;
}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have the following CSS rules:
p {
color: green;
}

.fire {
color: red;
}

#title {
color: blue;
}

What font color will the following HTML element have after being styled by the given CSS:
<h1 class="fire">Welcome!</h1>

Green

Red

Blue

Yellow

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: Styling with CSS is more scalable than using style= on each HTML tag that you want to style

True

False

CSS is less scalable

Both are equally scalable

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?