Css MCQ Test
Css MCQ Test
Right Answer: A
Que.2. The ____________ selector is used to specify a style for a single, unique element
A. Id
B. class
C. text
D. Bit
Right Answer: A
Right Answer:C
Que.4. The ____________ property specifies which sides of an element other floating
elements are not allowed.
A. cleared
B. clear
C. float
D. Both A and B above
Right Answer: B
Que.5. Which of the below is the correct way to set a background image?
A. body {background-image:url(paper.gif);}
B. body {background-image:url(‘paper.gif’)};
C. body {background-image:url(‘paper.gif’)}
D. body {background-image:url(‘paper.gif’);}
Right Answer: D
Right Answer: D
Que.7. Block elements can be aligned by setting the left and right margins to “align”
A. True
B. False
Right Answer: B
Que.8. Which of the below is the correct way to set a font size?
A. h2{font-size:200%;}
B. h2{font-size:200px;}
C. both a and b above
D. h2{font-size:200;}
Right Answer: C
Que.9. Elements in CSS cannot be positioned unless the positioning property is set first
A. True
B. False
Right Answer: A
Right Answer: C
Right Answer: D
Que.12. _________ property can be used to Increase or decrease the space between words
A. space
B. word-spacing
C. word-space
D. Both b and c above
Right Answer: B
Que.13. Multiple external style sheets cannot be referenced inside a single HTML document
A. True
B. False
Right Answer: B
Right Answer: B
Que.15. The _________ property is mostly used to remove underline from links
A. text-trans
B. text-transformation
C. text-decoration
D. text-deco
Right Answer: C
Right Answer: A
Que.17. Which of the following statements is/are true?
A. Hiding an element can be done by setting the display property to “none”
B. Hiding an element can be done by setting visibility property to “hidden”
C. Both A and B above
D. Hiding an element can be done by setting block property to “hidden”
Right Answer: C
Right Answer: A
Right Answer: D
Right Answer: B