XPath Quiz Final

XPath Quiz Final

University

22 Qs

quiz-placeholder

Similar activities

Kuis Buku Digital

Kuis Buku Digital

12th Grade - University

20 Qs

CSS und HTML

CSS und HTML

10th Grade - University

18 Qs

Java Coding Questions

Java Coding Questions

University

20 Qs

Examen Mensual HTML

Examen Mensual HTML

University

20 Qs

Practice

Practice

10th Grade - University

20 Qs

Web Page Design and Development

Web Page Design and Development

University

20 Qs

Web Technology - XML - Tutorial Sheet - 04

Web Technology - XML - Tutorial Sheet - 04

University

20 Qs

Conocimientos previos: Diseño y Desarrollo Web. HTML y CSS

Conocimientos previos: Diseño y Desarrollo Web. HTML y CSS

University

20 Qs

XPath Quiz Final

XPath Quiz Final

Assessment

Quiz

Computers

University

Hard

Created by

Kevin Albania

Used 3+ times

FREE Resource

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is XPath?

A programming language used for styling XML documents

A query language used to select nodes from an XML document

A markup language used for defining custom tags in HTML

A protocol for transferring XML data over a network

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does XPath use to select nodes or node-sets in an XML document?

CSS selectors

Path expressions

SQL queries

HTML tags

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which XPath expression is used to select all elements in an XML document?

//*

/root/*

//element()

/*/*

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which XPath expression selects all <book> elements where the <price> is greater than 25?

//book[price > 25]

//book[@price > 25]

//book[price=25]

//book/price > 25

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which XPath expression selects a <book> element with an id attribute equal to "b1"?

//book[id="b1"]

//book[@id="b1"]

//book/#id="b1"

//book[id=='b1']

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which XPath expression selects the <author> of the <book> with the <title> "Mastering XML"?

//author[title="Mastering XML"]

//book/title="Mastering XML"/author

//book[title="Mastering XML"]/author

//book[@title="Mastering XML"]/author

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which XPath expression selects the title of the first <book> element?

//book[1]/title

//title[1]/book

/book[1]/title

//book/title[1]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?