XML

Question 1

Which of the following is TRUE only of XML but NOT HTML?

A
It is derived from SGML
B
It describes content and layout
C
It allows user defined tags
D
It is restricted only to be used with web browsers
       Web-Technologies       XML       GATE 2008-IT
Question 1 Explanation: 
Note: Out of syllabus.
Question 2

Consider the XML document fragment given below:

Consider the XPath expression: *[not (self)::TOC]
What would be the result of the given XPath expression when the current node is Book?

A
The Title and Content elements
B
The Content and TOC elements
C
The Title and TOC elements
D
The Title, Content and TOC elements
       Web-Technologies       XML       GATE 2007-IT
Question 2 Explanation: 
Note: Out of syllabus.
Question 3

Consider the following XML DTD describing course information in a university:

<!ELEMENT Univ (Course+, Prof+)>
<!ELEMENT Course (Title, Eval*)>
<!ATTLIST Course Number ID #REQUIRED Instructor IDREF #IMPLIED>
<!ELEMENT Title (#PCDATA)>
<!ELEMENT Eval (#PCDATA)>
<!ATTLIST Eval Score CDATA #REQUIRED>
<!ELEMENT Prof EMPTY>
<!ATTLIST Prof Name ID #REQUIRED Teaches IDREF #IMPLIED>

What is returned by the following XQuery?

let $as := //@Score
for $c in /Univ/Course[Eval]
let $cs := $c/Eval?@Score
where min($cs) > avg($as)
return $c 
A
The professor with the lowest course evaluation
B
Professors who have all their course evaluations above the university average
C
The course with the lowest evaluation
D
Courses with all evaluations above the university average
       Web-Technologies       XML       GATE 2006-IT
Question 3 Explanation: 
Note: Out of syllabus.
Question 4

A HTML form is to be designed to enable purchase of office stationery. Required items are to be selected (checked). Credit card details are to be entered and then the submit button is to be pressed. Which one of the following options would be appropriate for sending the data to the server. Assume that security is handled in a way that is transparent to the form design.

A
Only GET
B
Only POST
C
Either of GET or POST
D
Neither GET nor POST
       HTML       XML       GATE 2005-IT
Question 4 Explanation: 
Note: Out of syllabus.
Question 5

Given below is an excerpt of an xml specification.

Given below are several possible excerpts from "library.dtd". For which excerpt would the above specification be valid?

A




B




C




D




       HTML       XML       GATE 2005-IT
Question 5 Explanation: 
Note: Out of syllabus.
Question 6

Consider an XML file called intro.xml and a document type defintion (DTD) file intro.dtd as follows:

A validating parser will classify intro.xml as

A
Well-formed and validated
B
Well-formed but not validated
C
Validated but not well-formed
D
Neither validated nor well-formed
       HTML       XML       GATE 2004-IT
Question 6 Explanation: 
Note: Out of syllabus.
Question 7

Given below are several usages of the anchor tag in HTML.

Which of the above are valid?

A
1 and 2 only
B
1 and 3 only
C
1, 2 and 3 only
D
1, 2, 3 and 4
       HTML       XML       GATE 2004-IT
Question 7 Explanation: 
Note: Out of syllabus.
Question 8
XPath is used to navigate through elements and attributes in
A
XSL document
B
XML document
C
XHTML document
D
XQuery document
       Web-Technologies       XML       ISRO-2017 May       Video-Explanation
Question 8 Explanation: 
XPath
1. XPath stands for XML Path Language
2. XPath uses "path like" syntax to identify and navigate nodes in an XML document
3. XPath contains over 200 built-in functions
4. XPath is a major element in the XSLT standard
There are 8 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access