css-exam 0 votes, 0 avg 551 123456789101112131415 CSS Questions 1 / 15 1. 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 2 / 15 2. Which selector do we use to specify the rule for binding some particular unique element? A. Class B. id C. Tags D. both tags and class 3 / 15 3. Which value specifies a transition effect with a slow start, then fast, then end slowly? A. ease B. linear C. ease-in D. ease-out 4 / 15 4. 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 5 / 15 5. The __________ rule makes it possible to define different style rules for different media types in the same stylesheet. A. audio/video B. sink C. @media D. @canvas 6 / 15 6. What will be the output of following CSS code snippet? h1 {color: red text-decoration: underline; font-style: italic;} A. color: red, text-decoration: underline works B. only font-style: italic works C. color: red, text-decoration: underline and font-style: italic all works D. text-decoration: underline and font-style: italic works 7 / 15 7. What is CSS? A. CSS is a style sheet language B. CSS is designed to separate the presentation and content, including layout, colors, and fonts C. CSS is the language used to style the HTML documents D. All of the mentioned 8 / 15 8. Which of the following is only for table elements? A. initial B. collapse C. hidden D. inherit 9 / 15 9. What is the use of Pseudo-classes In CSS? A. To Match A Specified Element B. To select the active links C. Are used to select all the visited links D. Are used to define a special state of an element 10 / 15 10. Three of these choices are tue about class selectors. Which is NOT true? A. Multiple classes can be used within the same element. B. The same class can be used multiple times per page. C. Class selectors with a leading period. D. Classes can be used multiple times per page but not within the same element. 11 / 15 11. The default value of "position" attribute is___________ A. fixed B. absolute C. inherit D. relative 12 / 15 12. Which variable defines the data type of the content in CSS? A. data_type B. content_type C. http_cookie D. http_user_agent 13 / 15 13. Which one of these is NOT an appropriate value for the font-variant property? A. small-caps B. large-caps C. default D. inherit 14 / 15 14. Which of the following selector matches the name of any element type? A. The Type Selector B. The Universal Selector C. The Descedant Selector D. The Class Selector 15 / 15 15. 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 Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin