wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Technology - XML - Tutorial Sheet - 04

Total questions: 20

Worksheet time: 16mins

Name
Class
Date
1.

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”/>

2.

How many root elements can we have in XML?

a)

a. 1

b)

b. 2

c)

c. 3

d)

d. 0

3.

What is DTD?

a)

a. Document type Determination

b)

b. Determination Type Defination

c)

c. Document Text Definition

d)

d. Document Type Definition

4.

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.

5.

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

6.

What does XML stand for?

a)

eXtra Modern Link

b)

eXtensible Markup Language

c)

X-Markup Language

d)

Example Markup Language

7.

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.

8.

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.

9.

What is XSLT?

a)

Extensible Standard Language Transformation

b)

Extensible Sytlesheet Language Transformation

c)

Extensible Standard List Transformation

d)

Extensible Sytle Language Transformation

10.

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.

11.

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”/>

12.

Which special character is NOT used in XML?

a)

<

b)

>

c)

$

d)

?

13.

How is an empty XML element defined?

a)

<sample></sample>

b)

<sample/>

c)

All of the above.

d)

None of the above.

14.

which one

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

speaker).

a)

Attributes

b)

Identifiers

c)

Elements

d)

Tags

15.

Which of the following is a valid XSLT iteration command

a)

for

b)

for-all

c)

for-each

d)

in-turn

16.

What can be used to transform XML into HTML?

a)

XLT

b)

XSLT

c)

DTD

d)

DOM

17.

Choose the correct DTD syntex

a)

<!DOCTYPE BOOKSTORE [

<!ELEMENT BOOKSTORE (BOOK*) >

<!ELEMENT BOOK (BOOKID)>

<!ELEMENT BOOKID (#PCDATA)>

<!ELEMENT BOOKTITLE (#PCDATA)>

b)

<!DOCTYPE BOOKSTORE [

<!ELEMENT BOOKSTORE (BOOK*) >

<!ELEMENT BOOK (BOOKID,BOOKTITLE)>

<!ELEMENT BOOKTITLE (#PCDATA)>]>

c)

<!DOCTYPE BOOKSTORE [

<!ELEMENT BOOKSTORE (BOOK*) >

<!ELEMENT BOOK (BOOKID,BOOKTITLE)>

<!ELEMENT BOOKID (#PCDATA)>

<!ELEMENT BOOKTITLE (#PCDATA)>>]

d)

<!DOCTYPE BOOKSTORE [

<!ELEMENT BOOKSTORE (BOOK*) >

<!ELEMENT BOOK (BOOKID,BOOKTITLE)>

<!ELEMENT BOOKID (#PCDATA)>

<!ELEMENT BOOKTITLE (#PCDATA)>]>

18.

Which of the following is a correct way to declare an XML namespace?

a)

<element xmlns="http://www.example.com">

b)

<element xmlns:prefix="http://www.example.com">

c)

<element xmlns:prefix="http://www.example.com" />

d)

<element xmlns="http://www.example.com" />

19.

What is the purpose of an XML Schema?

a)

To define the structure and data types of XML documents.

b)

To transform XML documents into other formats.

c)

To validate the syntax of XML documents.

d)

To provide a stylesheet for XML documents.

20.

Which of the following statements about XML comments is true?

a)

XML comments can contain the characters < and >.

b)

XML comments must start with <!-- and end with -->.

c)

XML comments are not allowed in XML documents.

d)

XML comments can be nested.