Pages

CSS

CSS 2.0 Test Answer-01


1. Which of the following is not a valid text-decoration option?
         a. Text-decoration: line-through
  b. Text-decoration: in-line
         c. Text-decoration: overline
         d. Text-decoration: underline
         e. Text-decoration: none
2. The following is a style definition:
BODY {background: url(''banner.jpeg'') right top}
What is the percentage of the background-position?
    a. 0% 0%
    b. 0% 100%
    c. 100% 0%
    d. 100% 100%
3. Which of the following is correct?
a. Blockquote{text-padding:2em 4em 5em}
b. Blockquote{padding-x:2em 4em 5em}
c. Blockquote{padding-y:2em 4em 5em}
d. Blockquote{padding:2em 4em 5em}
4. You want to display a table whose cell borders are as per the following rules:
          1. Left Border should be double
          2. Right Border should be dashed
          3. Top Border should be dotted
          4. Bottom Border should be solid
          Choose the correct style definition:
a. border-style:double dotted dashed solid
b. border-style:dotted dashed solid double
c. border-style:dashed double solid dotted
d. border-style:solid double dotted dashed
5. The following is a style definition:
#styl2
{
Color: red;
}
How will you refer to this style in you web pages?
 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 supports the id attribute.
6. Which element property is required to define internal styles?
a.Class
b.Style
c.span
d.link
7. The Font “Times New Roman” has an aspect value of 0.46 .What do you understand from this?
      a. When font size is set to 46px. The height of the letter ‘x’ will be 100px
     
b. When font size is set to 100px. The height of the letter ‘x’ will be 46px
8. Which of the following border styles is not correct?
       a. Border-style: ridge
       b. Border-style: outset
       c. Border-style: dotted
       d. Border- style: matted
9. Which of the following is not a valid property of an aural style sheet?
         a. Cue
         b.Voice-family
         c. Load
         d. Speak
  e. All of the above are valid
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-mode
b.Text-transform
c.Text-decoration
d.Text-shadow
e.Text-case
11. Here is one of the styles defined in your webpage:
     .redborder
     {
     border-color:#ff0000;
     border-width:thin thick
     }
     What type of border will be displayed if one of the paragraphs defined in the webpage uses this style?
a. This will display a red border with thin top and bottom
b. This will display a red border with thick top and bottom
c. This will display a red border with thick left and right
d. This will not display any border (border-style nai tai no display)
12. Consider the following font definition:
Font-weight:  bold  
What is the other way of getting the same result?
    a)     font-weight:b
    b)     font-weight:bolder
    c)     font-weight:bld
    d)     font-weight:700
13. 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. Green
            b. Blue
            c. Red
            d. Black
14. Which style property can be used to display only some part of an image?
             a. snap
             b. clip
             c. scroll
             d. visible
15. Which of the following is true for a class selector?
a. It uses a hash as the separator symbol
b. It applies the style to only the first element defined with that style
c. It applies the style to only the last element defined with that style
d. It applies the style to all the elements defined with that style

No comments:

Post a Comment