0% found this document useful (0 votes)
88 views

It6801 - Service Oriented Architecture Unit 1

The document provides a unit on introduction to XML. It includes 20 multiple choice questions on XML fundamentals like the definition of XML, well-formed XML, XML syntax, DTDs, and XML Schema. It also lists the learning objectives of the unit as XML document structure, well-formed and valid documents, namespaces, DTDs, and XML Schema.

Uploaded by

Bala Murugan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

It6801 - Service Oriented Architecture Unit 1

The document provides a unit on introduction to XML. It includes 20 multiple choice questions on XML fundamentals like the definition of XML, well-formed XML, XML syntax, DTDs, and XML Schema. It also lists the learning objectives of the unit as XML document structure, well-formed and valid documents, namespaces, DTDs, and XML Schema.

Uploaded by

Bala Murugan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

IT6801 SERVICE ORIENTED ARCHITECTURE UNIT-1

UNIT I INTRODUCTION TO XML

XML document structure – Well formed and valid documents – Namespaces – DTD – XML
Schema –X-Files.

1. What does XML stand for?


A. eXtra Modern Link
B. eXtensible Markup Language
C. Example Markup Language
D. X-Markup Language

2. 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. None of the above

3.Is it easier to process XML than HTML?


A. Yes
B. No
C. Somtimes
D. Cant say

4.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

5.Comment in XML document is given by


A. <?-- -->
B. <!-- --!>
C. <!-- -->
D. </-- -- >

6.Which of the following strings are a correct XML name?


A. _myElement
B. my Element
C. #myElement
D. None of the above

7.Valid XML document means (most appropriate)


A. the document has root element
B. the document contains atleast one or more root element
C. the XML document has DTD associated with it & it complies with that DTD

1 DEPARTMENT OF INFORMATION TECHNOLOGY


PANIMALAR INSTITUTE OF TECHNOLOGY
IT6801 SERVICE ORIENTED ARCHITECTURE UNIT-1

D. Each element must nest inside any enclosing element property

8.What does DTD stand for?


A. Direct Type Definition
B. Document Type Definition
C. Do The Dance
D. Dynamic Type Definition

9.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>

10.Which of the following XML fragments are well-formed?


A. <myElement myAttribute="value1 <= value2"/>
B. <myElement myAttribute="value1 & value2"/>
C. <myElement myAttribute="value1 > value2"/>
D. None of the above

11.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’/>

12.How can we make attributes have multiple values:


A. <myElement myAttribute="value1 value2"/>
B. <myElement myAttribute="value1" myAttribute="value2"/>
C. <myElement myAttribute="value1, value2"/>
D. attributes cannot have multiple values

13.DTD includes the specifications about the markup that can be used within the
document, the specifications consists of all EXCEPT
A. the browser name
B. the size of element name
C. entity declarations
D. element declarations

2 DEPARTMENT OF INFORMATION TECHNOLOGY


PANIMALAR INSTITUTE OF TECHNOLOGY
IT6801 SERVICE ORIENTED ARCHITECTURE UNIT-1

14.To use the external DTD we have the syntax


A. <?xml version=”A.0” standalone=”no”?>
<! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
B. <?xml version=”A.0” standalone=”yes”?>
<! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
(3 )<?xml version=”A.0” standalone=”no”?>
<! DOCTYPE DOCUMENT “order.dtd”?>
D. <?xml version=”A.0” standalone=”yes”?>
<! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
Ans: A

15.To add the attribute named Type to the <customer> tag the syntax will be
A. <customer attribute Type=”exelent”>
B. <customer Type attribute =”exelent”>
C. <customer Type attribute_type=”exelent”>
D. <customer Type=” exelent” >

16.You can name the schema using the name attribute like
A. <schema attribute=”schema1”>
B. <schema nameattribute=”schema1”>
C. <schema nameattri=”schema1”>
D. <schema name=”schema1”>

17.In simple type built into XML schema type flat has single precision of ________ floating
point
A. 16 bit
B. 32 bit
C. 8 bit
D. 4 bit

18.In simple Type Built into XML schema Boolean type holds
A. True, False
B. 1,0
C. both A. & B.
D. True/False and any number except 0

19.Simple type Built into Schema “ data’ represent a data in


A. MM-DD-YY
B. Dd-MM-YY
C. YY-MM-DD
D. YYYY-MM-DD

3 DEPARTMENT OF INFORMATION TECHNOLOGY


PANIMALAR INSTITUTE OF TECHNOLOGY
IT6801 SERVICE ORIENTED ARCHITECTURE UNIT-1

20.A schema describes


(i) grammer
(ii) vocabulary
(iii) structure
(iv) datatype of XML document

A. (i) & (ii) are correct


B. (i),(iii) ,(iv) are correct
C. (i),(ii),(iv) are correct
D. (i),(ii),(iii),(iv) are correct

21.The default model for complex type, in XML schemas for element is
A. textOnly
B. elementOnly
C. no default type
D. both 1 & 2

22. The syntax for parameter entity is


