css-exam 0 votes, 0 avg 547 123456789101112131415 CSS Questions 1 / 15 1. 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 2 / 15 2. In the below code snippet, in what order will the margins be added? p { margin: 25px 50px 75px 100px; } A. Top, Right, Bottom, Left B. Top, Left, Bottom, Right C. Top, Bottom, Right, Left D. Right, Left, Top, Bottom 3 / 15 3. If a particular should never be overridden by another rule, the _______ indication should be used. A. !important! B. important! C. !important D. ?important 4 / 15 4. 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 --> 5 / 15 5. 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 6 / 15 6. How would you make the first letter of every paragraph on the page red? A. p::first-letter{color:red;} B. p:first-letter{color:red;} C. first-letter::p{color:red;} D. first-letter:p{color:red;} 7 / 15 7. Which of the following is not a browser-specific versions of linear-gradient()? A. -moz-linear-gradient() B. -o-linear-gradient() C. -mac-linear-gradient() D. -webkit-linear-gradient() 8 / 15 8. 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 9 / 15 9. What scales the background image as large as possible? A. contain B. cover C. wrap D. resize 10 / 15 10. 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 11 / 15 11. Choose the option that correctly specifies the output of the following CSS. span { border: 1px solid red; outline: green dotted thick; } A. All span elements will have a red border and a green dotted outline B. All span elements will have a green thick border and a red outline C. All span elements will have an outer red border and inner green dotted border D. All span elements will have a outer green dotted border and an inner red border 12 / 15 12. Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating system’s color use? A. System Color Names B. HSLa Color C. Commonly defined named colors D. Specificationdefined named colors 13 / 15 13. Which Event Will Be Used When A Connection To The Server Is Opened. A. Onmessage B. Onopen C. Onerror D. none of the above 14 / 15 14. Which statement regarding icon fonts is true? A. Icon fonts can be inserted only using JavaScript. B. Icon fonts can be styled with typography-related properties such as font-size and color. C. Icon fonts are inserted as inline images. D. Icon fonts require browser extension. 15 / 15 15. Which of the following property of a table element specifies whether the browser should control the appearance of the adjacent borders that touch each other or whether each cell should maintain its style? A. :border-collapse B. :border-spacing C. :caption-side D. :empty-cells Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin