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