CSS Multiple Choice Questions & Answers (MCQs) focuses on “Inheritance and Cascade”.
Q 1. Which of the following Cascading order has the highest precedence?
A . user normal declarations
B. user agent declarations
C. author normal declarations
D. author important declarations
Show Answer
Answer:-B. user agent declarationsQ 2. Which of the following property is a shorthand that resets all CSS properties?
A. reset
B. inital
C. all
D. delete
Show Answer
Answer:-C. allQ 3. Which of the following generate “virtual” rules representing their effects when running?
A. CSS Animations
B. !important
C. DOM’s
D. Inheritance
Show Answer
Answer:-A. CSS AnimationsQ 4. The _______________ is the result of taking the computed value and completing any remaining calculations to make it the absolute theoretical value used in the layout of the document.
A. cascaded value
B. used value
C. declared value
D. none of the mentioned
Show Answer
Answer:-B. used valueQ 5. The _________________ is the result of resolving the specified value.
A. cascaded value
B. computed value
C. specified value
D. declared value
Show Answer
Answer:-B. computed valueQ 6. The ____________ represents the result of the cascade: it is the declared value that wins the cascade.
A. specified Value
B. actual value
C. computed value
D. cascaded value
Show Answer
Answer:-D. cascaded valueQ 7. The CSS cascade assigns a weight to each style rule. State true or false.
A. True
B. False
Show Answer
Answer:-A. TrueQ 8. Which of the following rule allows users to import style rules from other style sheets?
A. @media
B. @important
C. @style
D. @import
Show Answer
Answer:-D. @importExplanation
The @import rule allows users to import style rules from other style sheets. If an @import rule refers to a valid stylesheet, user agents must treat the contents of the stylesheet as if they were written in place of the @import rule.Q 9. Which of the following property is used to define how nested items are rendered in a 3-D space?
A. transform
B. transform-style
C. transform-origin
D. transform-3D
Show Answer
Answer:-B. transform-styleExplanation
transform-style is used to define how nested items are rendered in a 3-D space, the choice being either flattened or with their dimensions preserved. This property affects the children of the element and not the element itself. Also, the property does not cascade, so it is necessary to apply it at all levels.Q 10. Which of the following are different origins of style sheets?
A. author
B. user
C. user agent
D. all of the mentioned
Leave a Reply