Simplified guide of MCQs for Exams, Interviews

Sub Topic: CSS

1 .  How do you make the text bold?

  • A. font-weight:bold;
  • B. font:bold;
  • C. style:bold;

Correct Answer:


2 .  Which property is used to change the left margin of an element?

  • A. margin-left
  • B. padding-left
  • C. indent

Correct Answer:


3 .  When using the padding property; are you allowed to use negative values?

  • A. Yes
  • B. No

Correct Answer:


4 .  How do you make a list that lists its items with squares?

  • A. list-style-type: square;
  • B. list: square;
  • C. ist-type: square;

Correct Answer:

list-style-type: square;

5 .  How do you select an element with id "demo"?

  • A. #demo
  • B. demo
  • C. .demo

Correct Answer:


6 .  How do you select elements with class name "test"?

  • A. .test
  • B. test
  • C. #test

Correct Answer:


7 .  How do you select all p elements inside a div element?

  • A. div p
  • B. div.p

Correct Answer:

div p

8 .  How do you group selectors?

  • A. Separate each selector with a space
  • B. Separate each selector with a comma
  • C. Separate each selector with a plus sign

Correct Answer:

Separate each selector with a comma

9 .  What is the default value of the position property?

  • A. relative
  • B. static
  • C. fixed
  • D. absolute

Correct Answer: