css-exam 0 votes, 0 avg 530 123456789101112131415 CSS Questions 1 / 15 1. Which Event Will Be Used When A Connection To The Server Is Opened. A. Onmessage B. Onopen C. Onerror D. none of the above 2 / 15 2. Which of the following CSS3 property specifies the sequential navigation order for an element? A. nav B. class C. nav-index D. class-index 3 / 15 3. Which of the following selector selects all element of E that have the attribute attr that end with the given value? A. E[attr^=value] B. E[attr$=value] C. E[attr*=value] D. E[attr&=value] 4 / 15 4. 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 5 / 15 5. Which of the following property sets the background image to scroll or not to scroll with its associated element’s content? A. background-scroll B. background-attach C. background-attachment D. background-allowance 6 / 15 6. 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 7 / 15 7. If we want to show an Arrow as cursor, then which value we will use? A. pointer B. default C. arrow D. cursor 8 / 15 8. The default value of "position" attribute is___________ A. fixed B. absolute C. inherit D. relative 9 / 15 9. 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 10 / 15 10. The default value of "position" attrubute is? A. fixed B. absolute C. inherit D. static 11 / 15 11. 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 12 / 15 12. Which of the following is only for table elements? A. initial B. collapse C. hidden D. inherit 13 / 15 13. When we write < img src="img.png" > , what "img.png" inside double quote implies? A. element B. attribute C. value D. operator 14 / 15 14. 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;} 15 / 15 15. Which of the following CSS Property selects an animation defined in an @keyframes rule and applies it to the element? A. animation B. animation-name C. animation-element D. none of the above Your score isThe average score is 50% LinkedIn Facebook VKontakte 0% Restart quiz By Wordpress Quiz plugin