CSS Basic || Live quiz || Do it now

CSS BASIC QUIZ

Post your answers and have a Happy Learning! grinning:

  1. The full form of CSS is:
    A) Cascading Style Sheets
    B) Colored Special Sheets
    C) Color and style sheets
    D) None of the Above

  2. How can we change the background color of an element?
    A) background-color
    B) color
    C) Both A and B
    D) None of the Above

  3. In how many ways can CSS be written?
    A) 1
    B) 2
    C) 3
    D) 4

  4. How can we select an element with a specific ID in CSS?
    A) #
    B) .
    C) ^
    D) None of the Above

  5. How can we write comments in CSS?
    A) /* */
    B) //
    C) #
    D) All of the above

  6. In the below code snippet, in what order will the margins be added?
    p {
    margin: 25px, 50px, 75px, 100px;
    }
    A) Top, Right, Bottom, Left
    B) Top, Left, Bottom, Right
    C) Top, Bottom, Right, Left
    D) Right, Left, Top, Bottom

  7. What is the correct syntax for referring an external CSS?
    A) <link rel="stylesheet" type="text/css" href="style.css">
    B) <style rel="stylesheet" type="text/css" href="style.css">
    C) Both A and B
    D) None of the above

  8. What type of CSS is the following code snippet?
    <h1 style="color:blue;">A Blue Heading</h1>
    A) Inline
    B) Internal
    C) External
    D) None of the above

  9. Which HTML tag is used to declare internal CSS?
    A) <style>
    B) <link>
    C) <script>
    D) None of the above

  10. Which of the following are parts of the CSS box model?
    A) Margins
    B) Borders
    C) Padding
    D) All of the above

1 Like

1.A
2.A
3.C
4.A
5.A
6.A
7.A
8.A
9.A
10…D All

1 Like

1)A -Cascading style sheets
2)A -background-color
3)C - 3
4)A - #
5)A - /* */
6)A - TRBL
7) A - (link)
8)A - Inline
9)A - style
10)D - margin,borders,padding

1 Like

1.A
2.A
3.C
4.A
5.A
6.A
8.A inline
10.D

1 Like

1.A 2.A 3.C 4.A 5.A 6.A 7.A 8.A 9.A 10.D

1.A 2.A 3.C 4.A 5.A 6.A 7.A 8.A 9.A 10.D

1 Like

1 A
2 A
3 C
4 A
5 A
6 A
7 A
8 A Inline
9 A
10 D

1 Like
  1. Option : A
  2. Option : A
  3. Option : C
  4. Option : A
  5. Option : A
  6. Option : A
  7. Option : A
  8. Option : A
  9. Option : A
  10. Option : D
1 Like

1A-cascading style sheet
2.A-backround- color
3.C-3
4.A-#
5.A-/* */
6…A-TRBL
7.A-(Link)
8.A Inline
9.A-style
10.D-marjin,borders,padding

1 Like

Congratulations to all! You’re doing well, :smiley: and I’m happy to see this. I expect this curiosity throughout our FSR journey.

1 Like

Answers:

1.A
2.A
3.C
4.A
5.A
6.A
7.A
8.A
9.A
10.D

1 Like
  1. a.cascading style sheet
  2. a.background-color
  3. c.3
  4. a.#
  5. a./* */
  6. a.Top,Right,Bottom,Left
  7. a.
  8. a.inline
  9. a.style
  10. d.all of the above

1)A
2)A
3)C
4)A
5)D
6)A
7)A
8)A
9)A
10)D

  1. The full form of CSS is:
    A) Cascading Style Sheets
    B) Colored Special Sheets
    C) Color and style sheets
    D) None of the Above

  2. How can we change the background color of an element?
    A) background-color
    B) color
    C) Both A and B
    D) None of the Above

  3. In how many ways can CSS be written?
    A) 1
    B) 2
    C) 3
    D) 4

  4. How can we select an element with a specific ID in CSS?
    A) #
    B) .
    C) ^
    D) None of the Above

  5. How can we write comments in CSS?
    A) /* */
    B) //
    C) #
    D) All of the above

  6. In the below code snippet, in what order will the margins be added?
    p {
    margin: 25px, 50px, 75px, 100px;
    }
    A) Top, Right, Bottom, Left
    B) Top, Left, Bottom, Right
    C) Top, Bottom, Right, Left
    D) Right, Left, Top, Bottom

  7. What is the correct syntax for referring an external CSS?
    A) <link rel="stylesheet" type="text/css" href="style.css">
    B) <style rel="stylesheet" type="text/css" href="style.css">
    C) Both A and B
    D) None of the above

  8. What type of CSS is the following code snippet?
    <h1 style="color:blue;">A Blue Heading</h1>
    A) Inline
    B) Internal
    C) External
    D) None of the above

  9. Which HTML tag is used to declare internal CSS?
    A) <style>
    B) <link>
    C) <script>
    D) None of the above

  10. Which of the following are parts of the CSS box model?
    A) Margins
    B) Borders
    C) Padding
    D) All of the above
    [/quote]

1.A
2.A
3.C
4.A
5.A
6.A
7.A
8.A. inline
9.A
10.D

  1. A - Cascading style sheets
  2. A - background-color
  3. C - 3
  4. A - #
  5. A - /* */
  6. A - Top, Right, Bottom, Left
  7. A. - <link rel="stylesheet" type="text/css" href="style.css">
  8. A - Inline
  9. A -
  10. D - All of the above
1 Like