Machine-translated by Google. Questions are authored in English.
Top

XML and ADO.NET Questions and Answers

31.

SOAP is now just a name, not an acronym

Answer: A

Correct answer: True

It originally stood for Simple Object Access Protocol, but once it had been generalised to carry messages of any kind over any transport the expansion no longer described it, and the specification dropped the acronym. The name was kept because it was already established.

Please log in or register to report this question.

32.

Documents that have no DTD are by definition not-type-valid.

Answer: A

Correct answer: True

Type validity means conformance to a DTD or schema, so with neither present there is nothing to conform to and the document is not-type-valid by definition. It says nothing about the document’s quality: it may still be well-formed, which is the weaker requirement that its tags be correctly nested and closed.

Please log in or register to report this question.

33.

FOR XML EXPLICIT tells SQL Server to place the values of the columns as attributes in the resulting XML document.

Answer: B

Correct answer: False

That is what FOR XML RAW does. FOR XML EXPLICIT gives the developer complete control over the shape of the result, allowing some columns to become elements and others attributes and the hierarchy to be nested as required - at the cost of a considerably more complicated query.

Please log in or register to report this question.

34.

With XSLT, you specify a procedure for materializing document elements.

Answer: B

Correct answer: False

XSLT is declarative, not procedural: a stylesheet is a set of rules each pairing a pattern with what to produce when it matches, and the processor decides the order in which to apply them. You describe the result you want for each kind of node rather than the steps by which to build it.

Please log in or register to report this question.

35.

XML Schema is used to define the content, structure and format of documents.

Answer: B

Correct answer: True

A schema defines the content and the structure - which elements and attributes may appear, of what types, in what order and how often. Format, in the sense of how the document is to be presented, is not part of it; that is the business of XSLT, and keeping the two separate is one of the central ideas of XML.

Please log in or register to report this question.

36.

Schemas consist of properties and methods

Answer: B

Correct answer: False

Properties and methods belong to the object model. A schema consists of elements and attributes, together with the types and occurrence constraints that govern them. The vocabulary follows the document view of data rather than the object one, which is worth keeping straight when moving between the two worlds.

Please log in or register to report this question.

37.

A well-formed XML document must have exactly one root element.

Answer: B

Correct answer: True

Every well-formed XML document has a single outermost element containing all others, which makes the document a single tree. Being well-formed is a weaker requirement than being valid, which additionally demands conformity to a schema or DTD.

Please log in or register to report this question.

38.

Datasets which reside on the user's hard drive are created by ADO.NET to facilitate the transformation of XML documents to and from relational database constructs.

Answer: B

Correct answer: False

A dataset is an in-memory structure, held in the application’s own memory rather than on disk. That is what makes it useful: the application works on a disconnected copy of the data at memory speed, and reconnects only to read or to write back. It can be persisted to a file as XML, but residing on disk is not what it is.

Please log in or register to report this question.

39.

With XML, document structure, content and format are all defined within one document.

Answer: B

Correct answer: False

The separation of the three is XML’s central idea. Structure is defined by a DTD or schema, content sits in the document itself, and format is supplied by a stylesheet. Keeping them apart is what allows the same content to be materialised many different ways and to be exchanged between systems that present it differently.

Please log in or register to report this question.

40.

XML Schemas are XML documents.

Answer: A

Correct answer: True

A schema is written in XML and can therefore be parsed, validated and transformed by ordinary XML tools, and validated against the schema for schemas like any other document. This is the chief practical advantage it has over a DTD, which has a syntax of its own and needs its own machinery.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: XML and ADO.NET Questions and Answers || XML and ADO.NET MCQ Questions and Answers || XML and ADO.NET GK Questions and Answers || XML and ADO.NET GK MCQ Questions || XML and ADO.NET Multiple Choice Questions and Answers || XML and ADO.NET GK || GK on XML and ADO.NET || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database