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

XML and ADO.NET Questions and Answers

11.

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.

12.

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.

13.

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.

14.

What standard, protocol or language was generalized to become a standard protocol for sending messages of any type, using any protocol?

Answer: A

Correct answer: SOAP

SOAP began as a way of making remote procedure calls over the internet in XML, and was then generalised into a protocol for carrying a message of any kind over any transport. That generalisation is why the acronym was abandoned: it no longer stands for simple object access, and the name is now just a name.

Please log in or register to report this question.

15.

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.

Answer: A

Correct answer: Web page display is the most important application of XML.

Display is what HTML was designed for. XML’s importance lies in separating structure, content and materialisation so that the same content can be presented in many ways and, more importantly, exchanged between systems. Its principal use is the interchange of structured data rather than the display of pages.

Please log in or register to report this question.

Answer: A

Correct answer: place the values of the columns as attributes in the resulting XML document.

FOR XML RAW produces one generic row element per row with the column values as attributes of it. FOR XML AUTO uses table names as elements, and FOR XML EXPLICIT gives complete control over the shape, letting some columns become elements and others attributes at the cost of a much more elaborate query.

Please log in or register to report this question.

18.

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.

19.

Web page display is the most important application of XML.

Answer: B

Correct answer: False

Display is HTML’s purpose. XML’s value is the separation of structure, content and materialisation, which makes it a vehicle for exchanging structured data between systems that share no software. Rendering a page is one thing that can be done with XML, by way of XSLT, but it is not the main reason it exists.

Please log in or register to report this question.

Answer: C

Correct answer: XSLT uses a set of procedures that specify how a document is to be programmed.

XSLT is declarative: the stylesheet is a set of rules stating what to produce when a pattern is matched, and the processor decides when to apply them. It contains no procedures and specifies no order of execution. The other three statements describe it correctly.

Please log in or register to report this question.

Loading…
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