wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

XML Quiz

Total questions: 30

Worksheet time: 23mins

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 statement is true?

a)

All XML elements must have a closing tag

b)

All XML elements must be lower case

c)

All XML elements must be lower case

d)

All the statements are true

3.

Well formed XML document means

a)

it contains a root element

b)

it contain an element

c)

it contains one or more elements

d)

must contain one or more elements and root element must contain all other elements

4.

Which of the following strings are a correct XML name?

a)

my Element

b)

#myElement

c)

_myElement

5.

What does DTD stand for?

a)

Direct Type Definition

b)

Document Type Definition

c)

Do The Dance

d)

Dynamic Type Definition

6.

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>

7.

Which of the following XML fragments are well-formed?

a)

<myElement myAttribute=someValue/>

b)

<myElement myAttribute="someValue"/>

c)

<myElement myAttribute=’someValue’>

d)

<myElement myAttribute="someValue’/>

8.

To use the external DTD we have the syntax

a)

<?xml version=”1.0” standalone=”yes”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

b)

<?xml version=”1.0” standalone=”yes”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

c)

<?xml version=”1.0” standalone=”no”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

9.

How many root elements can we have in XML ?

a)

1

b)

2

c)

3

d)

0

10.

What is XSLT?

a)

Extensible Standard Language Transformation

b)

Extensible Sytlesheet Language Transformation

c)

Extensible Standard List Transformation

d)

Extensible Sytle Language Transformation

11.

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.

12.

How many root elements can we have in XML ?

a)

1

b)

2

c)

3

d)

0

13.

What is Xquery used for in XML file?

a)

Data Store

b)

Data Display

c)

Data Create

d)

Data Fetch

14.

What is XSLT?

a)

Extensible Standard Language Transformation

b)

Extensible Sytlesheet Language Transformation

c)

Extensible Standard List Transformation

d)

Extensible Sytle Language Transformation

15.

What is DTD?

a)

Document type Determination

b)

Determination Type Defination

c)

Document Text Definition

d)

Document Type Definition

16.

Which special character is NOT used in XML?

a)

<

b)

>

c)

$

d)

?

17.

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

18.

How is an empty XML element defined?

a)

<sample></sample>

b)

<sample/>

c)

All of the above.

d)

None of the above.

19.

How XML describe data

a)

XML uses a description node to describe data

b)

XML uses a DTD to describe the data

c)

XML uses XSL to describe data

20.

What does XML stand for?

a)

eXtra Modern Link

b)

eXtensible Markup Language

c)

X-Markup Language

d)

Example Markup Language

21.

ODBC stands for

a)

Object Database Connectivity

b)

Open Data Connectivity

c)

Open Database Connectivity

d)

none of the above

22.

which one of the following

is a layer of a computer

program which provides simplified access to data

a)

Business logic layer

b)

Data-access layer

c)

User interface layer

d)

Multi-layer applications

23.

which one

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

speaker).

a)

Attributes

b)

Identifiers

c)

Elements

d)

Tags

24.

which one is interface that allows applications to access data in database management systems (DBMS) using SQL

a)

DTD

b)

ODBC

c)

XML shema

d)

Data-access layer

25.

which one is a sequence of characters used to identify or refer to a program or an element, such as a variable or a set of data, within it

a)

Elements

b)

Attributes

c)

Identifiers

d)

Validation

26.

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)>]>

27.

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

a)

Required when validating XML documents.

b)

No longer necessary after the XML editor has been customized.

c)

Used to direct conversation using an XSLT processor.

d)

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

28.

what does maxOccurs means in XSD?

a)

Specifies the minimum number of times this element can occur in the parent element.

b)

Specifies the maximum number of times this element can occur in the parent element.

c)

Specifies the maximum number of times this element can occur in the child element.

d)

Specifies the minimum number of times this element can not occur in the parent element.

29.

What can be used to transform XML into HTML?

a)

XLT

b)

XSLT

c)

DTD

d)

DOM

30.

Which one is the part of the program that encodes the real-world business rules that determine how data can be created, stored, and changed.

a)

Business logic layer

b)

Data-access layer

c)

User interface layer

d)

ODBC