css-exam 0 votes, 0 avg 551 123456789101112131415 CSS Questions 1 / 15 1. 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 2 / 15 2. 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 3 / 15 3. 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 4 / 15 4. Which of the following Property controls the display of small caps? A. font-size B. font-variant C. font-style D. font-weight 5 / 15 5. How do you comment in CSS file? A. //this is a coment// B. /* this is a comment */ C. //this is a comment D. <!-- this is a comment --> 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. 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 8 / 15 8. What is the way to specify media dependencies for style sheets ? A. Specify the target medium from a style sheet with the @media or @import at-rules B. Specify the target medium within the document language C. both Specify the target medium from a style sheet with the @media or @import at-rules and Specify the target medium within the document language D. none of the mentioned 9 / 15 9. When adding transparency styles, what is the difference between using the opacity property versus the background property with rgba() value? A. Opacity specifies the level of transparency of the child element. Background with a rgba() value applies transparency to the background color only. B. Opacity applies transparency to the background color only. Background with a rgba() value specifies the level of transparency of an element, as a whole, including its content. C. Opacity specifies the level of transparency of an element, including its content. Background with a rgba() value applies transparency to the background color only. D. Opacity applies transparency to the parent and child elements. Background with a rgba() value specifies the level of transparency of the parent element only. 10 / 15 10. When using flexbox, the 'justify-content' property can be used to distribute the space between the flex items along the main axis. Which value should be used to evenly distribute the flex items within the container shown below. A. justify-content:center; B. justify-content:space-around; C. justify-content:auto; D. justify-content:space-between; 11 / 15 11. Which of the following is the correct syntax to display the hyperlinks without any underline? A. a {decoration : no-underline;} B. a {text-decoration : none;} C. a {text-decoration : underline;} D. a {text decoration : none;} 12 / 15 12. Suppose we want to arrange 5 no of divs so that div4 is placed above div1. Now, which css property will we use to control the order of stack? A. d-index B. s-index C. x-index D. z-index 13 / 15 13. Which of the following is used for spread radius? A. blur B. spread C. color D. v-offset 14 / 15 14. 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? A. float B. float-left C. float-right D. float-align 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