AMP

Chapter 13: CSS - Cascading Style Sheets — Online MCQ Test

COMPUTER APPLICATIONS · CLASS 11th · Tamil Nadu State Board
Practice Chapter 13: CSS - Cascading Style Sheets with a free chapter-wise online MCQ test. This chapter covers: Focusing on web presentation styling this chapter covers CSS syntax selectors inline internal and external style sheets. Students apply colors fonts margins borders and positioning.... AI-generated questions from basic to board-exam level, with instant results and explanations.

Start Exam on Full Site →

Chapter 13: CSS - Cascading Style Sheets — Important Questions & Answers

What does CSS stand for?
  • A. Computer Style Sheets
  • B. Cascading Style Sheets
  • C. Creative Style Sheets
  • D. Colorful Style Sheets
Answer: B. Cascading Style Sheets
CSS is the acronym for Cascading Style Sheets, used to style HTML documents.
Which of the following is the correct CSS syntax?
  • A. body {color: black;}
  • B. body:color=black;
  • C. {body;color:black;}
  • D. body:color{black;}
Answer: A. body {color: black;}
CSS syntax follows the pattern selector {property: value;}.
Which selector is used to specify a style for a single, unique element using the id attribute?
  • A. #
  • B. .
  • C. *
  • D. $
Answer: A. #
The id selector uses the hash (#) symbol to target an element with a specific ID.
Which of these is NOT a valid way to integrate CSS into an HTML document?
  • A. Inline
  • B. Internal
  • C. External
  • D. Interleaved
Answer: D. Interleaved
There are only three ways to include CSS: Inline (using style attribute), Internal (using <style> tag), and External (.css file).
Consider the selector 'div p'. What does this select?
  • A. All div and p elements
  • B. All p elements inside a div element
  • C. Only the div element that is a child of p
  • D. The div element and the p element
Answer: B. All p elements inside a div element
The descendant selector (space) selects all elements of the second type that are descendants of the first type.