CSS Questions & Answers – Miscellaneous CSS Constructs

This set of Basic CSS Questions and Answers focuses on “Miscellaneous CSS Constructs”.

1. Which of the following represents a comment?
a) /!– comments –!/
b) /! comments !/
c) /* comments */
d) None of the mentioned
View Answer

Answer: c
Explanation: Comments can be placed within style sheets. Style sheets use the comment syntax used in C programming

2. A single _____________ rule can be used in an external sheet to define character set encoding of the style rules and values.
a) @media
b) @charset
c) @font-face
d) None of the mentioned
View Answer

Answer: b
Explanation: None.

3. An ___________ rule can be used to define style rules for multiple media types in a single embedded style sheet
a) @media
b) @charset
c) @font-face
d) None of the mentioned
View Answer

Answer: a
Explanation: None.
advertisement
advertisement

4. An ___________ rule is used to define a page block for printed styles.
a) @important
b) @page
c) @css
d) @html
View Answer

Answer: b
Explanation: An @page rule is used to define a page block for printed styles. Generally, within this construct we see various CSS properties like size, page, and margin to control the dimensions of the page.

5. Which of the following construct specifies that a style takes precedence over any different, conflicting styles?

Note: Join free Sanfoundry classes at Telegram or Youtube
a) !important
b) <style>
c) #id
d) @media
View Answer
Answer: a
Explanation: None.
 
 

6. Which of the following property specifies the size of the mask?
a) box-sizing
b) box-shadow
c) box-reflect
d) none of the mentioned
View Answer

Answer: c
Explanation:

advertisement
Syntax: -webkit-box-reflect: direction offset mask-box-image

7. Which of the following property is used to control column element breaks after an associated element when flowing multicolumn text?
a) column-break
b) column-break-after
c) column-count
d) column-break-before
View Answer

Answer: b
Explanation:

advertisement
Syntax: column-break-after: always | auto | avoid

8. Which of the following property defines the gap between columns in a multicolumn text flow?
a) column-float
b) column-flow
c) column-gap
d) column-width
View Answer

Answer: c
Explanation:

Syntax: column-gap: length | normal

9. Which of the following property defines the style, width, and color of the rule divider between
columns in a multicolumn text flow?
a) column
b) column-rule
c) column-change
d) column-check
View Answer

Answer: b
Explanation:

Syntax: column-rule: rule-width rule-style color

10. Which of the following property defines the width of a rule between columns in a multicolumn text flow?
a) column-width
b) column-rule
c) column-float
d) column-rule-width
View Answer

Answer: d
Explanation:

Syntax: column-rule-width: non-negative length | medium | thick | thin | inherit

Sanfoundry Global Education & Learning Series – CSS.

To practice basic questions and answers on all areas of CSS, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.