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. every element and every attribute have just one _________
//book/title | //book/price
string-length()
string(arg)
parent node
2. XPath is a major element in _______
criteria
compare(arg1, arg2)
'/'
XSLT
3. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
div
index-of((item1, item2), item3...), target)
compare(arg1, arg2)
4. Selects current node
.
parent node
concat(str1, str2, str3...)
remove((item1, item2, item3...), position)
5. Returns logically rounded integer
round(num)
//*
sequence
ceiling(num)
6. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
floor(num)
remove((item1, item2, item3...), position)
transforming
standard function
7. XSL is what we use to get from readable to _________
string-join((str1, str2, str3), separator)
criteria
usable document
round(num)
8. 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
number(arg)
string(arg)
minutes-from-time(time)
criteria
9. Returns true if str1 ends with str2
parent node
ends-with(str1, str2)
normalize-space(str)
year-from-date(date)
10. The XPath division operator not "/" cuz "/" is used in path expressions
//title | //price
div
'//'
translate(str1, str2, str3)
11. Returns minute value from time passed
number(arg)
'/'
boolean(arg)
minutes-from-time(time)
12. Returns substring from start position to end of string
criteria
substring(str,start)
transforming
current-dateTime()
13. Replaces chars of str2 found in str1 with chars of str3
concat(str1, str2, str3...)
translate(str1, str2, str3)
month-from-date(date)
//title | //price
14. Selects first two book elements from the children of books element
books/book[position()
true() and false()
nodes
month-from-date(current-date())
15. Returns false or true
transforming
attribute node
boolean(arg)
div
16. Selects attributes
Xpath operators
normalize-space(str)
not(arg)
@
17. Converts string to upper case
upper-case(str)
index-of((item1, item2), item3...), target)
string-join((str1, str2, str3), separator)
month-from-date(date)
18. Returns complete date/time
transforming
replace(str1, str2, str3)
current-dateTime()
Xpath operators
19. _______ have 3 primary relationships: parent - child - sibling
round(num)
criteria
sequence
nodes
20. Selects all elements in the document
compare(arg1, arg2)
substring-before(str1, str2)
abs(num)
//*
21. Returns everything before the first occurrence of str2
usable document
boolean(arg)
substring-before(str1, str2)
floor(num)
22. Use a | to select more than one _____ (means AND)
transforming
path
/bookstore/*
path expressions
23. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
sequence
lower-case(str)
attribute node
contains(str1, str2)
24. Element nodes may have zero - one - or more _________
child nodes
matches(str1, str2)
usable document
abs(num)
25. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
seconds-from-time(time)
'/'
instinct-values(item1, item2, item3...))
//*
26. Selects all title elements of the book element AND all price elements in the entire document
abs(num)
/bookstore/book/title | //price
sequence
month-from-date(date)
27. selects first book element from the children of books element
books/book[1]
trees of nodes
transforming
//book[@isbn]
28. Returns second value from time passed
seconds-from-time(time)
string-join((str1, str2, str3), separator)
Xpath operators
processing-instruction
29. Returns true if str1 contains str2
contains(str1, str2)
month-from-date(current-date())
usable document
'/'
30. Trims leading and trailing spaces
normalize-space(str)
standard function
//*
Predicates
31. Returns timezone value from time passed
timezone-from-time(time)
substring-before(str1, str2)
index-of((item1, item2), item3...), target)
/bookstore/*
32. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
books/book[last()]
round(num)
boolean(arg)
concat(str1, str2, str3...)
33. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
string-length()
XSLT
path
insert-before((item1, item2, item3...), positionX, itemX)
34. Selects all book elements with an attribute isbn=
true() and false()
contains(str1, str2)
@
//book[@isbn]
35. Selects last book element from the children of books element
criteria
..
/bookstore/*
books/book[last()]
36. Returns true if str1 starts with str2
starts-with(str1, str2)
Xpath operators
substring-before(str1, str2)
hours-from-time(time)
37. Selects from the root node
'/'
38. Selects all title AND price elements of all book elements
attribute node
lower-case(str)
//book/title | //book/price
concat(str1, str2, str3...)
39. Sibling nodes all have the same ______
parent
current-time()
//book/title | //book/price
'//'
40. Returns year value out of the date passed
Predicates
not(arg)
//title | //price
year-from-date(date)
41. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
month-from-date(current-date())
path expressions
ceiling(num)
books/book[1]
42. Selects all the child nodes of the bookstore element
trees of nodes
current-time()
'//'
/bookstore/*
43. Returns today's date
standard function
upper-case(str)
year-from-date(date)
current-date()
44. Selects all title AND price elements in the entire document
arrays and functions
//title | //price
upper-case(str)
//*
45. Returns day value from date passed
day-from-date(date)
'/'
/bookstore/*
substring-before(str1, str2)
46. Returns time right now
processing-instruction
syntax
arrays and functions
current-time()
47. xpath function categories: numeric - string - boolea - date/time - ________
'//'
ceiling(num)
sequence
nodes
48. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
transforming
current-dateTime()
month-from-date(current-date())
attribute node
49. Converts value to a string
XSLT
true() and false()
processing-instruction
string(arg)
50. Returns n-length substring from start position
..
substring(str1, start, len)
usable document
floor(num)