SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
XML XPATH
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. In str1, replaces all occurrences of str2 with str3
lower-case(str)
'//'
replace(str1, str2, str3)
contains(str1, str2)
2. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
nodes
concat(str1, str2, str3...)
year-from-date(date)
3. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
ceiling(num)
translate(str1, str2, str3)
string-join((str1, str2, str3), separator)
index-of((item1, item2), item3...), target)
4. Returns hour value from time passed
round(num)
upper-case(str)
hours-from-time(time)
translate(str1, str2, str3)
5. Returns false or true
boolean(arg)
processing-instruction
year-from-date(date)
normalize-space(str)
6. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
books/book[1]
substring(str1, start, len)
child nodes
7. Returns n-length substring from start position
substring(str1, start, len)
current-dateTime()
parent node
seconds-from-time(time)
8. Selects all title AND price elements of all book elements
//book/title | //book/price
contains(str1, str2)
path
attribute node
9. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
abs(num)
books/book[position()
concat(str1, str2, str3...)
minutes-from-time(time)
10. _______ have 3 primary relationships: parent - child - sibling
nodes
usable document
attribute node
..
11. XSL is what we use to get from readable to _________
remove((item1, item2, item3...), position)
usable document
substring(str,start)
div
12. Returns minute value from time passed
parent
minutes-from-time(time)
floor(num)
/bookstore/*
13. Returns true if str1 ends with str2
path expressions
floor(num)
//title | //price
ends-with(str1, str2)
14. Returns 2008
replace(str1, str2, str3)
child nodes
sequence
year-from-date(current-date())
15. XPath contains a library of _________
minutes-from-time(time)
current-date()
seconds-from-time(time)
standard function
16. Selects all elements in the document
XSLT
//*
boolean(arg)
string-join((str1, str2, str3), separator)
17. Travels from current node to select nodes that match - wherever they are
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. Returns next highest integer
sequence
path
ceiling(num)
path expressions
19. Converts value to a string
string(arg)
starts-with(str1, str2)
year-from-date(current-date())
books/book[last()]
20. Converts string number to numeric value
current-time()
//*
number(arg)
parent
21. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
processing-instruction
/bookstore/*
Xpath operators
Predicates
22. Returns month value out of date passed
month-from-date(date)
//title[@*]
path expressions
@
23. Selects all title elements which have any attribute
transforming
books/book[price > 35.00]
path
//title[@*]
24. Returns time right now
upper-case(str)
current-time()
replace(str1, str2, str3)
path expressions
25. Element nodes may have zero - one - or more _________
compare(arg1, arg2)
XSLT
timezone-from-time(time)
child nodes
26. Returns second value from time passed
seconds-from-time(time)
year-from-date(current-date())
path
nodes
27. Converts string to upper case
month-from-date(date)
substring-before(str1, str2)
concat(str1, str2, str3...)
upper-case(str)
28. Returns length of current node string
string-length()
trees of nodes
processing-instruction
XSLT
29. Returns substring from start position to end of string
//*
substring(str,start)
instinct-values(item1, item2, item3...))
floor(num)
30. Selects all book elements with an attribute isbn=
//book[@isbn]
floor(num)
Predicates
standard function
31. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
month-from-date(date)
string-length(str)
remove((item1, item2, item3...), position)
path expressions
32. Returns today's date
current-date()
current-dateTime()
instinct-values(item1, item2, item3...))
/bookstore/*
33. Returns false if true - true if false (negative logic)
round(num)
insert-before((item1, item2, item3...), positionX, itemX)
not(arg)
substring-after(str1, str2)
34. Returns true if str1 starts with str2
starts-with(str1, str2)
Predicates
day-from-date(date)
translate(str1, str2, str3)
35. Selects all title elements of the book element AND all price elements in the entire document
..
books/book[last()]
substring(str1, start, len)
/bookstore/book/title | //price
36. xpath function categories: numeric - string - boolea - date/time - ________
sequence
books/book[1]
normalize-space(str)
//book/title | //book/price
37. Returns day value from date passed
number(arg)
normalize-space(str)
path expressions
day-from-date(date)
38. Returns everything before the first occurrence of str2
current-time()
substring-before(str1, str2)
//title | //price
books/book[last()]
39. Selects parent of current node
..
nodes
standard function
books/book[last()]
40. Trims leading and trailing spaces
normalize-space(str)
string(arg)
minutes-from-time(time)
//title[@*]
41. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
year-from-date(current-date())
//book/title | //book/price
transforming
transformation
42. Returns year value out of the date passed
year-from-date(date)
seconds-from-time(time)
parent
index-of((item1, item2), item3...), target)
43. Use a | to select more than one _____ (means AND)
path
substring-after(str1, str2)
//book[@isbn]
parent
44. Returns boolean true or boolean false
'//'
hours-from-time(time)
true() and false()
path
45. Returns next lowest integer
sequence
'//'
floor(num)
replace(str1, str2, str3)
46. every element and every attribute have just one _________
processing-instruction
parent node
index-of((item1, item2), item3...), target)
/bookstore/book/title | //price
47. A predicate is used by is used by adding square brackets [ ] to the end of a path or portion of a path - and adding ________ inside the brackets
criteria
processing-instruction
books/book[price > 35.00]
concat(str1, str2, str3...)
48. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
div
lower-case(str)
books/book[1]
49. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
//book[@isbn]
day-from-date(date)
path
processing-instruction
50. Selects attributes
matches(str1, str2)
trees of nodes
div
@