CSS MCQ Set Paper 4
CSS MCQ Set Paper 4
[Marks]1
[Negative Marks]0
Q.6) How can you select an element with the class name "example" in
CSS?
[a] .example *
[b] #example
[c] example()
[d] $example
Q.9) How can you group multiple CSS selectors together to apply the
same styles to all of them?
[a] Separate them with commas *
[b] Separate them with semicolons
[c] Separate them with colons
[d] Separate them with periods
Q.17) Which CSS property is used to add spacing between the border
and content of an element?
[a] padding *
[b] margin
[c] space
[d] border-spacing
Q.20) How can you select the last child element of a parent element
in CSS?
[a] :last-child *
[b] .last-child
[c] #last-child
[d] .child:last
Q.25) How can you select the first child element of a parent
element in CSS?
[a] :first-child *
[b] .first-child
[c] #first-child
[d] .child:first
[a] #myElement { } *
[b] .myElement { }
[c] myElement { }
[d] *myElement { }
[e] None of the above
Q.30) How can you select all the elements of a specific type in
CSS?
[a] element-type *
[b] .element-type
[c] #element-type
[d] element