CSS 2.0 Test Answer Part-02

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

a. by using the class attribute in a td cell

b. by using the id Attribute in a td cell

c. by using the class attribute in any html element which supports the class attribute

d. by using the id attribute in any html element which support the id attribute

 

17. Which of the following properties specifies the minimum number of lines of a paragraph that must be left at the bottom of a page?

a. Orphans

b. Widows

c. Bottom

d. Overflow

e. None of the above

 

18. Which of the following is true for an ID selector?

a. It uses a dot as the separator symbol

b. It applies the style to only the first element defined with that selector

c. It applies the style to only the last elements defined with that selector

d. It applies the style to all the elements defined with that selector

 

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

a. P{width:1cm}

b. P{height: 1cm}

c. P{line-height:1cm}

d. P{line-width:1cm}

 

20. Which of the following cursor types is not valid?

a.wait

b.pointer

c.text

d.image

 

21. Which of the following are valid css text properties in CSS2.0?

a. direction

b. text-transform
c. text-indent

d. text-height

 

22. When are you likely to use an id selector in your stylesheet?

a. When you want to apply the style to elements that appear repeatedly on a page

b. When you want to apply the style to only one element per page

c. The id selector is just like the class selector

d. It is better to use the class selector instead

 

23.Which of the following are correct values of the overflow property?

a.Visible (default)
b.Hidden
c.Scroll
d.Auto

24. How will you display text as a superscript?

a. Vertical-align: super

b. Vertical-align: superscript

c. Vertical-align : top

 

25. Which of the following font properties deals with aspect value?

a.Font-weight

b.Font-variant

c.Font-size-adjust

d.Font-size

 

26. Consider this style definition:
P i{color:red}
What do you understand about the contextual selector used above?

a.All the text within a paragraph will be italicized

b.All the italic text in the page will have red color

c.All the page text undertag and tag will be red

d.All the italic text with in a paragraph will be red

 

27. Background-position sets the position of the background image what happens if its value is 0% 0%?

a.Image will have zero width and height so it will be hidden.

b.Image will be positioned at the upper left corner.

c.Image will be positioned at the lower right corner

d.None of the above

 

28. Which of the following values are correct for Font-style?

a.Normal, wider, narrower

b.Normal , italic, oblique

c.Normal, bold, lighter

d.Small , medium , large

 

29. Which of the following is not a valid page break?

a. page-break-inside

b. page-break-outside

c. page-break-before

d. page-break-after

 

30. Which of the following is not a correct keyword value for the display property?

a.Expended 

b.Inline-table

c.Table-row

d.Table-column-group

Comments

comments

2 Comments

Leave a Comment

Time limit is exhausted. Please reload CAPTCHA.