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. Returns second value from time passed
instinct-values(item1, item2, item3...))
nodes
ends-with(str1, str2)
seconds-from-time(time)
2. Returns timezone value from time passed
insert-before((item1, item2, item3...), positionX, itemX)
/bookstore/book/title | //price
timezone-from-time(time)
/bookstore/*
3. Selects first two book elements from the children of books element
books/book[position()
trees of nodes
Xpath operators
boolean(arg)
4. Returns year value out of the date passed
Xpath operators
hours-from-time(time)
//title | //price
year-from-date(date)
5. Returns month value out of date passed
year-from-date(date)
string-length()
Xpath operators
month-from-date(date)
6. Selects all title elements of the book element AND all price elements in the entire document
minutes-from-time(time)
/bookstore/book/title | //price
@
//*
7. XPath is a for defining parts of an XML document
insert-before((item1, item2, item3...), positionX, itemX)
//title[@*]
syntax
day-from-date(date)
8. The XPath division operator not "/" cuz "/" is used in path expressions
//title[@*]
concat(str1, str2, str3...)
string-length(str)
div
9. Selects all book elements with a child element "price" with values greater than 35
@
abs(num)
books/book[price > 35.00]
criteria
10. xpath function categories: numeric - string - boolea - date/time - ________
timezone-from-time(time)
substring-before(str1, str2)
sequence
//title[@*]
11. every element and every attribute have just one _________
hours-from-time(time)
month-from-date(date)
parent
parent node
12. Use a | to select more than one _____ (means AND)
sequence
'//'
path
books/book[position()
13. Sibling nodes all have the same ______
string-join((str1, str2, str3), separator)
parent
current-time()
//book[@isbn]
14. Converts string to upper case
contains(str1, str2)
floor(num)
//book[@isbn]
upper-case(str)
15. Selects last book element from the children of books element
current-time()
books/book[last()]
Predicates
//title[@*]
16. Returns 2008
upper-case(str)
year-from-date(current-date())
arrays and functions
usable document
17. Returns true if str1 ends with str2
replace(str1, str2, str3)
remove((item1, item2, item3...), position)
ends-with(str1, str2)
/bookstore/book/title | //price
18. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
//*
year-from-date(date)
//title[@*]
19. Converts string number to numeric value
XSLT
month-from-date(current-date())
number(arg)
processor application
20. Returns logically rounded integer
round(num)
//book[@isbn]
ends-with(str1, str2)
floor(num)
21. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
concat(str1, str2, str3...)
index-of((item1, item2), item3...), target)
processing-instruction
//title[@*]
22. Concatenates strings together with separator between each string
string-length(str)
starts-with(str1, str2)
XSLT
string-join((str1, str2, str3), separator)
23. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
upper-case(str)
Predicates
true() and false()
24. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
XSLT
path expressions
string-length(str)
arrays and functions
25. Returns substring from start position to end of string
standard function
child nodes
substring(str,start)
month-from-date(date)
26. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
substring-before(str1, str2)
attribute node
/bookstore/book/title | //price
normalize-space(str)
27. XPath contains a library of _________
nodes
standard function
substring(str1, start, len)
current-time()
28. Returns length of passed string
replace(str1, str2, str3)
string-length(str)
//title[@*]
nodes
29. selects first book element from the children of books element
processing-instruction
current-dateTime()
books/book[1]
seconds-from-time(time)
30. Trims leading and trailing spaces
parent
normalize-space(str)
Xpath operators
'/'
31. 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
32. Selects all the child nodes of the bookstore element
syntax
/bookstore/*
normalize-space(str)
concat(str1, str2, str3...)
33. Selects from the root node
'/'
34. Selects all title AND price elements in the entire document
//book[@isbn]
//title | //price
not(arg)
processing-instruction
35. _______ have 3 primary relationships: parent - child - sibling
.
nodes
not(arg)
round(num)
36. Returns time right now
true() and false()
current-time()
year-from-date(date)
index-of((item1, item2), item3...), target)
37. Selects all book elements with an attribute isbn=
/bookstore/*
string-join((str1, str2, str3), separator)
//book[@isbn]
string(arg)
38. Returns hour value from time passed
transformation
hours-from-time(time)
year-from-date(date)
Xpath operators
39. Returns everything before the first occurrence of str2
month-from-date(date)
substring-before(str1, str2)
//title | //price
Predicates
40. Returns today's date
replace(str1, str2, str3)
books/book[1]
books/book[price > 35.00]
current-date()
41. Selects attributes
/bookstore/book/title | //price
true() and false()
@
substring(str,start)
42. Returns false if true - true if false (negative logic)
standard function
not(arg)
current-dateTime()
XSLT
43. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
syntax
'//'
insert-before((item1, item2, item3...), positionX, itemX)
44. Element nodes may have zero - one - or more _________
upper-case(str)
//book/title | //book/price
current-dateTime()
child nodes
45. Returns everything after the first occurrence of str2
child nodes
month-from-date(current-date())
substring-after(str1, str2)
.
46. Selects parent of current node
//book[@isbn]
..
current-time()
parent node
47. Selects all elements in the document
processor application
string(arg)
//*
lower-case(str)
48. Returns true if str1 contains str2
round(num)
substring-after(str1, str2)
contains(str1, str2)
..
49. Returns next lowest integer
floor(num)
books/book[price > 35.00]
concat(str1, str2, str3...)
remove((item1, item2, item3...), position)
50. Returns true if str1 starts with str2
//book/title | //book/price
books/book[1]
criteria
starts-with(str1, str2)