MC In case an application needs to process large XML documents in a sequential way, it is recommended to use the: DOM API incorrect SAX API correct
MC Which statement is NOT CORRECT? XPath considers an XML document as a set of XML elements. correct XPath is a simple, declarative language. incorrect XPath uses path expressions to refer to parts of an XML document. incorrect Every navigation step in XPath results in a node or list of nodes which can then be used to continue the navigation. incorrect
MC Which statement is NOT CORRECT? The main advantage of a data-oriented approach to storing XML documents is that SQL queries can directly access and manipulate individual XML elements. incorrect REST-based web services can only work with JSON as a data representation format. correct An XML document is considered well-formed if it has only one root element, every start tag is closed with a matching end tag, and there is no overlapping tag sequence or incorrect nesting of tags. incorrect XML Schema is more verbose than DTD. incorrect
MC Which of the following are properties of SPARQL? Is is based upon matching graph patterns. incorrect It can query RDF graphs. incorrect It provides support for namespaces. incorrect All of these properties. correct
MC In case an application needs to process large XML documents in a sequential way, it is recommended to use the: DOM API incorrect SAX API correct
MC Consider the following table which maps an XML document to a relational database:
CREATE TABLE NODE(
ID CHAR(6) NOT NULL PRIMARY KEY,
PARENT_ID CHAR(6),
TYPE VARCHAR(9),
LABEL VARCHAR(20),
VALUE CLOB,
FOREIGN KEY (PARENT_ID) REFERENCES NODE (ID)
CONSTRAINT CC1 CHECK(TYPE IN ("element", "attribute"))
);
Which statement is CORRECT? The above table assumes the presence of a DTD or XSD before the mapping can take place. incorrect The table will require extensive querying resources since every single (e.g. XPath) navigation step requires a self-join on this table. correct Using the above table, every XPath expression can be translated to a corresponding SQL query. incorrect The table is not entirely normalized and still contains redundant information. incorrect
MC Consider the following table which maps an XML document to a relational database:
CREATE TABLE NODE(
ID CHAR(6) NOT NULL PRIMARY KEY,
PARENT_ID CHAR(6),
TYPE VARCHAR(9),
LABEL VARCHAR(20),
VALUE CLOB,
FOREIGN KEY (PARENT_ID) REFERENCES NODE (ID)
CONSTRAINT CC1 CHECK(TYPE IN ("element", "attribute"))
);
Which statement is CORRECT? The above table assumes the presence of a DTD or XSD before the mapping can take place. incorrect Using the above table, every XPath expression can be translated to a corresponding SQL query. incorrect The table will require extensive querying resources since every single (e.g. XPath) navigation step requires a self-join on this table. correct The table is not entirely normalized and still contains redundant information. incorrect
MC Which statement is NOT CORRECT? Various data types are supported in XML Schema such as xs:string, xs:short, xs:byte, etc. incorrect XML Schema is more verbose than DTD. incorrect XML Schema is not defined using XML syntax. correct XML Schema allows to specify minimum and maximum cardinalities. incorrect
MC Which statement is CORRECT? Using XML, an XSLT document can be transformed to an XML document. incorrect Using HTML, an XML document can be transformed to an XSLT document. incorrect Using XSLT, an XML document can be transformed to another XML document. correct Using DTD, an XML document can be transformed to an HTML document. incorrect
MC In case an application needs to process large XML documents in a sequential way, it is recommended to use the: SAX API correct DOM API incorrect