wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz 2- CSS

Total questions: 100

Worksheet time: 33mins

Name
Class
Date
1.

A website uses the same HTML but displays differently on mobile, tablet, and desktop without JavaScript. Which CSS strength is primarily responsible?

a)

Selector specificity

b)

Device-dependent rendering

c)

Separation of structure and presentation

d)

Inline styling priority

2.

A developer removes all inline and internal styles, yet the page still looks styled. What is the MOST likely reason?

a)

Browser default styles

b)

Cached JavaScript

c)

External CSS file still linked

d)

CSS inheritance error

3.

A team wants to minimize duplication and ensure global consistency. Which CSS practice BEST achieves this?

a)

Inline styles

b)

Internal styles per page

c)

External stylesheet reuse

d)

Universal selector usage

4.

A CSS file is correctly linked but styles are not applied. Which is the MOST likely mistake?

a)

Incorrect selector

b)

HTML tags inside CSS file

c)

Missing semicolons

d)

Unused classes

5.

Why is CSS said to “cascade”?

a)

Rules are executed sequentially

b)

Styles follow alphabetical order

c)

Multiple rules can apply and override each other

d)

Styles flow from bottom to top only

6.

A designer wants future developers to understand styling decisions easily. What CSS feature MOST helps?

a)

Shorthand properties

b)

Comments

c)

Grouped selectors

d)

Inline styles

7.

Which CSS design principle is violated MOST by inline styling?

a)

Modularity

b)

Accessibility

c)

Separation of concerns

d)

Reusability

8.

A webpage loads slowly because styles are repeated on every page. What CSS improvement is BEST?

a)

Group selectors

b)

Use internal CSS

c)

Use external CSS

d)

Use universal selector

9.

Which CSS approach is LEAST scalable for large websites?

a)

External CSS

b)

Internal CSS

c)

Inline CSS

d)

Grouped selectors

10.

A browser applies styles even when HTML tags are malformed. This happens because CSS is:

a)

Strict

b)

Fault-tolerant

c)

Compiled

d)

Server-side

11.

A developer wants one design change to affect 50 pages instantly. What must be edited?

a)

HTML body

b)