0

programming languages Online Quiz - 249

Description: programming languages Online Quiz - 249
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

____ is a major element in the W3C's XSLT standard

  1. XQuery

  2. XPath

  3. XPointer

  4. XLink


Correct Option: B

AI Explanation

To answer this question, you need to understand the W3C's XSLT standard and its major elements. Let's go through each option to understand why it is correct or incorrect:

Option A) XQuery - XQuery is a separate language used for querying XML data. It is not a major element in the XSLT standard, so this option is incorrect.

Option B) XPath - XPath is a major element in the XSLT standard. It is a language used to navigate and select nodes in XML documents. XPath expressions are commonly used in XSLT transformations to specify the source and destination of data. Therefore, this option is correct.

Option C) XPointer - XPointer is a separate W3C recommendation that provides a framework for addressing parts of an XML document. While XPointer can be used in conjunction with XSLT, it is not a major element in the XSLT standard, so this option is incorrect.

Option D) XLink - XLink is another separate W3C recommendation that provides a way to create and manage hyperlinks in XML documents. While XLink can be used in conjunction with XSLT, it is not a major element in the XSLT standard, so this option is incorrect.

The correct answer is B) XPath. This option is correct because XPath is a major element in the XSLT standard and is used extensively in XSLT transformations.

XPath is a language for finding information in an

  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

XPath is a ____ for defining parts of an XML document.

  1. PROGRAM

  2. FUNCTION

  3. PROCEDURE

  4. SYNTAX


Correct Option: D

XPath contains a library of standard

  1. PROGRAMS

  2. FUNCTIONS

  3. VARIABLES

  4. COMMANDS


Correct Option: B

XPath includes over

  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

________ share the same data model and support the same functions and operators.

  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

XPath became a W3C Recommendation on

    1. November 1999
    1. November 1998
    1. November 1999
    1. November 1998

Correct Option: C
  1. following

  2. followed

  3. ancestor

  4. attribute


Correct Option: B

Which of these are not valid path expressions of XPath ?

  1. //

  2. @

  3. $

  4. /


Correct Option: C
Explanation:

To solve this question, the user needs to know the basics of XPath and its path expressions.

Now, let's go through each option and explain why it is right or wrong:

A. //: This is a valid XPath path expression which selects all the nodes with the matching name, regardless of their position in the document.

B. @: This is a valid XPath path expression which selects attributes of the selected element.

C. $: This is not a valid XPath path expression. XPath doesn't use $ to select nodes or attributes.

D. /: This is a valid XPath path expression which selects the root node of the document or the current node if used at the beginning of the expression.

Therefore, the answer is:

The Answer is: C

Java is an

  1. Subject Oriented Language

  2. Object Oriented Language

  3. testing tool

  4. Server


Correct Option: B

Operator overloading is satisfied in java by

  1. /

  2. *

  3. +

  4. None of the above


Correct Option: C

The default value of boolean in java is

  1. true

  2. false

  3. 1

  4. -1


Correct Option: B

If multiple inheritance is achieved through java, which is the only way to achieve it?

  1. Abstract Class

  2. Interface

  3. Final Method

  4. none of the above


Correct Option: B

Final methods can be overriden.

  1. True

  2. False


Correct Option: B

What is true?

  1. A view contains data

  2. Views can be buffered

  3. Views can not be buffered

  4. None of above


Correct Option: B

Which data type cannot be used to define parameters.

  1. Type N

  2. Type C

  3. Type F

  4. Type P


Correct Option: C

Is Session Method, Asynchronous or Synchronous?

  1. Asynchronous

  2. Synchronous

  3. Synchronous and Asynchronous

  4. None of above


Correct Option: B

What is invalid attribute of a domain?

  1. Type

  2. Fixed values

  3. Length

  4. Header


Correct Option: D

Command flushes the database buffers.

  1. /$TAB

  2. /$RESET

  3. /$INIT

  4. /$FREE


Correct Option: A
- Hide questions