1)What does CSS stand for?

  1. Creative Style Sheets
  2. Cascading Style Sheets
  3. Computer Style Sheets
  4. Custom Style Sheets

Correct answer : B

2)Which of the following is the correct syntax for writing a CSS rule?

  1. element { property: value; }
  2. element: property: value;
  3. element { property = value; }
  4. element property: value;

Correct answer : A

3)How do you apply a style to a specific element on a webpage?

  1. By using the element's ID attribute
  2. By using the element's class attribute
  3. By using the element's name attribute
  4. All of the above

Correct answer : D

4)What is the default value for the position property in CSS?

  1. absolute
  2. relative
  3. fixed
  4. static

Correct answer : D

5)How do you apply a style to all the paragraphs on a webpage?

  1. By using the p element as the selector
  2. By using the #p as the selector
  3. By using the .p as the selector
  4. None of the above

Correct answer : A

6)Which of the following is not a valid value for the display property in CSS?

  1. block
  2. inline
  3. none
  4. list

Correct answer : D

7)How do you specify a color in CSS?

  1. By using the color name, such as "red"
  2. By using the RGB value, such as "rgb(255,0,0)"
  3. By using the hexadecimal value, such as "#FF0000"
  4. All of the above

Correct answer : D

8)What is a CSS class?

  1. A group of elements that share the same style
  2. A specific element that has a unique style
  3. A type of selector that is used to apply a style to a specific element
  4. None of the above

Correct answer : A

9)How do you specify the font size in CSS?

  1. By using the font-size property and a number value, such as "12px"
  2. By using the size property and a number value, such as "12"
  3. By using the font property and a size value, such as "12pt"
  4. All of the above

Correct answer : A

10)What is the default value for the visibility property in CSS?

  1. visible
  2. hidden
  3. transparent
  4. None of the above

Correct answer : A

11)How do you create a CSS rule that only applies to a specific element when it is hovered over with the mouse?

  1. By using the :hover pseudo-class
  2. By using the hover property
  3. By using the mouseover property
  4. None of the above

Correct answer : A

12)Which of the following is not a valid value for the overflow property in CSS?

  1. visible
  2. hidden
  3. scroll
  4. overflow

Correct answer :D

13)How do you specify the background color of an element in CSS?

  1. By using the background-color property and a color value
  2. By using the bg-color property and a color value
  3. By using the color property and a background-color value
  4. None of the above

Correct answer : A

14)What is the default value for the float property in CSS?

  1. left
  2. right
  3. none
  4. Both a and b

Correct answer : C

15)How do you specify the font family of an element in CSS?

  1. By using the font-family property and a list of font names, such as "Arial, Helvetica, sans-serif"
  2. By using the font property and a list of font names, such as "Arial, Helvetica, sans-serif"
  3. By using the family property and a list of font names, such as "Arial, Helvetica, sans-serif"
  4. All of the above

Correct answer : A

16)What is the default value for the z-index property in CSS?

  1. 0
  2. 1
  3. -1
  4. None of the above

Correct answer : D
Default value is : auto

17)How do you specify the width of an element in CSS?

  1. By using the width property and a number value, such as "200px"
  2. By using the size property and a number value, such as "200"
  3. By using the width property and a percentage value, such as "50%"
  4. Both A and C

Correct answer : D

18)What is a CSS pseudo-class?

  1. A special class that is used to apply a style to a specific element
  2. A class that is used to apply a style to a group of elements
  3. A class that is used to apply a style to an element when it is in a specific state or condition
  4. None of the above

Correct answer : C

19)How do you specify the padding of an element in CSS?

  1. By using the padding property and a number value, such as "10px"
  2. By using the padding-top, padding-right, padding-bottom, and padding-left properties and a number value, such as "10px"
  3. By using the space property and a number value, such as "10"
  4. Both B and A

Correct answer : D

20)What is the default value for the cursor property in CSS?

  1. pointer
  2. default
  3. auto
  4. None of the above

Correct answer : C

21)How do you specify the margin of an element in CSS?

  1. By using the margin property and a number value, such as "10px"
  2. By using the margin-top, margin-right, margin-bottom, and margin-left properties and a number value, such as "10px"
  3. By using the space property and a number value, such as "10"
  4. Both A and B

Correct answer : D

22)What is the default value for the display property of a list item in CSS?

  1. block
  2. inline
  3. list-item
  4. None of the above

Correct answer : C

23)How do you specify the border of an element in CSS?

  1. By using the border property and a number value, such as "1px solid #000000"
  2. By using the border-top, border-right, border-bottom, and border-left properties and a number value, such as "1px solid #000000"
  3. By using the border property and a color value, such as "#000000"
  4. Both A and B

Correct answer : D

24)What is the default value for the position property of a list item in CSS?

  1. static
  2. relative
  3. absolute
  4. fixed

Correct answer : A

25)How do you specify the font style of an element in CSS?

  1. By using the font-style property and a value such as "italic" or "oblique"
  2. By using the style property and a value such as "italic" or "oblique"
  3. By using the font property and a value such as "italic" or "oblique"
  4. All of the above

Correct answer : A

26)What is the default value for the clear property in CSS?

  1. none
  2. left
  3. right
  4. All of the above

