0

web technology Online Quiz - 151

Description: web technology Online Quiz - 151
Number of Questions: 20
Created by:
Tags: web technology
Attempted 0/20 Correct 0 Score 0

which one can be used to specify complex restrictions for the content of an element.

  1. sequence

  2. regular expression

  3. XSD

  4. XLT


Correct Option: B

AI Explanation

To answer this question, you need to understand how to specify complex restrictions for the content of an element.

Option A) sequence - This option is incorrect. "Sequence" is a term used in programming languages to specify the order in which statements or elements should be executed, but it does not specifically address complex restrictions for the content of an element.

Option B) regular expression - This option is correct. Regular expressions are a powerful tool used to define patterns for matching strings. They can be used to specify complex restrictions for the content of an element by defining a pattern that the content must match.

Option C) XSD - This option is incorrect. XSD stands for XML Schema Definition, which is a language used to describe the structure and constraints of XML documents. While XSD can be used to specify restrictions for the content of an element, it does not specifically address complex restrictions.

Option D) XLT - This option is incorrect. XLT is not a commonly used term or technology in the context of specifying complex restrictions for the content of an element.

The correct answer is B) regular expression. This option is correct because regular expressions can be used to define patterns that specify complex restrictions for the content of an element.

which one is used to define a valid value for an attribute.

  1. xs:value

  2. xs:sequence

  3. xs:enumeration tag

  4. None


Correct Option: C

XML can only be transformed into HTML or XHTML.

  1. True

  2. False


Correct Option: B

The statement states

  1. For each customer element of the result document

  2. For each customers element of the result document

  3. For each customer element of the source document thats a child of customers

  4. For each customers element of the source document


Correct Option: C

The element is used to

  1. Extract text from the result document

  2. Extract text from the source document

  3. Place text into the source document

  4. None of the above


Correct Option: B

The statement is used to

  1. Select the Jim element

  2. Select the Jim attribute

  3. Select the id attribute

  4. Select the id attribute if the value is Jim


Correct Option: C

The element instructs the CSS to evaluate a condition before extracting an element.

  1. True

  2. False


Correct Option: B

In order to sort numeric values, you must set the to

  1. data-type=finumberfl

  2. data-type=fivaluefl

  3. data-type=fidecimalfl

  4. None of the above


Correct Option: A

Only a browser can access a result document.

  1. True

  2. False


Correct Option: B

The SAX parser is not able to transverse an XML document.

  1. True

  2. False


Correct Option: A

The SAX parser creates a node by using

  1. createElement()

  2. reateTextNode()(

  3. createComment()

  4. None of the above


Correct Option: D

Which of the following is represented as a node in the tree a DOM parser creates?

  1. CDATA sections

  2. Comments

  3. Elements

  4. 1 & 3

  5. All of the above


Correct Option: D

The same version of a DOM parser must be used on all computers.

  1. True

  2. False


Correct Option: B

A SAX parser

  1. Organizes the XML document into a tree

  2. Reads a block of an XML document at a time

  3. Enables you to correct the contents of an XML document

  4. None of the above


Correct Option: B

$x is an

  1. Element

  2. Attribute

  3. XQuery

  4. Variable


Correct Option: D

A constructor

  1. Is the first instance of a function

  2. Is the first instance of a variable

  3. Converts information contained in an XML document to another data type

  4. None of the above


Correct Option: C

The round-half-to-even() function rounds half the value returned by a function.

  1. True

  2. False


Correct Option: B

The async = false means

  1. Statements will continue to execute as the XML document is being loaded.

  2. Statements will not execute until the XML document is being loaded.

  3. The XML document is synchronized to the HTML page.

  4. None of the above


Correct Option: B

firstChild is a

  1. Property containing a reference to the first child of an element

  2. Method that makes the current node the first child

  3. Method that substitutes the first node for the last node

  4. Method that substitutes the last node for the first node


Correct Option: A

createElement(fititlefl) means

  1. Create a new HTML element

  2. Create a title for a new HTML element

  3. Create a new XML element

  4. Create an attribute called title for the current XML element


Correct Option: C
- Hide questions