wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Exploring HTML and XML Concepts

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the purpose of a DTD in XML?

a)

The purpose of a DTD in XML is to define the structure and validate the content of XML documents.

b)

To convert XML into HTML format.

c)

To compress XML files for storage.

d)

To provide a stylesheet for XML documents.

2.

How do you create a list in HTML?

a)

Use for each list entry.

b)

Use

    for unordered lists or
      for ordered lists, with
    1. for each list item.

c)

Use for creating lists.

d)

Wrap list items in

tags.

3.

What are the main differences between DOM and SAX?

a)

SAX allows random access while DOM processes sequentially.

b)

DOM is used for streaming data while SAX is for static data.

c)

The main differences are: DOM is memory-intensive and allows random access, while SAX is memory-efficient and processes the document sequentially.

d)

DOM is faster and processes documents in parallel.

4.

What is the role of XML Schemas?

a)

To create user interfaces for web applications.

b)

The role of XML Schemas is to validate and define the structure of XML documents.

c)

To store data in a binary format.

d)

To manage database connections.

5.

How can you embed images in an HTML document?

a)

Use the tag with the 'src' attribute to embed images.

b)

Insert images by using the without closing the tag.

c)

Embed images using the tag only.

d)

Use the tag with the 'src' attribute to embed images.

6.

What is the function of frames in HTML?

a)

To create interactive forms in HTML.

b)

To enhance the loading speed of a webpage.

c)

To style text and images in HTML.

d)

The function of frames in HTML is to display multiple HTML documents in a single browser window.

7.

Describe how to create a table in HTML.

a)

You can create a table with and tags.

b)

Tables are created using

and elements.

c)

Use

, ,
, and tags to create a table.

d)

Use and tags to create a table.

8.

What does XML stand for?

a)

eXtensible Markup Language

b)

Extended Markup Language

c)

eXecutable Markup Language

d)

Extra Markup Language

9.

What is the significance of object models in XML?

a)

Object models in XML are irrelevant to data storage.

b)

Object models in XML are primarily for creating visual layouts.

c)

Object models in XML are only used for styling documents.

d)

Object models in XML are significant because they enable structured data representation, facilitate data validation, and support data manipulation.

10.

How do you process XML data using DOM?

a)

Use a text editor to manually edit the XML file.

b)

Ignore the XML structure and treat it as plain text.

c)

Load XML with a JSON parser and convert to CSV.

d)

Load XML with a DOM parser, navigate and manipulate nodes, then serialize if needed.

11.

What are the advantages of using SAX over DOM?

a)

SAX is easier to implement than DOM.

b)

DOM is more suitable for large files than SAX.

c)

SAX allows for random access to data unlike DOM.

d)

SAX is more memory efficient, faster for large files, and suitable for streaming data compared to DOM.

12.

Explain how forms are created in HTML.

a)

HTML forms do not require any specific elements.

b)

Forms are created using the element only.

c)

Forms can only be created with JavaScript.

d)

Forms in HTML are created using the

element, containing input elements like ,