Explore topic-wise MCQs in Css.

This section includes 66 Mcqs, each offering curated multiple-choice questions to sharpen your Css knowledge and support exam preparation. Choose a topic below to get started.

51.

Which of the following measurement defines a measurement relative to a font s x-height?

A. rxh
B. ex
C. xh
D. e
E. None of these
Answer» C. xh
52.

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

A. @media
B. #id
C. <style>
D. !important
E. None of these
Answer» E. None of these
53.

Which of the following property defines the style, width, and color of the rule divider between

A. column-check
B. column-change
C. column-rule
D. column
E. None of these
Answer» D. column
54.

Which of the following measurement is relative to 1percentage of viewport s larger dimension?

A. vmin
B. ch
C. vmax
D. vw
E. None of these
Answer» D. vw
55.

Which of the following function flips an element s colors, for use by the filter property?

A. flip()
B. invert()
C. contrast()
D. image()
E. None of these
Answer» C. contrast()
56.

The first CSS specification to become an official W3C Recommendation is ___________.

A. CSS level 2.1
B. CSS level 1
C. CSS level 2
D. (X)HTML CSS
E. None of these
Answer» C. CSS level 2
57.

Find the specificity of this ul ol+li .

A. specificity = 0,1,1,1
B. specificity = 0,0,0,3
C. specificity = 0,2,1,1
D. specificity = 0,0,2,1
E. None of these
Answer» C. specificity = 0,2,1,1
58.

___________ property specifies how the position of the mask should be calculated by setting the origin relative to different locations within an element s box.

A. mask-origin
B. mask-attachment
C. mask-box-image
D. mask-image
E. None of these
Answer» B. mask-attachment
59.

Find the specificity of this ul ol li.red .

A. specificity = 0,1,2,1
B. specificity = 1,1,1,1
C. specificity = 0,0,1,3
D. specificity = 0,0,0,4
E. None of these
Answer» D. specificity = 0,0,0,4
60.

___________ property defines a mask to be used as a box s overlay in order to clip the box to a complex shape.

A. mask-attachment
B. mask
C. mask-origin
D. mask-box-image
E. None of these
Answer» C. mask-origin
61.

Find the specificity of this #x34y .

A. specificity = 1,0,0,0
B. specificity = 0,1,0,0
C. specificity = 0,0,1,0
D. specificity = 0,0,0,1
E. None of these
Answer» C. specificity = 0,0,1,0
62.

Find the specificity of this style= .

A. specificity = 0,1,0,0
B. specificity = 1,0,0,0
C. specificity = 0,0,1,0
D. specificity = 0,0,0,1
E. None of these
Answer» C. specificity = 0,0,1,0
63.

Find the specificity of this li.red.leve .

A. specificity = 0,2,0,1
B. specificity = 0,0,2,1
C. specificity = 0,0,1,1
D. specificity = 2,0,0,1
E. None of these
Answer» C. specificity = 0,0,1,1
64.

Each property may also have a cascaded value of ___________ which means that, for a given element, the property takes the same specified value as the property for the element s parent.

A. inherit
B. important
C. delay
D. !important
E. None of these
Answer» B. important
65.

The _____________ property allows us to include the padding and border in an element s total width and height.

A. box-sizing
B. padding
C. margin
D. All of above
E. None of these
Answer» B. padding
66.

________________ property sets the background image to scroll or not to scroll with its associated element s content

A. background-attachment
B. background
C. background-position
D. All of above
E. None of these
Answer» B. background