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