css-exam 0 votes, 0 avg 548 123456789101112131415 CSS Questions 1 / 15 1. In the example below, when will the color pink be applied to the anchor element? a:active{ color:pink; } A. The color of the link will be display as pink while the link is being clicked but before the mouse click is released. B. The color of the link will display as pink before it has been clicked. C. The color of the link will display as pink after its been clicked or if the mouse is hovering over the link. D. The color of the link will display as pink on mouse hover. 2 / 15 2. 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 --> 3 / 15 3. When we write < img src="img.png" > , what "img.png" inside double quote implies? A. element B. attribute C. value D. operator 4 / 15 4. 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 5 / 15 5. CSS is written in which language? A. PHP B. HTML C. JAVA D. Python 6 / 15 6. 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 7 / 15 7. 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. 8 / 15 8. Which variable defines the data type of the content in CSS? A. data_type B. content_type C. http_cookie D. http_user_agent 9 / 15 9. 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 10 / 15 10. 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 11 / 15 11. The CSS property used to set the distance between the borders of the adjacent cells in the table is__________ A. border-collapse B. cell-collapse C. cell-spacing D. border-spacing 12 / 15 12. Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter? A. text-style : capital; B. transform : capitalize; C. text-transform : capital; D. text-transform : capitalize; 13 / 15 13. Which of the following is used to specify the subscript of text using CSS? A. align: subscript B. vertical-align: subscript C. vertical-align: sub D. alignment:sub 14 / 15 14. 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() 15 / 15 15. Which of the following CSS Property defines which property values to apply to the element before the animation begins (if delayed) and after it ends? A. animation-play B. animation-delay C. animation-play-state D. animation-fill-mode Your score isThe average score is 49% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin