You are on page 1of 9

Set2

1. A navigation bar needs standard HTML as a base 


A.    True
B.    False
2. The ____________ selector is used to specify a style for a single, unique element
A.    Id
B.    class
C.    text
D.    Bit

3. Which of the following ways below is correct to write a CSS?


A.    p {color:red; text-align:center};
B.    p {color:red; text-align:center}
C.    p {color:red; text-align:center;}
D.    p (color:red;text-align:center;)

4. The ____________ property specifies which sides of an element other floating elements are
not allowed.
A.    cleared
B.    clear
C.    float
D.    Both A and B  above

5. Which of the below is the correct way to set a background image?


A.    body {background-image:url(paper.gif);}
B.    body {background-image:url(‘paper.gif’)};
C.    body {background-image:url(‘paper.gif’)}
D.    body {background-image:url(‘paper.gif’);}

6. The ___________ property specifies the stack order of an element


A.    d-index
B.    s-index
C.    x-index
D.    z-index

7. Block elements can be aligned by setting the left and right margins to “align”
A.    True
B.    False

8. Which of the below is the correct way to set a font size?


A.    h2{font-size:200%;}
B.    h2{font-size:200px;}
C.    both a and b above
D.    h2{font-size:200;}
9. Elements in CSS cannot be positioned unless the positioning property is set first
A.    True
B.    False

10. What is CSS Float?


A.    allows other element to wrap around an element
B.    element can be pushed to the left to right
C.    both a and b above
D.    element can be pushed to any direction

11. To specify table border in CSS, ____________ property is  used


A.    tbl-border
B.    table-border
C.    tb-border
D.    border

12. _________ property can be used to Increase or decrease the space between words
A.    space
B.    word-spacing
C.    word-space
D.    Both b and c above

13. Multiple external style sheets cannot be referenced inside a single HTML document
A.    True
B.    False

14. element-width property can be used to set the width of an element


A.    True
B.    False

15. The _________ property is mostly used to remove underline from links
A.    text-trans
B.    text-transformation
C.    text-decoration
D.    text-deco

16. Which of the following statements is TRUE for CSS


A.    An external style sheet is ideal when the style is applied to many pages
B.    An inline style sheet should be used when a single document has a unique style
C.    Both A and B above
D.    An external style sheet can be written in HTML

17. Which of the following statements is/are true?


A.    Hiding an element can be done by setting the display property to “none”
B.    Hiding an element can be done by setting visibility property to “hidden”
C.    Both A and B above
D.    Hiding an element can be done by setting block property to “hidden”
18. The font-size value can be an absolute, or relative size
A.    True
B.    False

19. ______________ property specifies an image to use as the background of an element


A.    backg-img
B.    backg-image
C.    background-img
D.    background-image

20. ID name should not start with a number


A.    False
B.    True

Answers
1.A 2.A 3.C 4.B 5.D 6.D
7.B 8.C 9.A 10.C 11.C 12.B
13.B 14.B 15.C 16.A 17.C 18.A

19.D 20.B

Set 3:

1. Which selector is used to specify a style for a group of elements? 


A.id selector
B.class selector
C.neither (A) or nor (B)
D.either (A) or (B)
2. The class selector uses the HTML class attribute, and is defined with
A.”:”
B.”.”
C.”,”
D.None of the above
3. An external style sheet is ideal when the style is applied to
A.many pages
B.single pages
C.few pages
D.None of the above

4. To use inline styles you use the style attribute in the …………… tag
A.style tag
B.relevant tag
C.link tag
D.None of the above

5. Short form of pc is:


A.picaels
B.picels
C.picas
D.piacs

6. CSS provided the basic styles such as


A.specifying font and font styles
B.setting margins
C.applying colors
D.All of the above

7. What is the correct HTML for referring to an external style sheet?


A.A point is 1/74 inches.
B.A point is 1/72 inches.
C.A point is 1/75 inches.
D.A point is 1/78 inches.

8. In CSS, ……………are patterns used to select the element(s) you want to


style.
A.selectors
B.decleration
C.Either(A) or (B)
D.Neither (A) nor (B)
9. Which property is used to specify typefaces ?
A.font-family
B.font-name
C.font-face
D.font-type

10. If a font name has more than one word,it should be


A.single quoted
B.double quoted
C.comma
D.None of the above

11. How many type faces inside property “font-family” ?


A.1
B.Maximum 2
C.No Limit
D.Maximum 3

12. A Group of font families with a similar look


A.font family
B.generic family
C.font-size family
D.inherit family

13. The default value of the font-variant property is


A.normal
B.small-caps
C.large-caps
D.different

14. Which property can be set to specify small characters?


A.normal
B.small-caps
C.large-caps
D.different

15. Multiple font faces are separated by __________


A.Semicolon
B.Comma
C.Dot
D.Slash

16. Which is the correct syntax of the CSS?


A.<p style=”font-size:14pt”> Welcome to teds-india.</p>
B.<p style=”fontsize:14pt”> Welcome to teds-india.</p>
C.<p style=font-size:”14pt”> Welcome to teds-india.</p>
D.<p “style=font-size:14pt”> Welcome to teds-india.</p>

17. How do you make the text bold?


A.font-weight:bold
B.style:bold
C.font:b
D.None of the above

18. Fonts such as Times New Roman which have spaces in between must be
wrapped inside ______
A.Quotation Mark
B.Round Brackets
C.Triangular Brackets
D.Curly Braces

19. The CSS list properties allow you to:


A.Set different list item markers for ordered lists
B.Set different list item markers for unordered lists
C.Set an image as the list item marker
D.All of the above

20. How do you make a list that lists its items with squares?
A.list-type: square
B.list-style-type: square
C.type: 2
D.type: square

21. How do you make a list that lists its decimal values with Sequence Type?
A.list-style-type:decimal
B.list-type: square
C.type: 1.2
D.type: decimal

22. The sequencing or numbering styles in


A.ordered lists
B.Unordered lists
C.Linked lists
D.None of the above

23. Which property can be used to indicate whether the marker should appear
outside or inside of the box containing the bullet points?
A.list-style-character:
B.list-style-position:
C.list-style-image:
D.None of the above

24. Which property can be used to specify all the list properties into a single
expression?
A.ls-style
B.liststyle
C.list-style
D.None of the above

25. In HTML, there are _________ types of lists:


A.one
B.two
C.three
D.four

26. A filled circle can be represent as


A.disc
B.square
C.circle
D.None of the above

27. Which is the correct syntax?


A.list-style-image: url(”sqpurple.gif”);
B.list-style-image= url(‘sqpurple.gif’);
C.list-style-image- url(‘sqpurple.gif’);
D.list-style-image: url(‘sqpurple.gif’);

28. When using the shorthand property, the order of the values are
A.list-style-type
B.list-style-position
C.list-style-image
D.All of the above

29. CSS colors are defined using a _________ notation for the combination of
Red, Green, and Blue color values (RGB).
A.hexadecimal
B.octadecimal
C.nanodecimal
D.pentadecimal

30. Which colors are displayed using an equal amount of power to all of the
light sources ?
A.Red
B.Blue
C.gray
D.Yellow

Answers
1.B 2.B 3.A 4.B 5.C 6.D

7.B 8.D 9.A 10.A 11.C 12.B

13.A 14.B 15.B 16.A 17.A 18.A

19.D 20.B 21.A 22.A 23.B 24.C

25.B 26.A 27.D 28.D 29.A 30.C

You might also like