NEW
Font size
WorksheetsXML Quiz
Total questions: 30
Worksheet time: 23mins
What is the correct syntax of the declaration which defines the XML version?
<xml version="1.0" />
<?xml version="1.0"?>
<?xml version="1.0" />
<?xml version="1.0" /
Which statement is true?
All XML elements must have a closing tag
All XML elements must be lower case
All XML elements must be lower case
All the statements are true
Well formed XML document means
it contains a root element
it contain an element
it contains one or more elements
must contain one or more elements and root element must contain all other elements
Which of the following strings are a correct XML name?
my Element
#myElement
_myElement
What does DTD stand for?
Direct Type Definition
Document Type Definition
Do The Dance
Dynamic Type Definition
Which of the following XML documents are well-formed?
<firstElement>some text goes here <secondElement>another text goes here</secondElement> </firstElement>
<firstElement>some text goes here</firstElement> <secondElement> another text goes here</secondElement>
<firstElement>some text goes here <secondElement> another text goes here</firstElement> </secondElement>
</firstElement>some text goes here </secondElement>another text goes here <firstElement>
Which of the following XML fragments are well-formed?
<myElement myAttribute=someValue/>
<myElement myAttribute="someValue"/>
<myElement myAttribute=’someValue’>
<myElement myAttribute="someValue’/>
To use the external DTD we have the syntax
<?xml version=”1.0” standalone=”yes”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
<?xml version=”1.0” standalone=”yes”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
<?xml version=”1.0” standalone=”no”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
How many root elements can we have in XML ?
1
2
3
0
What is XSLT?
Extensible Standard Language Transformation
Extensible Sytlesheet Language Transformation
Extensible Standard List Transformation
Extensible Sytle Language Transformation
Which statement is true?
XML tags are case sensitive
XML documents must have a root tag.
XML elements must be properly closed.
All of the above.
How many root elements can we have in XML ?
1
2
3
0
What is Xquery used for in XML file?
Data Store
Data Display
Data Create
Data Fetch
What is XSLT?
Extensible Standard Language Transformation
Extensible Sytlesheet Language Transformation
Extensible Standard List Transformation
Extensible Sytle Language Transformation
What is DTD?
Document type Determination
Determination Type Defination
Document Text Definition
Document Type Definition
Which special character is NOT used in XML?
<
>
$
?
Which statement is true?
XML tags are case sensitive
XML documents must have a root tag
XML elements must be properly closed
All of the above
How is an empty XML element defined?
<sample></sample>
<sample/>
All of the above.
None of the above.
How XML describe data
XML uses a description node to describe data
XML uses a DTD to describe the data
XML uses XSL to describe data
What does XML stand for?
eXtra Modern Link
eXtensible Markup Language
X-Markup Language
Example Markup Language
ODBC stands for
Object Database Connectivity
Open Data Connectivity
Open Database Connectivity
none of the above
which one of the following
is a layer of a computer
program which provides simplified access to data
Business logic layer
Data-access layer
User interface layer
Multi-layer applications
which one
describe a work or remark to (a particular author, artist, or
speaker).
Attributes
Identifiers
Elements
Tags
which one is interface that allows applications to access data in database management systems (DBMS) using SQL
DTD
ODBC
XML shema
Data-access layer
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
Elements
Attributes
Identifiers
Validation
Choose the correct DTD syntex
<!DOCTYPE BOOKSTORE [
<!ELEMENT BOOKSTORE (BOOK*) >
<!ELEMENT BOOK (BOOKID)>
<!ELEMENT BOOKID (#PCDATA)>
<!ELEMENT BOOKTITLE (#PCDATA)>
<!DOCTYPE BOOKSTORE [
<!ELEMENT BOOKSTORE (BOOK*) >
<!ELEMENT BOOK (BOOKID,BOOKTITLE)>
<!ELEMENT BOOKTITLE (#PCDATA)>]>
<!DOCTYPE BOOKSTORE [
<!ELEMENT BOOKSTORE (BOOK*) >
<!ELEMENT BOOK (BOOKID,BOOKTITLE)>
<!ELEMENT BOOKID (#PCDATA)>
<!ELEMENT BOOKTITLE (#PCDATA)>>]
<!DOCTYPE BOOKSTORE [
<!ELEMENT BOOKSTORE (BOOK*) >
<!ELEMENT BOOK (BOOKID,BOOKTITLE)>
<!ELEMENT BOOKID (#PCDATA)>
<!ELEMENT BOOKTITLE (#PCDATA)>]>
The need of using a DTD in developing XML document is?
Required when validating XML documents.
No longer necessary after the XML editor has been customized.
Used to direct conversation using an XSLT processor.
A good guide to populating templates to be filled in when generating an XML document automatically.
what does maxOccurs means in XSD?
Specifies the minimum number of times this element can occur in the parent element.
Specifies the maximum number of times this element can occur in the parent element.
Specifies the maximum number of times this element can occur in the child element.
Specifies the minimum number of times this element can not occur in the parent element.
What can be used to transform XML into HTML?
XLT
XSLT
DTD
DOM
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.
Business logic layer
Data-access layer
User interface layer
ODBC
