Odesk CSS 3 Test

Question 1:
Which of the following is true for a class selector?
a.It applies the style to all the elements defined with that style

Question 2:
Which of the following does not apply to external styles?
a.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?
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?
a.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?
a.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?
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?
a.Load

Question 8:
Your website displays some articles on java programming. The articles contain blocks of javacode as well. If you want to leave ‘1 cm’ space above and below the code blocks, you would use
a.    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?
a.    Text-transform

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

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?

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?

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?

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?

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?
                     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?
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:

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?

b.            Text-transform

Question 12: Which of the following are correct values of the overflow property?
a.            Visible
b.            Hidden
c.            Scroll
d.            Auto
Ans: A,B,C,D

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

b.            Style

Question 16 Which of the following is not true for a style sheet?

a.            A style sheet defines how an html element will be displayed

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

c.            P{line-height:1cm}

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

c.            Hidden

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

a.    It applies the style to all the elements defined with that style


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

a.    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?

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?

a.    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?

a.    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?

o    A. B. by using the id Attribute in a td cell
o    C.

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

a.    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:

a.    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?

a.    Text-transform
Question 14:
Which element property is required to define internal styles?

a.    Style
Question 16
Which of the following is not true for a style sheet?

a.    A style sheet defines how an html element will be displayed
Question 20
You want to increase the space between the lines in all you paragraphs. What will you use?

a.    P{line-height:1cm}
01. Question: Which of the following is true for a class selector?
Answer:  d. It applies the style to all the elements defined with that style

02. Question: Which of the following does not apply to external styles?
Answer: c. Highest priority
03. Question: 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?
Answer: a.Image bar.gif will be tiled vertically in the background in the center of the page.

04. Question: Which of the following is not a valid text-decoration option?
Answer: Text-decoration :in-line

05. Question: 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?
Answer: b. Blue

06. Question: The following is a style definition:
Td#aln
{text-align:center;
color:blue}
How will you refer to this style in your web page?
Answer: b. by using the id Attribute in a td cell

07. Question: Which of the following is not a valid property of an aural style sheet?
Answer: c. Load

08. Question: 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:
Answer: b. Code{margin-top:1cm; margin-bottom:1cm}

09. Question: 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?
Answer: b. Text-transform

Question 10: Which of the following are correct values of the overflow property?
Answer: a. Visible; b. Hidden; c. Scroll; d. Auto

Question 11: Which element property is required to define internal styles?
Answer: b. Style

Question 12: Which of the following is not true for a style sheet?
Answer: a. A style sheet defines how an html element will be displayed

Question 13: You want to increase the space between the lines in all you paragraphs. What will you use?
Answer: c. P{line-height:1cm}

Question 14: The default value for the overflow property is:
Answer: c. Hidden

No comments:

Post a Comment