css-exam 0 votes, 0 avg 551 123456789101112131415 CSS Questions 1 / 15 1. 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 2 / 15 2. From the choices given below, select the correct oredr to code css pseudo-classes. A. link,visited,hover,active B. hover,link,active,visited C. link,hover,visited,active D. link,hover,active,visited 3 / 15 3. 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;} 4 / 15 4. Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration? A. border-collapse B. border-width C. padding D. border 5 / 15 5. Which of the following property will be used to display border around a cell without any content? A. Noncontent-cell B. Blank-cell C. Empty-cell D. Void-cell 6 / 15 6. Which of these functions is the 2D transformation in the matrix format? A. perspective B. matrix3d() C. matrix2d() D. matrix() 7 / 15 7. 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 8 / 15 8. 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 9 / 15 9. Which statement about block and inline elements is true? A. By default, block elements are the same height and width as the content container between their tags; Inline elements span the entire width of its container. B. By default, block elements are span the entire width of its container; Inline elements are the same height and width as the content container between their tags; C. A nav tag element is an example of an inline element. Header tag is an example of a block element. D. A span tag is an example of a block element. Div tag is an example of an inline element. 10 / 15 10. When using position fixed, what will the element always be positioned relative to? A. the closest element with position:relative B. the viewport C. the parent element D. the wrapper element 11 / 15 11. Which of the following selector selects the element that is the first child of its parent that is of its type? A. ::first-letter B. ::first-line C. :last-child D. :first-of-type 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. If we want to show an Arrow as cursor, then which value we will use? A. pointer B. default C. arrow D. cursor 14 / 15 14. Which CSS property is used for controlling the layout? A. Header B. Footer C. Display D. Cascade 15 / 15 15. 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 Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin