×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

XHTML Multiple-Choice Questions (MCQs)

XHTML is an extended version of HTML (HyperText Markup Language), or we can say it is a more XML-based version of HTML. XHTML is a part of the family of XML markup languages.

XHTML MCQs: This section contains multiple-choice questions and answers on the various topics of XHTML. Practice these MCQs to test and enhance your skills on XHTML.

List of XHTML MCQs

1. XHTML stands for ____?

  1. Extension hyper markup language
  2. Extension of Hypertext Markup Language.
  3. Extensible Hypertext Markup Language.
  4. XML Hypertext Markup Language.

Answer: C) Extensible Hypertext Markup Language.

Explanation:

XHTML stands for Extensible Hypertext Markup Language.

Discuss this Question


2. What is SGML?

  1. Standard Generalized Markup Language
  2. Stanford Generalized Markup Language
  3. Standard Global Markup Language
  4. Stanford Global Markup Language

Answer: A) Standard Generalized Markup Language

Explanation:

SGML stands for Standard Generalized Markup Language.

Discuss this Question


3. Is it necessary to use lowercase for all XHTML elements and attributes?

  1. Yes
  2. No

Answer: A) Yes

Explanation:

Yes, it is necessary to use lowercase for all XHTML elements and attributes.Yes, it is necessary to use lowercase for all XHTML elements and attributes.

Discuss this Question


4. All XHTML documents must begin with a DOCTYPE declaration.

  1. False
  2. True

Answer: B) True

Explanation:

All XHTML documents must begin with a DOCTYPE declaration.

Discuss this Question


5. With XHTML, can you overlap elements?

  1. Yes
  2. No

Answer: B) No

Explanation:

In XHTML, we cannot overlap elements.

Discuss this Question


6. The markup language XHTML is ____.

  1. case sensitive.
  2. case In-sensitive.
  3. None

Answer: A) case sensitive.

Explanation:

The markup language XHTML is case-sensitive.

Discuss this Question


7. Is it necessary to quote the value of XHTML attributes?

  1. Yes
  2. No

Answer: A) Yes

Explanation:

Yes, all the values of XHTML attributes must be quoted.

Discuss this Question


8. In XHTML, the id attribute is replaced by the ____ attribute.

  1. Remains same
  2. Value
  3. Name
  4. Label

Answer: C) Name

Explanation:

In XHTML, the id attribute is replaced by the name attribute.

Discuss this Question


9. In XHTML,<li> and <LI> both are considered as same tags?

  1. Yes
  2. No

Answer: B) No

Explanation:

Since XHTML documents must have lowercase there <li> and <LI> will be considered as two different tags.

Discuss this Question


10. Does XML support attribute minimization?

  1. Yes
  2. No

Answer: B) No

Explanation:

XML does not support attribute minimization, Attribute-value pairs must be written completely.

Discuss this Question


11. What is DTD?

  1. Doc type data
  2. Doc type definition
  3. Document type data
  4. Document type definition

Answer: D) Document type definition

Explanation:

DTD stands for Document type definition.

Discuss this Question


12. How many types of DTD does XHTML define?

  1. 1
  2. 2
  3. 3
  4. 5

Answer: C) 3

Explanation:

The XHTML specification has three Document Type Definitions (DTDs):

  • Strict
  • Transitional
  • Frameset

Discuss this Question


13. If you want to utilize Cascading Style Sheets (CSS) exclusively and avoid writing most XHTML attributes, then which of the following DTD is suggested?

  1. Strict
  2. Transitional
  3. Frameset

Answer: A) Strict

Explanation:

If you want to utilize Cascading Style Sheets (CSS) exclusively and avoid writing most XHTML attributes, then strict DTD is suggested.

Discuss this Question


14. If you intend to use several XHTML characteristics as well as a few Cascading Style Sheet properties, then you should use which of the following DTD.

  1. Strict
  2. Transitional
  3. Frameset

Answer: B) Transitional

Explanation:

If you intend to use several XHTML characteristics as well as a few Cascading Style Sheet properties, then you should use Transitional DTD.

Discuss this Question


15. When you want to divide the browser window into two or more frames using HTML Frames, then which of the following DTDs you should use?

  1. Strict
  2. Transitional
  3. Frameset

Answer: C) Frameset

Explanation:

When you want to divide the browser window into two or more frames using HTML Frames, then Frameset DTD you should use.

Discuss this Question


16. ____ elements are used to mark up tiny sections of text or material within a bigger block of text.

  1. Block
  2. Inline

Answer: B) Inline

Explanation:

Inline elements are used to mark up tiny sections of text or material within a bigger block of text.

Discuss this Question


17. ____ elements establish a new line and are used to mark up bigger pieces of information.

  1. Block
  2. Inline

Answer: A) Block

Explanation:

Block elements establish a new line and are used to mark up bigger pieces of information.

Discuss this Question


18. Which of the following extensions are used by XHTML?

  1. .xhtml
  2. .xml
  3. .xht
  4. All of the above

Answer: D) All of the above

Explanation:

.xhtml, .xml, and .xht are the file extensions used by XHTML.

Discuss this Question


19. Which of the following extensions are used by HTML?

  1. .html
  2. .htm
  3. All of the above

Answer: C) All of the above

Explanation:

.html and .htm are the extensions used by HTML.

Discuss this Question


20. Can we add attributes without any quotes in HTML?

  1. Yes
  2. No

Answer: A) Yes

Explanation:

Yes, We can add attributes without any quotes in HTML.

Discuss this Question


21. The XHTML attributes can be divided into how many types?

  1. 5
  2. 6
  3. 4
  4. 3

Answer: D) 3

Explanation:

The XHTML attributes can be divided into 3 types:

  • Core Attributes
  • Language Attributes
  • Microsoft Proprietary Attributes

Discuss this Question




Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.