Simplified guide of MCQs for Exams, Interviews

Sub Topic: CSS

1 .  What does CSS stand for?

  • A. Cascading Style Sheets
  • B. Colorful Style Sheets
  • C. Computer Style Sheets
  • D. Creative Style Sheets

Correct Answer:

Cascading Style Sheets


2 .  Where in an HTML document is the correct place to refer to an external style sheet?

  • A. In the < head > section
  • B. In the < body > section
  • C. At the end of the document

Correct Answer:

In the < head > section


3 .  Which HTML attribute is used to define inline styles?

  • A. style
  • B. styles
  • C. font
  • D. class

Correct Answer:

style


4 .  Which is the correct CSS syntax?

  • A. body { color: black; }
  • B. { body:color=black; }
  • C. body:color=black;

Correct Answer:

body { color: black; }


5 .  How do you insert a comment in a CSS file?

  • A. /* this is a comment */
  • B. // this is a comment //
  • C. // this is a comment

Correct Answer:

/* this is a comment */


6 .  Which property is used to change the background color?

  • A. background-color
  • B. color
  • C. bgcolor

Correct Answer:

background-color


7 .  Which CSS property is used to change the text color of an element?

  • A. color
  • B. text-color
  • C. fgcolor

Correct Answer:

color


8 .  Which CSS property controls the text size?

  • A. font-size
  • B. text-size
  • C. text-style
  • D. font-style

Correct Answer:

font-size


9 .  How do you make each word in a text start with a capital letter?

  • A. text-style:capitalize
  • B. transform:capitalize
  • C. text-transform:capitalize

Correct Answer:

text-transform:capitalize


10 .  Which property is used to change the font of an element?

  • A. font-family
  • B. font-style
  • C. font-weight

Correct Answer:

font-family