📝 MCQ Test
Chapter 13 - CSS Basics
1. What is the full form of CSS?
A. Cascading Style Sheets
B. Computer Style System
C. Creative Sheet Software
D. Colourful Styling Syntax
2. Which language is used to style HTML web pages?
A. SQL
B. CSS
C. PHP only
D. Python only
3. Which HTML attribute is used to apply inline CSS?
A. class
B. id
C. style
D. href
4. Where is internal CSS generally written?
A. Inside the footer only
B. Inside an image file
C. Inside a database table
D. Inside a style element in the HTML document
5. What is the usual file extension for an external CSS file?
A. .html
B. .css
C. .sql
D. .docx
6. Which symbol begins a CSS class selector?
A. #
B. @
C. .
D. $
7. Which symbol begins a CSS ID selector?
A. #
B. .
C. &
D. %
8. Which CSS property changes text colour?
A. background-color
B. color
C. font-family
D. border
9. Which property sets an element background colour?
A. text-align
B. padding
C. background-color
D. font-weight
10. Which property controls the space outside an element border?
A. padding
B. border-radius
C. line-height
D. margin
11. Which property controls the space between content and border?
A. padding
B. margin
C. outline
D. opacity
12. Which sequence correctly represents the CSS box model from inside to outside?
A. Margin, border, content, padding
B. Content, padding, border, margin
C. Border, content, margin, padding
D. Padding, margin, content, border
13. Which pseudo-class is commonly used when a pointer is over an element?
A. :focus
B. :active
C. :hover
D. :visited
14. Which CSS feature applies styles according to viewport conditions?
A. Text decoration
B. Font weight
C. Border style
D. Media query
15. Which HTML element links an external CSS file?
A.
B.