Tag: programming languages

Questions Related to programming languages

  1. XML Document

  2. XHTML Document

  3. XSL Document

  4. XSD Document


Correct Option: A

XPath is used to navigate through

  1. different pages

  2. none of these

  3. files

  4. elements and attributes


Correct Option: D
  1. PROGRAMS

  2. FUNCTIONS

  3. VARIABLES

  4. COMMANDS


Correct Option: B
  1. 100 built-in functions

  2. 200 built-in functions

  3. more than 100 built-in functions

  4. more than 200 built-in functions


Correct Option: A
  1. XQuery 1.0 and XPath 1.0

  2. XQuery 2.0 and XPath 2.0

  3. XQuery 2.0 and XPath 1.0

  4. XQuery 1.0 and XPath 2.0


Correct Option: D
    1. November 1999
    1. November 1998
    1. November 1999
    1. November 1998

Correct Option: C

Which of these is not a valid XPath Axes ?

  1. following

  2. followed

  3. ancestor

  4. attribute


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of XPath axes. XPath axes are used to navigate through the elements and nodes in an XML document.

Let's go through each option to understand why it is correct or incorrect:

Option A) following - This option is a valid XPath axis. The "following" axis selects all the nodes that come after the current node in the document order.

Option B) followed - This option is not a valid XPath axis. There is no "followed" axis in XPath, so this option is incorrect.

Option C) ancestor - This option is a valid XPath axis. The "ancestor" axis selects all the ancestors of the current node.

Option D) attribute - This option is a valid XPath axis. The "attribute" axis selects all the attributes of the current node.

The correct answer is B) followed. This option is not a valid XPath axis because there is no "followed" axis in XPath.