wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

2024-Scripting with XML

Total questions: 23

Worksheet time: 12mins

Name
Class
Date
1.

What does XML stand for?

a)

Example Marup Language

b)

X-Markup Language

c)

eXtensible Markup Language

d)

eXtra Modern Link

2.

There is a way of describing XML data, how?

a)

XML uses a DTD to describe the data

b)

XML uses a description node to describe data

c)

XML uses XSL to describe data

d)

XML doesnot describe data

3.

XML's goal is to replace HTML

a)

False

b)

True

4.

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"?>

5.

What does DTD stand for?

a)

Dynamic Type Definiation

b)

Document Type Definiation

c)

Direct Type Definiation

d)

Definition Type Definition

6.

Is this a "well formed" XML document?

a)

No

b)

Yes

7.

Which statement is true?

a)

All the statements are true

b)

All XML elements must be lower case

c)

All XML elements must be properly closed

d)

All XML documents must have a DTD

8.

Which statement is NOT true?

a)

XML elements must be properly nested

b)

White-space is not preserved in XML

c)

XML documents must have a root tag

d)

XML tags are case sensitive

9.

XML preserves white spaces

a)

True

b)

False

10.

Is this a "well formed" XML document?

a)

Yes

b)

No

11.

XML elements cannot be empty

a)

False

b)

True

12.

Which is not a correct name for an XML element?

a)

<h1>

b)

<Note>

c)

<1euro>

d)

<NOTE>

13.

Which is not a correct name for an XML element?

a)

<NAME>

b)

<gender>

c)

<first name>

d)

All 3 names are incorrect

14.

Which is a correct name for an XML element?

a)

<Name>

b)

<9Nine>

c)

<xmldocument>

d)

<phone number>

15.

XML attribute values must always be enclosed in quotes

a)

False

b)

True

16.

What does XSL stand for?

a)

eXpandable Style Language

b)

eXtensible Stylesheet Language

c)

eXtensible Style Language

d)

eXtra Style Language

17.

What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

a)

<link type="text/xsl" href='mystyle.xsl" />

b)

<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

c)

<stylesheet type="text/xsl" href="mystyle.xsl" />

18.

For the XML parser to ignore a certain section of your XML document, which syntax is correct?

a)

<![CDATA[ Text to be ignored ]]>

b)

<CDATA> Text to be ignored </CDATA>

c)

<PCDATA> Text to be ignored </PCDATA>

d)

<xml:CDATA[ Text to be ignored ]>

19.

Which statement is true?

a)

Attributes must occur in defined order

b)

Attributes must always be present

c)

None of the other two statements are true

20.

What are XML entities used for?

a)

Entities define shortcuts to standard attributes

b)

Entities define shortcuts to standard elements

c)

Entities define shortcuts to standard text or special characters

21.

Which of the following XML fragments is well-formed?

a)

<customer id="3456"><address/><zip code="3456" /> </customer>

b)

<customer id=3456><name>John Smith</name></customer>

22.

What is an XML instance?

a)

An XML attribute

b)

An XML element

c)

An XML document

23.

Which XML DOM object represents a node in the node tree?

a)

The nodeList object

b)

The document object

c)

The node object