HTML, CSS, and Python MCQs
HTML MCQs
1. What does HTML stand for? (Q1)
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
2. Which HTML tag is used to define an internal style sheet? (Q2)
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
3. Which tag is used to insert an image in HTML? (Q3)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
4. Which tag is used to create a hyperlink? (Q4)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
5. What is the correct HTML element for inserting a line break? (Q5)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
HTML, CSS, and Python MCQs
6. What does HTML stand for? (Q6)
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
7. Which HTML tag is used to define an internal style sheet? (Q7)
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
8. Which tag is used to insert an image in HTML? (Q8)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
9. Which tag is used to create a hyperlink? (Q9)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
10. What is the correct HTML element for inserting a line break? (Q10)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
11. What does HTML stand for? (Q11)
HTML, CSS, and Python MCQs
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
12. Which HTML tag is used to define an internal style sheet? (Q12)
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
13. Which tag is used to insert an image in HTML? (Q13)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
14. Which tag is used to create a hyperlink? (Q14)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
15. What is the correct HTML element for inserting a line break? (Q15)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
16. What does HTML stand for? (Q16)
a) Hyper Text Markup Language
HTML, CSS, and Python MCQs
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
17. Which HTML tag is used to define an internal style sheet? (Q17)
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
18. Which tag is used to insert an image in HTML? (Q18)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
19. Which tag is used to create a hyperlink? (Q19)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
20. What is the correct HTML element for inserting a line break? (Q20)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
21. What does HTML stand for? (Q21)
a) Hyper Text Markup Language
b) Home Tool Markup Language
HTML, CSS, and Python MCQs
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
22. Which HTML tag is used to define an internal style sheet? (Q22)
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
23. Which tag is used to insert an image in HTML? (Q23)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
24. Which tag is used to create a hyperlink? (Q24)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
25. What is the correct HTML element for inserting a line break? (Q25)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
26. What does HTML stand for? (Q26)
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
HTML, CSS, and Python MCQs
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
27. Which HTML tag is used to define an internal style sheet? (Q27)
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
28. Which tag is used to insert an image in HTML? (Q28)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
29. Which tag is used to create a hyperlink? (Q29)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
30. What is the correct HTML element for inserting a line break? (Q30)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
31. What does HTML stand for? (Q31)
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
HTML, CSS, and Python MCQs
Answer: Hyper Text Markup Language
32. Which HTML tag is used to define an internal style sheet? (Q32)
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
33. Which tag is used to insert an image in HTML? (Q33)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
34. Which tag is used to create a hyperlink? (Q34)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
35. What is the correct HTML element for inserting a line break? (Q35)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
36. What does HTML stand for? (Q36)
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
HTML, CSS, and Python MCQs
37. Which HTML tag is used to define an internal style sheet? (Q37)
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
38. Which tag is used to insert an image in HTML? (Q38)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
39. Which tag is used to create a hyperlink? (Q39)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
40. What is the correct HTML element for inserting a line break? (Q40)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
41. What does HTML stand for? (Q41)
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
42. Which HTML tag is used to define an internal style sheet? (Q42)
HTML, CSS, and Python MCQs
a) <style>
b) <script>
c) <css>
d) <link>
Answer: <style>
43. Which tag is used to insert an image in HTML? (Q43)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
44. Which tag is used to create a hyperlink? (Q44)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
45. What is the correct HTML element for inserting a line break? (Q45)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
46. What does HTML stand for? (Q46)
a) Hyper Text Markup Language
b) Home Tool Markup Language
c) Hyperlinks and Text Markup Language
d) Hyper Tool Markup Language
Answer: Hyper Text Markup Language
47. Which HTML tag is used to define an internal style sheet? (Q47)
a) <style>
HTML, CSS, and Python MCQs
b) <script>
c) <css>
d) <link>
Answer: <style>
48. Which tag is used to insert an image in HTML? (Q48)
a) <image>
b) <img>
c) <picture>
d) <src>
Answer: <img>
49. Which tag is used to create a hyperlink? (Q49)
a) <a>
b) <link>
c) <href>
d) <hyper>
Answer: <a>
50. What is the correct HTML element for inserting a line break? (Q50)
a) <break>
b) <lb>
c) <br>
d) <line>
Answer: <br>
HTML, CSS, and Python MCQs
CSS MCQs
1. What does CSS stand for? (Q1)
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
Answer: Cascading Style Sheets
2. Which HTML attribute is used to define inline styles? (Q2)
a) class
b) style
c) styles
d) font
Answer: style
3. How do you add a background color in CSS? (Q3)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
4. Which symbol is used for ID selectors in CSS? (Q4)
a) .
b) #
c) *
d) $
Answer: #
5. Which property is used to change the text color of an element? (Q5)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
HTML, CSS, and Python MCQs
6. What does CSS stand for? (Q6)
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
Answer: Cascading Style Sheets
7. Which HTML attribute is used to define inline styles? (Q7)
a) class
b) style
c) styles
d) font
Answer: style
8. How do you add a background color in CSS? (Q8)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
9. Which symbol is used for ID selectors in CSS? (Q9)
a) .
b) #
c) *
d) $
Answer: #
10. Which property is used to change the text color of an element? (Q10)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
11. What does CSS stand for? (Q11)
HTML, CSS, and Python MCQs
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
Answer: Cascading Style Sheets
12. Which HTML attribute is used to define inline styles? (Q12)
a) class
b) style
c) styles
d) font
Answer: style
13. How do you add a background color in CSS? (Q13)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
14. Which symbol is used for ID selectors in CSS? (Q14)
a) .
b) #
c) *
d) $
Answer: #
15. Which property is used to change the text color of an element? (Q15)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
16. What does CSS stand for? (Q16)
a) Computer Style Sheets
HTML, CSS, and Python MCQs
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
Answer: Cascading Style Sheets
17. Which HTML attribute is used to define inline styles? (Q17)
a) class
b) style
c) styles
d) font
Answer: style
18. How do you add a background color in CSS? (Q18)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
19. Which symbol is used for ID selectors in CSS? (Q19)
a) .
b) #
c) *
d) $
Answer: #
20. Which property is used to change the text color of an element? (Q20)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
21. What does CSS stand for? (Q21)
a) Computer Style Sheets
b) Creative Style System
HTML, CSS, and Python MCQs
c) Cascading Style Sheets
d) Colorful Style Sheets
Answer: Cascading Style Sheets
22. Which HTML attribute is used to define inline styles? (Q22)
a) class
b) style
c) styles
d) font
Answer: style
23. How do you add a background color in CSS? (Q23)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
24. Which symbol is used for ID selectors in CSS? (Q24)
a) .
b) #
c) *
d) $
Answer: #
25. Which property is used to change the text color of an element? (Q25)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
26. What does CSS stand for? (Q26)
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
HTML, CSS, and Python MCQs
d) Colorful Style Sheets
Answer: Cascading Style Sheets
27. Which HTML attribute is used to define inline styles? (Q27)
a) class
b) style
c) styles
d) font
Answer: style
28. How do you add a background color in CSS? (Q28)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
29. Which symbol is used for ID selectors in CSS? (Q29)
a) .
b) #
c) *
d) $
Answer: #
30. Which property is used to change the text color of an element? (Q30)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
31. What does CSS stand for? (Q31)
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
HTML, CSS, and Python MCQs
Answer: Cascading Style Sheets
32. Which HTML attribute is used to define inline styles? (Q32)
a) class
b) style
c) styles
d) font
Answer: style
33. How do you add a background color in CSS? (Q33)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
34. Which symbol is used for ID selectors in CSS? (Q34)
a) .
b) #
c) *
d) $
Answer: #
35. Which property is used to change the text color of an element? (Q35)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
36. What does CSS stand for? (Q36)
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
Answer: Cascading Style Sheets
HTML, CSS, and Python MCQs
37. Which HTML attribute is used to define inline styles? (Q37)
a) class
b) style
c) styles
d) font
Answer: style
38. How do you add a background color in CSS? (Q38)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
39. Which symbol is used for ID selectors in CSS? (Q39)
a) .
b) #
c) *
d) $
Answer: #
40. Which property is used to change the text color of an element? (Q40)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
41. What does CSS stand for? (Q41)
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
Answer: Cascading Style Sheets
42. Which HTML attribute is used to define inline styles? (Q42)
HTML, CSS, and Python MCQs
a) class
b) style
c) styles
d) font
Answer: style
43. How do you add a background color in CSS? (Q43)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
44. Which symbol is used for ID selectors in CSS? (Q44)
a) .
b) #
c) *
d) $
Answer: #
45. Which property is used to change the text color of an element? (Q45)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
46. What does CSS stand for? (Q46)
a) Computer Style Sheets
b) Creative Style System
c) Cascading Style Sheets
d) Colorful Style Sheets
Answer: Cascading Style Sheets
47. Which HTML attribute is used to define inline styles? (Q47)
a) class
HTML, CSS, and Python MCQs
b) style
c) styles
d) font
Answer: style
48. How do you add a background color in CSS? (Q48)
a) background-color: blue;
b) bg-color: blue;
c) color-background: blue;
d) background:color blue;
Answer: background-color: blue;
49. Which symbol is used for ID selectors in CSS? (Q49)
a) .
b) #
c) *
d) $
Answer: #
50. Which property is used to change the text color of an element? (Q50)
a) font-color
b) text-color
c) color
d) text-style
Answer: color
HTML, CSS, and Python MCQs
Python MCQs
1. What is the correct file extension for Python files? (Q1)
a) .pt
b) .pyt
c) .py
d) .python
Answer: .py
2. Which of the following is used to define a function in Python? (Q2)
a) func
b) function
c) def
d) define
Answer: def
3. Which keyword is used for conditional branching in Python? (Q3)
a) switch
b) if
c) for
d) while
Answer: if
4. What is the output of print(2 ** 3)? (Q4)
a) 6
b) 8
c) 9
d) 5
Answer: 8
5. Which of the following is a mutable data type? (Q5)
a) tuple
b) list
c) string
d) int
Answer: list
HTML, CSS, and Python MCQs
6. What is the correct file extension for Python files? (Q6)
a) .pt
b) .pyt
c) .py
d) .python
Answer: .py
7. Which of the following is used to define a function in Python? (Q7)
a) func
b) function
c) def
d) define
Answer: def
8. Which keyword is used for conditional branching in Python? (Q8)
a) switch
b) if
c) for
d) while
Answer: if
9. What is the output of print(2 ** 3)? (Q9)
a) 6
b) 8
c) 9
d) 5
Answer: 8
10. Which of the following is a mutable data type? (Q10)
a) tuple
b) list
c) string
d) int
Answer: list
11. What is the correct file extension for Python files? (Q11)
HTML, CSS, and Python MCQs
a) .pt
b) .pyt
c) .py
d) .python
Answer: .py
12. Which of the following is used to define a function in Python? (Q12)
a) func
b) function
c) def
d) define
Answer: def
13. Which keyword is used for conditional branching in Python? (Q13)
a) switch
b) if
c) for
d) while
Answer: if
14. What is the output of print(2 ** 3)? (Q14)
a) 6
b) 8
c) 9
d) 5
Answer: 8
15. Which of the following is a mutable data type? (Q15)
a) tuple
b) list
c) string
d) int
Answer: list
16. What is the correct file extension for Python files? (Q16)
a) .pt
HTML, CSS, and Python MCQs
b) .pyt
c) .py
d) .python
Answer: .py
17. Which of the following is used to define a function in Python? (Q17)
a) func
b) function
c) def
d) define
Answer: def
18. Which keyword is used for conditional branching in Python? (Q18)
a) switch
b) if
c) for
d) while
Answer: if
19. What is the output of print(2 ** 3)? (Q19)
a) 6
b) 8
c) 9
d) 5
Answer: 8
20. Which of the following is a mutable data type? (Q20)
a) tuple
b) list
c) string
d) int
Answer: list
21. What is the correct file extension for Python files? (Q21)
a) .pt
b) .pyt
HTML, CSS, and Python MCQs
c) .py
d) .python
Answer: .py
22. Which of the following is used to define a function in Python? (Q22)
a) func
b) function
c) def
d) define
Answer: def
23. Which keyword is used for conditional branching in Python? (Q23)
a) switch
b) if
c) for
d) while
Answer: if
24. What is the output of print(2 ** 3)? (Q24)
a) 6
b) 8
c) 9
d) 5
Answer: 8
25. Which of the following is a mutable data type? (Q25)
a) tuple
b) list
c) string
d) int
Answer: list
26. What is the correct file extension for Python files? (Q26)
a) .pt
b) .pyt
c) .py
HTML, CSS, and Python MCQs
d) .python
Answer: .py
27. Which of the following is used to define a function in Python? (Q27)
a) func
b) function
c) def
d) define
Answer: def
28. Which keyword is used for conditional branching in Python? (Q28)
a) switch
b) if
c) for
d) while
Answer: if
29. What is the output of print(2 ** 3)? (Q29)
a) 6
b) 8
c) 9
d) 5
Answer: 8
30. Which of the following is a mutable data type? (Q30)
a) tuple
b) list
c) string
d) int
Answer: list
31. What is the correct file extension for Python files? (Q31)
a) .pt
b) .pyt
c) .py
d) .python
HTML, CSS, and Python MCQs
Answer: .py
32. Which of the following is used to define a function in Python? (Q32)
a) func
b) function
c) def
d) define
Answer: def
33. Which keyword is used for conditional branching in Python? (Q33)
a) switch
b) if
c) for
d) while
Answer: if
34. What is the output of print(2 ** 3)? (Q34)
a) 6
b) 8
c) 9
d) 5
Answer: 8
35. Which of the following is a mutable data type? (Q35)
a) tuple
b) list
c) string
d) int
Answer: list
36. What is the correct file extension for Python files? (Q36)
a) .pt
b) .pyt
c) .py
d) .python
Answer: .py
HTML, CSS, and Python MCQs
37. Which of the following is used to define a function in Python? (Q37)
a) func
b) function
c) def
d) define
Answer: def
38. Which keyword is used for conditional branching in Python? (Q38)
a) switch
b) if
c) for
d) while
Answer: if
39. What is the output of print(2 ** 3)? (Q39)
a) 6
b) 8
c) 9
d) 5
Answer: 8
40. Which of the following is a mutable data type? (Q40)
a) tuple
b) list
c) string
d) int
Answer: list
41. What is the correct file extension for Python files? (Q41)
a) .pt
b) .pyt
c) .py
d) .python
Answer: .py
42. Which of the following is used to define a function in Python? (Q42)
HTML, CSS, and Python MCQs
a) func
b) function
c) def
d) define
Answer: def
43. Which keyword is used for conditional branching in Python? (Q43)
a) switch
b) if
c) for
d) while
Answer: if
44. What is the output of print(2 ** 3)? (Q44)
a) 6
b) 8
c) 9
d) 5
Answer: 8
45. Which of the following is a mutable data type? (Q45)
a) tuple
b) list
c) string
d) int
Answer: list
46. What is the correct file extension for Python files? (Q46)
a) .pt
b) .pyt
c) .py
d) .python
Answer: .py
47. Which of the following is used to define a function in Python? (Q47)
a) func
HTML, CSS, and Python MCQs
b) function
c) def
d) define
Answer: def
48. Which keyword is used for conditional branching in Python? (Q48)
a) switch
b) if
c) for
d) while
Answer: if
49. What is the output of print(2 ** 3)? (Q49)
a) 6
b) 8
c) 9
d) 5
Answer: 8
50. Which of the following is a mutable data type? (Q50)
a) tuple
b) list
c) string
d) int
Answer: list