Correct answer : A

27)How do you specify the font weight of an element in CSS?

  1. By using the font-weight property and a value such as "bold" or "normal"
  2. By using the weight property and a value such as "bold" or "normal"
  3. By using the font property and a value such as "bold" or "normal"
  4. All of the above

Correct answer : A

28)What is the default value for the text-align property in CSS?

  1. left
  2. right
  3. center
  4. justify

Correct answer : A

29)How do you specify the text decoration of an element in CSS?

  1. By using the text-decoration property and a value such as "underline" or "overline"
  2. By using the decoration property and a value such as "underline" or "overline"
  3. By using the text property and a value such as "underline" or "overline"
  4. All of the above

Correct answer : A

30)What is the default value for the visibility property of a list item in CSS?

  1. visible
  2. hidden
  3. transparent
  4. None of the above

Correct answer : A

31)How do you specify the vertical alignment of an element in CSS?

  1. By using the vertical-align property and a value such as "top" or "bottom"
  2. By using the align property and a value such as "top" or "bottom"
  3. By using the valign property and a value such as "top" or "bottom"
  4. All of the above

Correct answer : A

32)What is the default value for the list-style-type property in CSS?

  1. none
  2. disc
  3. circle
  4. square

Correct answer : B

33)How do you specify the text color of an element in CSS?

  1. By using the text-color property and a color value
  2. By using the color property and a text-color value
  3. By using the font-color property and a color value
  4. None of the above

Correct answer : B

34)What is the default value for the list-style-position property in CSS?

  1. outside
  2. inside
  3. none
  4. Both a and b

Correct answer : A

35)How do you specify the text transformation of an element in CSS?

  1. By using the text-transform property and a value such as "uppercase" or "lowercase"
  2. By using the transform property and a value such as "uppercase" or "lowercase"
  3. By using the text property and a value such as "uppercase" or "lowercase"
  4. All of the above

Correct answer : A

36)What is the default value for the list-style-image property in CSS?

  1. none
  2. url("image.jpg")
  3. url("image.png")
  4. Both b and c

Correct answer : A

37)How do you specify the vertical spacing between lines of text in CSS?

  1. By using the line-spacing property and a number value, such as "1.5"
  2. By using the leading property and a number value, such as "1.5"
  3. By using the spacing property and a number value, such as "1.5"
  4. All of the above

Correct answer : A

38)What is the default value for the text-indent property in CSS?

  1. 0
  2. 1
  3. -1
  4. None of the above

Correct answer : A

39)How do you specify the horizontal spacing between characters of text in CSS?

  1. By using the letter-spacing property and a number value, such as "1px"
  2. By using the kerning property and a number value, such as "1px"
  3. By using the spacing property and a number value, such as "1"
  4. All of the above

Correct answer : A

40)What is the default value for the text-transform property in CSS?

  1. none
  2. uppercase
  3. lowercase
  4. capitalize

Correct answer : A

41)How do you specify the text shadow of an element in CSS?

  1. By using the text-shadow property and values for the horizontal offset, vertical offset, blur radius, and color, such as "2px 2px 5px #000000"
  2. By using the shadow property and values for the horizontal offset, vertical offset, blur radius, and color, such as "2px 2px 5px #000000"
  3. By using the text property and values for the horizontal offset, vertical offset, blur radius, and color, such as "2px 2px 5px #000000"
  4. All of the above

Correct answer : A

42)What is the default value for the text-decoration property in CSS?

  1. none
  2. underline
  3. overline
  4. line-through

Correct answer : A

43)How do you specify the text direction of an element in CSS?

  1. By using the text-direction property and a value such as "ltr" or "rtl"
  2. By using the direction property and a value such as "ltr" or "rtl"
  3. By using the text property and a value such as "ltr" or "rtl"
  4. All of the above

Correct answer : B

44)What is the default value for the text-align-last property in CSS?

  1. auto
  2. right
  3. center
  4. justify

Correct answer : A

45)How do you specify the word spacing of an element in CSS?

  1. By using the word-spacing property and a number value, such as "1px"
  2. By using the spacing property and a number value, such as "1"
  3. By using the words property and a number value, such as "1px"
  4. All of the above

Correct answer : A

46)What is the default value for the text-overflow property in CSS?

  1. clip
  2. ellipsis
  3. string
  4. None of the above

Correct answer : A

47)How do you specify the white space handling of an element in CSS?

  1. By using the white-space property and a value such as "normal" or "pre"
  2. By using the space property and a value such as "normal" or "pre"
  3. By using the white property and a value such as "normal" or "pre"
  4. All of the above

Correct answer : A

48)What is the default value for the white-space-collapse property in CSS?

  1. collapse
  2. separate
  3. discard
  4. None of the above

Correct answer : A

49)How do you specify the word break handling of an element in CSS?

  1. By using the word-break property and a value such as "normal" or "break-all"
  2. By using the break property and a value such as "normal" or "break-all"
  3. By using the word property and a value such as "normal" or "break-all"
  4. All of the above

Correct answer : A

50)What is the default value for the word-wrap property in CSS?

  1. normal
  2. break-word
  3. none
  4. Both a and b

Correct answer : A