A. <! ENTITY % NAME DEFINITION>
B. < ENTITY % NAME DEFINITION>
C. <! ENTITY $ NAME DEFINITION>
D. < ENTITY % NAME DEFINITION>

23.You can name the schema using the name attribute like
A. <schema attribute=”schema1”>
B. <schema nameattribute=”schema1”>
C. <schema nameattri=”schema1”>
D. <schema name=”schema1”>

24.To create a choise in XML schemas, we use the


A. <xsd:select> element
B. <xsd:multi> element
C. <xsd:choise> element
D. <xsd:single> element

25.A textual object is a well formed XML document if


(i) Taken as a whole it matches the production labeled document.
(ii) Each of the parsed entity which is referenced directly or indirectly within the document can
be well formed

A. (i) is correct
B. (ii)is correct
C. both are correct

4 DEPARTMENT OF INFORMATION TECHNOLOGY


PANIMALAR INSTITUTE OF TECHNOLOGY
IT6801 SERVICE ORIENTED ARCHITECTURE UNIT-1

26.The attribute used to define a new namespace is


A. XMLNS
B. XmlNameSpace
C. Xmlns
D. XmlNs

27.Which of the following statements is true:

A. XML is a direct subset of SGML


B. SGML is an application of HTML
C. XML is a kind of dynamic HTML
D. XHTML is XML rewritten in HTML
5. SGML and XML are the same thing

28.Which of the following statements about XML schemas is incorrect?


A. All XML documents must have a schema
B. Schemas can specify integer values
C. Schemas are defined by XSD tag
D. They offer more flexibility than DTDs
E. Schemas provide data oriented data types

29.What is the default namespace

A. The namespace used by default when no namespace is declared


B. The namespace used when two or more namespaces are referenced
C. A namespace that is referenced with the xmlns attribute, but without a prefix
D. None of the above

30.Parameter entities can appear in


A. xml file
B. dtd file
C. xsl file
D. Both 1 and 2

31.In XML
A. the internal DTD subset is read before the external DTD
B. the external DTD subset is read before the internal DTD
C. there is no external type of DTD
D. there is no internal type of DTD

32. In Schema Data Type Can Be Specified Using


A. Type
B. DataType
C. Dt:type
D. Data:type

5 DEPARTMENT OF INFORMATION TECHNOLOGY


PANIMALAR INSTITUTE OF TECHNOLOGY
IT6801 SERVICE ORIENTED ARCHITECTURE UNIT-1

33.In XML Document Comments Are Given As?


A. < !-- --!>
B. < !-- ?
C. < /-- -->
D. < ?-- ?
34. Which Vocabulary Provides Supports To Build Links Into XML?
A. XLink
B. XPointer
C. XSL
D. XHTML
35. Which Allows Hyperlinks To Point To Specific Parts (fragments) Of XML Documents?
A. XPath
B. Xpointer
C. XSLT
D. XLink
36 .Is this a "well formed" XML document?

<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
1.yes
2.no

37.Is this a "well formed" XML document?

<?xml version="1.0"?>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
1.yes
2.no

38.XML's goal is to replace HTML

False
True

6 DEPARTMENT OF INFORMATION TECHNOLOGY


PANIMALAR INSTITUTE OF TECHNOLOGY
IT6801 SERVICE ORIENTED ARCHITECTURE UNIT-1

39.Which statement is true?

A. All XML elements must be properly closed


B. All the statements are true
C. All XML documents must have a DTD
D. All XML elements must be lower case

40. Which statement is NOT true?

A. XML tags are case sensitive


B. XML documents must have a root tag
C. White-space is not preserved in XML
D. XML elements must be properly nested

41.XML preserves white spaces

True
False

42.Is this a "well formed" XML document?

<?xml version="1.0"?>
<note>
<to age="29">Tove</to>
<from>Jani</from>
</note>
Yes
No

43.Is this a "well formed" XML document?

<?xml version="1.0"?>
<note>
<to age=29>Tove</to>
<from>Jani</from>
</note>

Yes
No

44.XML elements cannot be empty

True
False

7 DEPARTMENT OF INFORMATION TECHNOLOGY


PANIMALAR INSTITUTE OF TECHNOLOGY
IT6801 SERVICE ORIENTED ARCHITECTURE UNIT-1

45. Which is not a correct name for an XML element?


A. <h1>
B. <Note>
C. <1dollar>
D. All 3 names are incorrect

46.Which is not a correct name for an XML element?

<NAME>
All 3 names are incorrect
<first name>
<age>

47.XML attribute values must always be enclosed in quotes


False
True

48. What are XML entities used for?


A. Entities define shortcuts to standard elements
B. Entities define shortcuts to standard text or special characters
C. Entities define shortcuts to standard attributes

49.Which of the following XML fragments is well-formed?

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


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

50.To eliminate definition duplication, XML Schemas define:


a.an intersection table.
b.global elements.
c.a normalized definition table.
d.None of the above is correct.

8 DEPARTMENT OF INFORMATION TECHNOLOGY


PANIMALAR INSTITUTE OF TECHNOLOGY

You might also like