css-exam 0 votes, 0 avg 551 123456789101112131415 CSS Questions 1 / 15 1. 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? A. gradient() B. line-gradient() C. linear-gradient() D. none of the above 2 / 15 2. Which of the following CSS property specifies the look and design of an outline? A. outline-style B. outline-format C. outline-font D. none of the mentioned 3 / 15 3. Which of the following CSS Property sets the stacking order of positioned elements? A. y-index B. z-index C. x-index D. none of the above 4 / 15 4. If we don't want to allow a floating div to the left side of an element, which CSS property will we use? A. margin B. clear C. float D. padding 5 / 15 5. Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter? A. text-style : capital; B. transform : capitalize; C. text-transform : capital; D. text-transform : capitalize; 6 / 15 6. Which of the following attributes is used to specify elements to bind style rules to? A. Id B. Class C. Tag D. all of the above 7 / 15 7. IF we want to wrap a block of text around an image, which css property will we use? A. wrap B. push C. float D. align 8 / 15 8. Which of the following media query describe output style portrait if height is greater than or equal to width, landscape if the opposite? A. grid B. monochrome C. resolution D. orientation 9 / 15 9. Which of the following will insert generated content in the counter? A. content B. counter-reset C. counter-increment D. counter() 10 / 15 10. If a particular should never be overridden by another rule, the _______ indication should be used. A. !important! B. important! C. !important D. ?important 11 / 15 11. What will be the output of the following CSS code snippet? span { border: 1px solid red; outline: green dotted thick; } A. All span elements will have a green thick border and a red outline B. All span elements will have a red border and a green dotted outline C. All span elements will have a outer green dotted border and an inner red border D. All span elements will have an outer red border and inner green dotted border 12 / 15 12. Which of the following selector selects an element if it’s the only child of its parent? A. :nth-oftype(n) B. :only-child C. :root D. :single-child 13 / 15 13. Which model includes margin, border, padding, and content? A. CSS3 Grid Layout model B. CSS3 Flexbox Box model C. CSS Box model D. CSS Grid Template Layout Module 14 / 15 14. Which of the following Viewport Property determines whether the display can be zoomed in and out? A. scale B. set-scale C. adjust-scale D. user-scalable 15 / 15 15. What is the role of pseudo-class in CSS A. Match a specified element B. Select the active links C. are used to select all the visited links D. are used to define a special state of an element Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin