MC Which statement is CORRECT? XML start tags can contain attribute values. correct XQuery does not support join queries. incorrect Both DTD and XSD support various data types such as character, integer and date. incorrect Within a single XML document, only one namespace can be defined and used. incorrect
MC A key difference between XML data and relational data is that... relational data can be nested whereas XML data cannot be nested. incorrect relational data assumes atomic data types whereas XML data can consist of aggregated types. correct relational data is ordered whereas XML data is not ordered. incorrect relational data can be multivalued whereas XML data cannot be multivalued. incorrect
MC Which statement is NOT CORRECT? An RDF data model consists of statements which are in subject-predicate-object format. incorrect RDF Schema enriches RDF by extending its vocabulary with classes and sub classes, properties and sub properties, and typing of properties. incorrect RDF allows to use database specific primary keys to identify resources. correct An RDF data model can be visualized as a directed, labeled graph. incorrect
MC Which statement is CORRECT? Using DTD, an XML document can be transformed to an HTML document. incorrect 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
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? 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 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
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 table is not entirely normalized and still contains redundant information. 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 above table assumes the presence of a DTD or XSD before the mapping can take place. 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 not defined using XML syntax. correct XML Schema is more verbose than DTD. incorrect XML Schema allows to specify minimum and maximum cardinalities. incorrect
MC Which statement is NOT CORRECT? Using XSLT, an XML document can be transformed to another XML document. incorrect Using XML, an XSLT document can be transformed to an XML document. correct According to 1NF, the relational model cannot have any nested relations, while XML has a hierarchical structure and elements can therefore be nested. incorrect The SAX API has a smaller memory footprint and is more scalable for processing large XML documents. incorrect
MC Which statement is NOT CORRECT? A keyword-based search of XML data uses document metadata to efficiently search through an XML document, though the latter is still stored in a file or BLOB/CLOB format. incorrect The DOM API is good in processing large XML documents in a sequential way. correct All XML tags and attributes association with the same prefix belong to the same namespace and should be unique. incorrect XQuery allows to make use of both the document structure and its content. 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