Font size
WorksheetsQuiz 2- CSS
Total questions: 100
Worksheet time: 33mins
A website uses the same HTML but displays differently on mobile, tablet, and desktop without JavaScript. Which CSS strength is primarily responsible?
Selector specificity
Device-dependent rendering
Separation of structure and presentation
Inline styling priority
A developer removes all inline and internal styles, yet the page still looks styled. What is the MOST likely reason?
Browser default styles
Cached JavaScript
External CSS file still linked
CSS inheritance error
A team wants to minimize duplication and ensure global consistency. Which CSS practice BEST achieves this?
Inline styles
Internal styles per page
External stylesheet reuse
Universal selector usage
A CSS file is correctly linked but styles are not applied. Which is the MOST likely mistake?
Incorrect selector
HTML tags inside CSS file
Missing semicolons
Unused classes
Why is CSS said to “cascade”?
Rules are executed sequentially
Styles follow alphabetical order
Multiple rules can apply and override each other
Styles flow from bottom to top only
A designer wants future developers to understand styling decisions easily. What CSS feature MOST helps?
Shorthand properties
Comments
Grouped selectors
Inline styles
Which CSS design principle is violated MOST by inline styling?
Modularity
Accessibility
Separation of concerns
Reusability
A webpage loads slowly because styles are repeated on every page. What CSS improvement is BEST?
Group selectors
Use internal CSS
Use external CSS
Use universal selector
Which CSS approach is LEAST scalable for large websites?
External CSS
Internal CSS
Inline CSS
Grouped selectors
A browser applies styles even when HTML tags are malformed. This happens because CSS is:
Strict
Fault-tolerant
Compiled
Server-side
A developer wants one design change to affect 50 pages instantly. What must be edited?
HTML body
“
