Featured Post

Class 10 | Computer Science | Chapter 2 | HTML and CSS 3 | Multiple Choice Questions

 Class 10 | Computer Science 

Chapter 2 | HTML and CSS 3 

Multiple Choice Questions



1. Which of these elements in HTML can be used for making a text bold?
a. <a>         b. <pre>         c. <br>         d. <b>
Answer: (d) <b>

2. Which tag do we use in HTML for inserting a line-break?
a. <a>         b. <br>         c. <b>         d. <pre>
Answer: (b) <br>

3. How to create a hyperlink in HTML?
a. <a link = “https://easylearningxyz.blogspot.com/”> easylearningxyz </a>
b. <a> https://easylearningxyz.blogspot.com/< easylearningxyz /a>
c. <a href = “https://easylearningxyz.blogspot.com/”> easylearningxyz </a>
d. <a url = “https://easylearningxyz.blogspot.com/” easylearningxyz /a>
Answer: (c) <a href = “https://easylearningxyz.blogspot.com/”> easylearningxyz </a>

4. In HTML, how do we insert an image?
a. <img src = “jtp.png” />
b. <img href = “jtp.png” />
c. <img link = “jtp.png” />
d. <img url = “jtp.png” />
Answer: (a) <img src = “jtp.png” />

5. Which tag do we use to define the options present in the drop-down selection lists?
a. <list>
b. <option>
c. <dropdown>
d. <select>
Answer: (b) <option>

6. In HTML, which of these would add a background color?
a. <marquee bgcolor = “plum”>
b. <marquee bg color: “plum”>
c. <marquee color = “plum”>
d. <marquee bg-color = “plum”>
Answer: (a) <marquee bgcolor = “plum”>

7. Which HTML tag do we use to display text along with a scrolling effect?
a. <div>
b. <scroll>
c. <marquee>
d. None of the above
Answer: (c) <marquee>

8. In HTML, we use the <hr> tag for ___________.
a. horizontal ruler
b. new line
c. new paragraph
d. vertical ruler
Answer: (a) horizontal ruler

9. What is the correct way of sending mail in HTML?
a. <mail ab@b</mail>
b. <a href = “ab@b”>
c. <a href = “mailto: ab@b”>
d. None of the above
Answer: (c) <a href = “mailto: ab@b”>

10. In HTML, the tags are __________.
a. in upper case
b. case-sensitive
c. in lowercase
d. not case sensitive
Answer: (d) not case sensitive

11. Which of these tags helps in the creation of a drop-down box or a combo box?
a. <input type = “dropdown”>
b. <list>
c. <ul>
d. <select>
Answer: (d) <select>

12. Which tag is used in HTML5 for the initialization of the document type?
a. <Doctype HTML>
b. <!DOCTYPE html>
c. <Doctype>
d. <\Doctype html>
Answer: (b) <!DOCTYPE html>

13. What is the correct way in which we can start an ordered list that has the numeric value count of 5?
a. <ol type = “1” start = “5”>
b. <ol type = “1” num = “5”>
c. <ol type = “1” begin = “5”>
d. <ol type = “1” initial = “5”>
Answer: (a) <ol type = “1” start = “5”>

14. Which one is the HTML document’s root tag?
a. <head>
b. <body>
c. <title>
d. <html>
Answer: (d) <html>

15. Which HTML tag do we use for displaying the power in the expression, (x² – y²)?
a. <p>
b. <sub>
c. <sup>
d. None of the above
Answer: (c) <sup>

16. In HTML, the correct way of commenting out something would be using:
a. ## and #
b. <!– and –>
c. </– and -/->
d. <!– and -!>
Answer: (b) <!– and –>

17. How does the <bdo> element work?
a. changes direction of the ltr text
b. override the direction of the rtl text
c. stops writing in current direction of text
d. override the text direction
Answer: (d) override the text direction

18. What attribute do we use for data binding?
a. datasrc
b. mayscript
c. name
d. datafld
Answer: (a) datasrc

19. The non-ASCII characters would be replaced with ________ by the process of URL encoding.
a. “+”
b. “%”
c. “&”
d. “*”
Answer: (b) “%”

20. Which of these entities is not defined in the XML?
a. apos
b. quot
c. copy
d. gt
Answer: (c) copy

21. The ____________ entity is used for the arrow.
a. &zeta
b. &crarr
c. &oelig
d. &upsih
Answer: (b) &crarr

22. Which of these doesn’t support the MP3 format?
a. Opera
b. Safari
c. Chrome
d. Firefox
Answer: (a) Opera

23. Which one of these helps us test if an old browser supports the geolocation?
a. Modernizr.geolocation
b. Modernizr
c. Modernizr.js
d. Navigator.userAgent
Answer: (d) Navigator.userAgent

24. Which of these classes helps make a text stand out?
a. .small
b. .lead
c. .text-center
d. .text-left
Answer: (b) .lead

25. What do we call after initializing a plug-in to get A scripting interface?
a. NP_GetMIMEDescription
b. NP_Initialize
c. NPP_GetValue
d. NP_GetValue
Answer: (c) NPP_GetValue

