css-exam 0 votes, 0 avg 551 123456789101112131415 CSS Questions 1 / 15 1. Using an attribute selector, how would you select an a tag element with a 'title' attribute? A. a[title]{...} B. a>title{…} C. a.title{…} D. a=title{…} 2 / 15 2. The default value of "position" attrubute is? A. fixed B. absolute C. inherit D. static 3 / 15 3. 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 4 / 15 4. 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 5 / 15 5. Which of the following is only for table elements? A. initial B. collapse C. hidden D. inherit 6 / 15 6. 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 7 / 15 7. Identify the outline property that specifies the amount of area extended beyond the border box. A. outset3d B. inset C. outset D. inset3d 8 / 15 8. There are many properties that can be used to align elements and create page layouts such as float,postion,flexbox and grid. Out of these four properties, which one should be used to align a global navigation bar which stays fixed at the top of the page? A. position B. flexbox C. grid D. float 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. 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 --> 11 / 15 11. In the following media query example, what conditions are being targeted? @media(min-width:1024px),screen and (orientation: landscape){…..} A. The rule will apply to a device that has a width of 1024px or narrower and is a screen device in landscape mode. B. The rule will apply to a device that has a width of 1024px or wider and is a screen device in landscape mode. C. The rule will apply to a device that has width of 1024px or narrower. Or is a screen device in landscape mode. D. The rule will apply to a device that has either a width of 1024px or wider, or is a screen device in landscape mode. 12 / 15 12. Which of the following CSS property defines how an image or video fits into container with established height and width? A. object-fit B. object-contain C. object-cover D. position:fixed 13 / 15 13. Which of the following property of a anchor element signifies unvisited hyperlinks? A. :link B. :visited C. :hover D. :active 14 / 15 14. Which of these functions is the 2D transformation in the matrix format? A. perspective B. matrix3d() C. matrix2d() D. matrix() 15 / 15 15. Which of the following is not value for the font-stretch(Font descriptor)? A. normal B. 50% C. expanded D. ultra-expanded Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin