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. Converts value to a string
transforming
string(arg)
sequence
timezone-from-time(time)
2. Predicates work somewhat like _____________
.
arrays and functions
criteria
substring-after(str1, str2)
3. Returns length of passed string
true() and false()
lower-case(str)
string-length(str)
ceiling(num)
4. Travels from current node to select nodes that match - wherever they are
5. Selects all title elements which have any attribute
substring-before(str1, str2)
//*
//book/title | //book/price
//title[@*]
6. Returns substring from start position to end of string
transformation
string-length()
substring(str,start)
//book[@isbn]
7. Returns today's date
remove((item1, item2, item3...), position)
current-date()
'/'
concat(str1, str2, str3...)
8. Returns true if str1 starts with str2
parent node
matches(str1, str2)
div
starts-with(str1, str2)
9. Returns complete date/time
current-dateTime()
arrays and functions
books/book[1]
attribute node
10. Returns true if str1 ends with str2
abs(num)
ends-with(str1, str2)
string(arg)
syntax
11. Returns true if str1 contains str2
contains(str1, str2)
sequence
XSLT
.
12. Returns year value out of the date passed
transformation
string-join((str1, str2, str3), separator)
year-from-date(date)
year-from-date(current-date())
13. Returns false or true
month-from-date(date)
boolean(arg)
substring(str,start)
string-length(str)
14. Returns false if true - true if false (negative logic)
nodes
normalize-space(str)
div
not(arg)
15. Returns month value out of date passed
//title | //price
starts-with(str1, str2)
month-from-date(date)
substring-before(str1, str2)
16. Converts string to upper case
Xpath operators
minutes-from-time(time)
upper-case(str)
/bookstore/book/title | //price
17. _______ have 3 primary relationships: parent - child - sibling
month-from-date(date)
Xpath operators
true() and false()
nodes
18. Returns length of current node string
books/book[last()]
ceiling(num)
day-from-date(date)
string-length()
19. Returns everything before the first occurrence of str2
ends-with(str1, str2)
substring-after(str1, str2)
substring-before(str1, str2)
starts-with(str1, str2)
20. every element and every attribute have just one _________
substring-before(str1, str2)
processor application
parent node
..
21. Returns second value from time passed
seconds-from-time(time)
substring(str,start)
..
current-time()
22. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
child nodes
floor(num)
current-date()
23. Returns boolean true or boolean false
remove((item1, item2, item3...), position)
true() and false()
insert-before((item1, item2, item3...), positionX, itemX)
current-time()
24. Returns 2008
child nodes
transformation
//book/title | //book/price
year-from-date(current-date())
25. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
insert-before((item1, item2, item3...), positionX, itemX)
substring-after(str1, str2)
compare(arg1, arg2)
26. XPath is a major element in _______
day-from-date(date)
syntax
XSLT
transformation
27. Returns n-length substring from start position
substring(str1, start, len)
instinct-values(item1, item2, item3...))
substring(str,start)
month-from-date(date)
28. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
parent
Xpath operators
substring(str,start)
insert-before((item1, item2, item3...), positionX, itemX)
29. Returns timezone value from time passed
round(num)
translate(str1, str2, str3)
usable document
timezone-from-time(time)
30. Returns logically rounded integer
books/book[price > 35.00]
round(num)
string-join((str1, str2, str3), separator)
boolean(arg)
31. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
//title[@*]
concat(str1, str2, str3...)
index-of((item1, item2), item3...), target)
lower-case(str)
32. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
contains(str1, str2)
'/'
transforming
seconds-from-time(time)
33. selects first book element from the children of books element
upper-case(str)
nodes
books/book[1]
abs(num)
34. Selects all the child nodes of the bookstore element
parent
/bookstore/*
//title | //price
insert-before((item1, item2, item3...), positionX, itemX)
35. Returns absolute value (example abs(-2.5) returns 2.5
remove((item1, item2, item3...), position)
translate(str1, str2, str3)
abs(num)
current-time()
36. Returns next highest integer
seconds-from-time(time)
ceiling(num)
parent
path
37. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
not(arg)
number(arg)
usable document
38. Returns time right now
month-from-date(current-date())
books/book[1]
current-time()
processing-instruction
39. XPath contains a library of _________
round(num)
standard function
day-from-date(date)
substring(str1, start, len)
40. xpath function categories: numeric - string - boolea - date/time - ________
current-date()
seconds-from-time(time)
sequence
path expressions
41. Selects all elements in the document
//*
nodes
contains(str1, str2)
child nodes
42. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
//book/title | //book/price
concat(str1, str2, str3...)
month-from-date(date)
substring(str1, start, len)
43. Selects attributes
..
string-join((str1, str2, str3), separator)
@
books/book[1]
44. ________ allow more specific selections within the XPath
hours-from-time(time)
normalize-space(str)
Predicates
insert-before((item1, item2, item3...), positionX, itemX)
45. Sibling nodes all have the same ______
parent
starts-with(str1, str2)
string(arg)
Xpath operators
46. Converts string to lower case
nodes
Predicates
index-of((item1, item2), item3...), target)
lower-case(str)
47. Selects first two book elements from the children of books element
books/book[position()
/bookstore/*
translate(str1, str2, str3)
current-date()
48. Concatenates strings together with separator between each string
number(arg)
string-join((str1, str2, str3), separator)
year-from-date(current-date())
minutes-from-time(time)
49. Selects current node
.
instinct-values(item1, item2, item3...))
books/book[last()]
normalize-space(str)
50. Converts string number to numeric value
transforming
number(arg)
parent
normalize-space(str)