Pages

Thursday, January 15, 2015

oDesk Css tests Answers 2015

Question 1:Which of the following is true for a class selector?

Ans:D ;   It applies the style to all the elements defined with that style

 Question 2: Which of the following does not apply to external styles?

Ans: C ; Highest priority Question

3: Read the following Code: BODY { Background: white url(“bar.gif”); Background-repeat: repeat-y; Background-position: center; } What will be the output of this code?

Ans: A ; Image bar.gif will be tiled vertically in the background in the center of the page.

Question 4: Which of the following is not a valid text-decoration option?

Ans: B ; Text-decoration :in-line

Question 5: You defined some links as follows: A:link{color:green} A:visited{color:blue} A:hover{color:red) A:active{color:black} What will be the color, when the mouse goes over a link?

 Ans: B ; Blue

Question 6: The following is a style definition: Td#aln {text-align:center; color:blue} How will you refer to this style in your web page?

Ans: B ; by using the id Attribute in a td cell·

 Question 7: Which of the following is not a valid property of an aural style sheet?

 Ans: C ; Load

Question 8: Your website displays some articles on java programming. The articles contain blocks of java code as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use:

Ans: B ; Code{margin-top:1cm; margin-bottom:1cm}

 Question 10: You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?

 Ans: B ; Text-transform Question

11: Which of the following are correct values of the overflow property?

Ans: A,B,C,D ; Visible Hidden Scroll Auto

Question 12: Which element property is required to define internal styles?

Ans: B ; Style Question

13: Which of the following is not true for a style sheet?

Ans: A ; A style sheet defines how an html element will be displayed

 Question 15: You want to increase the space between the lines in all you paragraphs. What will you use?

Ans: C ; P{line-height:1cm}

 Question 16 : The default value for the overflow property is:

 Ans: C ; Hidden

No comments:

Post a Comment