Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

xml quiz

Total questions: 15

Worksheet time: 11mins

Name
Class
Date
1.

What is the correct syntax of the declaration which defines the XML version?

a)

<xml version="1.0" />

b)

<?xml version="1.0"?>

c)

<?xml version="1.0" />

d)

<?xml version="1.0" /

2.

Which of the following strings are a correct XML name?

a)

my Element

b)

#myElement

c)

_myElement

3.

Which of the following XML documents are well-formed?

a)

<firstElement>some text goes here <secondElement>another text goes here</secondElement> </firstElement>

b)

<firstElement>some text goes here</firstElement> <secondElement> another text goes here</secondElement>

c)

<firstElement>some text goes here <secondElement> another text goes here</firstElement> </secondElement>

d)

</firstElement>some text goes here </secondElement>another text goes here <firstElement>

4.

What is XSLT?

a)

Extensible Standard Language Transformation

b)

Extensible Sytlesheet Language Transformation

c)

Extensible Standard List Transformation

d)

Extensible Sytle Language Transformation

5.

Which statement is true?

a)

XML tags are case sensitive

b)

XML documents must have a root tag.

c)

XML elements must be properly closed.

d)

All of the above.

6.

Which special character is NOT used in XML?

a)

<

b)

>

c)

$

d)

?

7.

How is an empty XML element defined?

a)

<sample></sample>

b)

<sample/>

c)

All of the above.

d)

None of the above.

8.

What does XML stand for?

a)

eXtra Modern Link

b)

eXtensible Markup Language

c)

X-Markup Language

d)

Example Markup Language

9.

which one

describe a work or remark to (a particular author, artist, or

speaker).

a)

Attributes

b)

Identifiers

c)

Elements

d)

Tags

10.

Which of the following are well-formed XML fragments?

a)

a. < myElement myAttribute=”someValue’/>

b)

b. < myElement myAttribute=someValue/>

c)

c. < myElement myAttribute=’someValue’>

d)

d. < myElement myAttribute=”someValue”/>

11.

How many root elements can we have in XML?

a)

a. 1

b)

b. 2

c)

c. 3

d)

d. 0

12.

What is DTD?

a)

a. Document type Determination

b)

b. Determination Type Defination

c)

c. Document Text Definition

d)

d. Document Type Definition

13.

Which statement is true?

a)

XML tags are case sensitive

b)

XML documents must have a root tag

c)

XML elementss must be properly closed.

d)

All of the above.

14.

The need of using a DTD in developing XML document is?

a)

a. Required when validating XML documents.

b)

b. No longer necessary after the XML editor has been customized.

c)

c. Used to direct conversation using an XSLT processor.

d)

d. A good guide to populating templates to be filled in when generating an XML document automatically.

15.

How to specify the attributes with multiple values?

a)

a. < myElement myAttribute=”value1” myAttribute=”value2”/>

b)

b. < myElement myAttribute=”value1 value2”/>

c)

c. Attributes cannot have multiple values.

d)

d. < myElement myAttribute=”value1, value2”/>