26. What does HTML stand for?
A) HyperText Markup Language
B) HyperText Makeup Language
C) HyperText Machine Language
D) HyperText Master Language
Answer: A) HyperText Markup Language

27. What is the purpose of the <title> tag?
A) To specify the background color
B) To specify the font size
C) To specify the title of the page
D) To specify the image source
Answer: C) To specify the title of the page

28. What is the difference between <p> and <div> tags?
A) <p> is for paragraphs, <div> is for divisions
B) <p> is for divisions, <div> is for paragraphs
C) <p> is for images, <div> is for text
D) <p> is for links, <div> is for tables
Answer: A) <p> is for paragraphs, <div> is for divisions

29. What is the purpose of the <img> tag?
A) To create a link
B) To create a table
C) To insert an image
D) To create a list
Answer: C) To insert an image

30. What is the purpose of the href attribute?
A) To specify the image source
B) To specify the link destination
C) To specify the font size
D) To specify the background color
Answer: B) To specify the link destination

31. What is the purpose of the <ol> tag?
A) To create an unordered list
B) To create an ordered list
C) To create a table
D) To create a link
Answer: B) To create an ordered list

32. What is the difference between <strong> and <b> tags?
A) <strong> is for bold, <b> is for italic
B) <strong> is for importance, <b> is for bold
C) <strong> is for italic, <b> is for bold
D) <strong> is for links, <b> is for images
Answer: B) <strong> is for importance, <b> is for bold

33. What is the purpose of the alt attribute in the <img> tag?
A) To specify the image source
B) To specify the image size
C) To provide alternative text for the image
D) To specify the image border
Answer: C) To provide alternative text for the image

34. What is the purpose of the <table> tag?
A) To create a list
B) To create a link
C) To create a table
D) To create an image
Answer: C) To create a table

35. What is the purpose of the <a> tag?
A) To create an image
B) To create a table
C) To create a link
D) To create a list
Answer: C) To create a link

36. What is the purpose of the <ul> tag?
A) To create an ordered list
B) To create an unordered list
C) To create a table
D) To create a link
Answer: B) To create an unordered list

37. What is the purpose of the target attribute in the <a> tag?
A) To specify the link destination
B) To specify the link title
C) To specify where to open the linked document
D) To specify the link color
Answer: C) To specify where to open the linked document

38. What is the difference between <span> and <div> tags?
A) <span> is for blocks, <div> is for inline elements
B) <span> is for inline elements, <div> is for blocks
C) <span> is for images, <div> is for text
D) <span> is for links, <div> is for tables
Answer: B) <span> is for inline elements, <div> is for blocks

39. What is the purpose of the <header> tag?
A) To define the footer section
B) To define the navigation section
C) To define the header section
D) To define the main content section
Answer: C) To define the header section

40. What is the purpose of the id attribute?
A) To specify the element's class
B) To specify the element's style
C) To specify a unique identifier for the element
D) To specify the element's title
Answer: C) To specify a unique identifier for the element

41. What is the purpose of the <nav> tag?
A) To define the main content section
B) To define the navigation section
C) To define the footer section
D) To define the header section
Answer: B) To define the navigation section

42. What is the difference between rowspan and colspan attributes?
A) rowspan merges columns, colspan merges rows
B) rowspan merges rows, colspan merges columns
C) rowspan specifies the border, colspan specifies the padding
D) rowspan specifies the width, colspan specifies the height
Answer: B) rowspan merges rows, colspan merges columns

43. What is the purpose of the <footer> tag?
A) To define the header section
B) To define the main content section
C) To define the navigation section
D) To define the footer section
Answer: D) To define the footer section

44. What is the purpose of the style attribute?
A) To specify the element's class
B) To specify the element's id
C) To specify the element's style
D) To specify the element's title
Answer: C) To specify the element's style

45. What is the purpose of the <section> tag?
A) To define a self-contained piece of content
B) To define a navigation section
C) To define a footer section
D) To define a header section
Answer: A) To define a self-contained piece of content

46. What is the purpose of the <article> tag?
A) To define a navigation section
B) To define a self-contained piece of content
C) To define a footer section
D) To define a header section
Answer: B) To define a self-contained piece of content

47. What is the difference between <em> and <i> tags?
A) <em> is for emphasis, <i> is for italic
B) <em> is for italic, <i> is for emphasis
C) <em> is for bold, <i> is for italic
D) <em> is for links, <i> is for images
Answer: A) <em> is for emphasis, <i> is for italic

48. What is the purpose of the placeholder attribute?
A) To specify the input type
B) To specify the input value
C) To provide a hint or placeholder text
D) To specify the input size
Answer: C) To provide a hint or placeholder text

49. What is the purpose of the <label> tag?
A) To define a form input
B) To define a form label
C) To define a table header
D) To define a link
Answer: B) To define a form label

50. What is the purpose of the required attribute?
A) To specify the input type
B) To specify the input value
C) To make the input field mandatory
D) To specify the input size
Answer: C) To make the input field mandatory