Home
MCQS
CSS MCQ Quiz Hub
Css Mcq Set 3
Choose a topic to test your knowledge and improve your CSS skills
1. Which of the following box-sizing property value is described by width and height include content, padding, and borders?
border-box
content-box
content-box
none for the mentioned
2. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content?
background-scroll
background-attach
background-attachment
background-allowance
3. Which of the following property sets an element’s background color?
background-image
background-color
background-colors
background-position
4. Which of the following property defines the color of an element’s right border?
border-right-colors
border-right-color
border-right
border-color
5. Which of the following property defines the space between cells in a table?
auto
border
spacing
border-spacing
6. Which of the following property defines in a shorthand form the width, style, and color for the top border of an element?
border-style
border-height
border-width
border-top
7. Which of the following property sets the shadow for a box element?
shadow
set-shadow
canvas-shadow
box-shadow
8. Which of the following property defines a shadow effect for text?
box-shadow
img-shadow
text-shadow
none of the mentioned
9. Which of the following property defines a shadow color for the right and bottom edges of a scroll bar?
scrollbar-darkshadow
scrollbar-shadow-color
scrollbar-darkshadow-color
none of the mentioned
10. Which of the following property defines a color for the right and bottom edges of a scroll bar.
scrollbar-color
scrollbar-darkshadow-color
scrollbar-shadow
scrollbar-shadow-color
11. Which of the following property sets list-style-type, list-style-position, and liststyle-image?
style
list-style
menu-style
img-style
12. Which of the following property specifies whether the labels for an element’s list items are positioned inside or outside the “box” defined by the listed item?
list-style
list-position
list-style-position
list-position-style
13. Which of the following property defines in a shorthand form the width, style, and color for all four sides of an element’s border?
border
border-style
border-color
border-all
14. Which of the following property defines in a shorthand form the width, style, and color for the left border of an element?
border
border-style
border-left
none of the mentioned
15. Which of the following property is used to round border corners?
border-corner
border-round
border-radius
none of the mentioned
16. Which of the following property influences the horizontal alignment of an element, making it “float” toward the left or right margin of its containing element?
float
float-left
float-right
float-align
17. Which of the following property sets the font face to be used for text?
font
font-text
font-family
none of the mentioned
18. Which of the following CSS Gradient Functions sets the direction and colors of a gradient that fades from one color to the next in a straight line?
gradient()
line-gradient()
linear-gradient()
None of the mentioned
19. Which of the following CSS Gradient Functions creates a circular or elliptical gradient, and optionally sets its shape, size, and position?
radial-gradient()
circular-gradient()
elliptical-gradient()
none of the mentioned
20. Which of the following CSS Gradient Functions Creates a radial gradient that repeats infinitely?
repeat-radial-gradient()
repeating-radial-gradient()
infinite-radial-gradient()
none of the mentioned
21. Which of the following is not a browser-specific versions of linear-gradient()?
-moz-linear-gradient()
-o-linear-gradient()
-mac-linear-gradient()
-webkit-linear-gradient()
22. Which of the following argument is not accepted by radial-gradient() function?
Shape
Time
Color stops
Position
23. Which of the following function creates a CSS gradient image that can be used anywhere an image URL is required, including background-image, border-image, and list-style properties?
canvas
gradient
animation
color
24. Which of the following option best explain this code “background-image: repeating-radial-gradient(circle at 50% 100%, #FFEB79, #D9CC3C 5%);”?
Creating Infinte circular Gradients
Creating Repeating Circular Gradients
Creating Repeating Radial Gradients
Creating Infinite Radial Gradients
25. Which of the following option best explain this code “background-image: repeating-linear-gradient(-45deg, #426A77, #FFF 6px);”?
Creating Straight Stripes
Creating Cubic Stripes
Creating Spiral Stripes
Creating Diagonal Stripes
26. Which of the following option best explain this code “background-image: repeating-linear-gradient(to right, #D9CC3C, #FFEB79 5%, #D9CC3C 10%);”?
Creating a Repeating Gradient
Creating a Mix Repeating Gradient
Creating a Shadow Repeating Gradient
Creating a Smooth Repeating Gradient
27. Which of the following media feature describes the number of entries in the color lookup table of the output device
color
color-index
color-value
color-@media
28. Which of the following Viewport Property sets the initial scaling factor?
scale
initial-scale
minimum-scale
user-scale
29. Which of the following Viewport Property determines whether the display can be zoomed in and out?
scale
set-scale
adjust-scale
user-scalable
30. Which of the following @viewport Property sets the viewport height in the same way as width?
height
width
viewpor-width
None of the mentioned
31. Which of the following @viewport Property locks the document in the specified orientation, portrait or landscape?
orientation
resolution
landscape
portrait
32. Which of the following Media Query describe the ratio of the device width to the device height of the media?
device-aspect
device-aspect-ratio
device-aspect-query
none of the mentioned
33. Which of the following Media Query determines if output is grid, like a simple terminal or phone, or bitmap, like a standard monitor or printer?
monochrome
grid
resolution
device-height
34. Which of the following Media Query describes the scanning method of a TV?
orientation
scan
resolution
None of the mentioned
35. Which of the following Media Query determines if output is monochrome and how many bits are used for gray display?
gray
chrome
monochrome
none of the mentioned
36. What type of selector is used in this case? p {line-height: 150%;}
class Selectors
element Selectors
id Selectors
none of the mentioned
37. By applying an ___________ a style can be applied to just a single tag.
class rule
element rule
id rule
none of the mentioned
38. The ___ attribute is used to define the name(s) of the class(es) to which a particular tag belongs.
class
element
id
none of the mentioned
39. What will be the output of below mentioned code snippet? p strong {background-color: yellow;}
Strong have yellow background
Strong element within a p element have a yellow background
Both p and strong have yellow background
none of the mentioned
40. A similar rule called the _____ is specified using the plus sign (+) and is used to select elements that would be siblings of each other.
class selectors
attribute selectors
adjacent-sibling selector
none of the mentioned
41. Which of the following selectors selects any tag with an id attribute set?
E#id
.class
#id
*
42. Which of the following selectors selects direct descendents?
E > F
E F
E + F
E ~ F
43. Which of the following selectors selects siblings?
E.class
E ~ F
*
E, F, G
44. Which of the following selectors selects the specified elements of type E with a particular class value?
E.class
E ~ F
*
E, F, G
45. Which of the following selectors selects adjacent siblings?
E > F
E F
E + F
E ~ F
46. Find the specificity of this “li”.
specificity = 0,0,0,1
specificity = 0,0,1,1
specificity = 0,1,1,1
specificity = 1,1,1,1
47. Find the specificity of this ” ul li”.
specificity = 0,0,0,0
specificity = 0,0,1,2
specificity = 0,0,0,2
specificity = 2,0,0,0
48. Find the specificity of this “li:first-line”.
specificity = 0,0,1,1
specificity = 0,0,0,2
specificity = 0,1,0,1
specificity = 1,0,0,1
49. Find the specificity of this “ul ol+li”.
specificity = 0,0,2,1
specificity = 0,2,1,1
specificity = 0,1,1,1
specificity = 0,0,0,3
50. Find the specificity of this “ul ol li.red”.
specificity = 0,0,3,1
specificity = 0,0,1,3
specificity = 1,1,1,1
specificity = 1,2,2,1
Submit