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. Replaces chars of str2 found in str1 with chars of str3
path expressions
transformation
contains(str1, str2)
translate(str1, str2, str3)
2. Selects attributes
minutes-from-time(time)
normalize-space(str)
@
transforming
3. Returns true if str1 contains str2
string-length()
matches(str1, str2)
number(arg)
contains(str1, str2)
4. Converts string number to numeric value
number(arg)
minutes-from-time(time)
books/book[position()
floor(num)
5. Element nodes may have zero - one - or more _________
syntax
child nodes
substring(str,start)
books/book[position()
6. Returns 2008
usable document
ceiling(num)
seconds-from-time(time)
year-from-date(current-date())
7. Returns n-length substring from start position
substring(str1, start, len)
not(arg)
concat(str1, str2, str3...)
/bookstore/book/title | //price
8. Predicates work somewhat like _____________
div
compare(arg1, arg2)
arrays and functions
seconds-from-time(time)
9. Returns true if str1 starts with str2
floor(num)
starts-with(str1, str2)
path expressions
year-from-date(date)
10. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
boolean(arg)
translate(str1, str2, str3)
XSLT
index-of((item1, item2), item3...), target)
11. Returns next highest integer
day-from-date(date)
ceiling(num)
standard function
not(arg)
12. _______ have 3 primary relationships: parent - child - sibling
parent node
nodes
not(arg)
//title[@*]
13. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
lower-case(str)
translate(str1, str2, str3)
div
14. XPath is a for defining parts of an XML document
/bookstore/*
syntax
arrays and functions
remove((item1, item2, item3...), position)
15. Selects current node
nodes
.
string-length(str)
substring(str1, start, len)
16. 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
17. Returns length of current node string
transforming
processor application
string-length()
normalize-space(str)
18. Returns false or true
Predicates
@
boolean(arg)
'/'
19. Selects all book elements with a child element "price" with values greater than 35
books/book[price > 35.00]
books/book[1]
attribute node
string-length()
20. Returns year value out of the date passed
Xpath operators
books/book[position()
year-from-date(date)
index-of((item1, item2), item3...), target)
21. Returns next lowest integer
current-time()
Predicates
floor(num)
criteria
22. Returns time right now
@
usable document
parent
current-time()
23. Selects all title elements which have any attribute
string-length(str)
instinct-values(item1, item2, item3...))
//title[@*]
usable document
24. The XPath division operator not "/" cuz "/" is used in path expressions
div
XSLT
parent node
replace(str1, str2, str3)
25. ________ allow more specific selections within the XPath
'//'
insert-before((item1, item2, item3...), positionX, itemX)
Predicates
string-length()
26. xpath function categories: numeric - string - boolea - date/time - ________
sequence
insert-before((item1, item2, item3...), positionX, itemX)
instinct-values(item1, item2, item3...))
hours-from-time(time)
27. XPath contains a library of _________
standard function
attribute node
transformation
//book[@isbn]
28. every element and every attribute have just one _________
books/book[last()]
parent node
transforming
starts-with(str1, str2)
29. Selects parent of current node
abs(num)
current-date()
usable document
..
30. Selects all book elements with an attribute isbn=
substring-after(str1, str2)
//book[@isbn]
div
path
31. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
attribute node
standard function
month-from-date(date)
32. Returns October or 10 ?
month-from-date(current-date())
substring(str,start)
nodes
transforming
33. Sibling nodes all have the same ______
substring(str,start)
parent
lower-case(str)
compare(arg1, arg2)
34. Selects last book element from the children of books element
path
hours-from-time(time)
books/book[last()]
contains(str1, str2)
35. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
month-from-date(date)
remove((item1, item2, item3...), position)
/bookstore/book/title | //price
transformation
36. In str1, replaces all occurrences of str2 with str3
string-join((str1, str2, str3), separator)
day-from-date(date)
replace(str1, str2, str3)
boolean(arg)
37. Returns true if str1 ends with str2
not(arg)
true() and false()
ends-with(str1, str2)
books/book[position()
38. Returns length of passed string
string-length(str)
path expressions
ceiling(num)
current-date()
39. Returns absolute value (example abs(-2.5) returns 2.5
.
'//'
trees of nodes
abs(num)
40. Trims leading and trailing spaces
normalize-space(str)
hours-from-time(time)
string-length(str)
Xpath operators
41. Returns second value from time passed
seconds-from-time(time)
string-length()
attribute node
abs(num)
42. Use a | to select more than one _____ (means AND)
compare(arg1, arg2)
usable document
path
current-time()
43. Selects all the child nodes of the bookstore element
/bookstore/*
starts-with(str1, str2)
matches(str1, str2)
'//'
44. Selects all title AND price elements in the entire document
//*
day-from-date(date)
//title | //price
month-from-date(current-date())
45. Selects first two book elements from the children of books element
/bookstore/*
compare(arg1, arg2)
books/book[position()
usable document
46. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
substring-before(str1, str2)
compare(arg1, arg2)
concat(str1, str2, str3...)
processing-instruction
47. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
month-from-date(current-date())
//book[@isbn]
path expressions
/bookstore/book/title | //price
48. Selects all title elements of the book element AND all price elements in the entire document
syntax
matches(str1, str2)
/bookstore/book/title | //price
sequence
49. XML documents are treated as _________- so the root of the tree is called the document node or root node
'//'
..
contains(str1, str2)
trees of nodes
50. XSL is what we use to get from readable to _________
Predicates
usable document
'/'
month-from-date(current-date())