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. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
arrays and functions
transformation
path expressions
substring(str,start)
2. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
number(arg)
compare(arg1, arg2)
upper-case(str)
3. Returns minute value from time passed
transformation
true() and false()
minutes-from-time(time)
contains(str1, str2)
4. Selects all title elements which have any attribute
parent node
current-time()
//title[@*]
string-length(str)
5. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
starts-with(str1, str2)
attribute node
usable document
path expressions
6. XPath is a major element in _______
day-from-date(date)
normalize-space(str)
XSLT
processor application
7. Selects first two book elements from the children of books element
/bookstore/*
books/book[position()
month-from-date(current-date())
child nodes
8. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
usable document
Xpath operators
concat(str1, str2, str3...)
string-length(str)
9. Selects parent of current node
books/book[price > 35.00]
div
criteria
..
10. Replaces chars of str2 found in str1 with chars of str3
abs(num)
translate(str1, str2, str3)
number(arg)
substring(str1, start, len)
11. XPath is a for defining parts of an XML document
transforming
insert-before((item1, item2, item3...), positionX, itemX)
translate(str1, str2, str3)
syntax
12. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
processing-instruction
insert-before((item1, item2, item3...), positionX, itemX)
arrays and functions
XSLT
13. 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
14. Returns true if str1 contains str2
day-from-date(date)
round(num)
contains(str1, str2)
parent node
15. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
books/book[last()]
..
minutes-from-time(time)
16. Selects last book element from the children of books element
//book/title | //book/price
contains(str1, str2)
books/book[price > 35.00]
books/book[last()]
17. Returns timezone value from time passed
processor application
seconds-from-time(time)
timezone-from-time(time)
arrays and functions
18. Returns everything after the first occurrence of str2
usable document
substring-after(str1, str2)
parent
day-from-date(date)
19. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
books/book[1]
index-of((item1, item2), item3...), target)
//book/title | //book/price
year-from-date(date)
20. Predicates work somewhat like _____________
arrays and functions
substring(str,start)
true() and false()
parent
21. Transformation is actually accomplished by a _____________ like Saxon XSLT
transforming
substring(str,start)
processor application
div
22. _______ have 3 primary relationships: parent - child - sibling
contains(str1, str2)
nodes
month-from-date(current-date())
processor application
23. xpath function categories: numeric - string - boolea - date/time - ________
string-join((str1, str2, str3), separator)
/bookstore/*
sequence
.
24. Element nodes may have zero - one - or more _________
transforming
trees of nodes
child nodes
string-join((str1, str2, str3), separator)
25. Returns time right now
month-from-date(current-date())
current-time()
normalize-space(str)
nodes
26. Returns false or true
//title[@*]
boolean(arg)
//title | //price
current-dateTime()
27. Returns false if true - true if false (negative logic)
insert-before((item1, item2, item3...), positionX, itemX)
parent
ceiling(num)
not(arg)
28. Returns next lowest integer
syntax
floor(num)
substring(str,start)
normalize-space(str)
29. Trims leading and trailing spaces
div
/bookstore/*
month-from-date(date)
normalize-space(str)
30. Returns month value out of date passed
nodes
month-from-date(date)
contains(str1, str2)
year-from-date(date)
31. Returns true if str1 starts with str2
starts-with(str1, str2)
remove((item1, item2, item3...), position)
month-from-date(current-date())
//title[@*]
32. Selects attributes
@
minutes-from-time(time)
concat(str1, str2, str3...)
transforming
33. Returns hour value from time passed
//title[@*]
hours-from-time(time)
//*
attribute node
34. Selects all title AND price elements of all book elements
day-from-date(date)
round(num)
index-of((item1, item2), item3...), target)
//book/title | //book/price
35. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
true() and false()
timezone-from-time(time)
concat(str1, str2, str3...)
36. Converts value to a string
string(arg)
floor(num)
//*
year-from-date(current-date())
37. Returns everything before the first occurrence of str2
parent
insert-before((item1, item2, item3...), positionX, itemX)
substring-before(str1, str2)
current-time()
38. Returns year value out of the date passed
starts-with(str1, str2)
attribute node
year-from-date(date)
abs(num)
39. Selects all elements in the document
standard function
..
//*
Xpath operators
40. Use a | to select more than one _____ (means AND)
usable document
child nodes
path
Predicates
41. Converts string to lower case
current-time()
lower-case(str)
ends-with(str1, str2)
books/book[position()
42. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
remove((item1, item2, item3...), position)
current-time()
processing-instruction
true() and false()
43. 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
criteria
//title[@*]
current-dateTime()
parent node
44. In str1, replaces all occurrences of str2 with str3
string-length(str)
replace(str1, str2, str3)
transforming
processor application
45. Returns logically rounded integer
round(num)
month-from-date(date)
//book/title | //book/price
string-length(str)
46. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
index-of((item1, item2), item3...), target)
round(num)
//title[@*]
47. XPath contains a library of _________
floor(num)
standard function
round(num)
string(arg)
48. every element and every attribute have just one _________
transforming
//title | //price
parent node
current-time()
49. Compares strings, returns 0 if same, -1 if not same
substring(str,start)
transformation
usable document
compare(arg1, arg2)
50. Returns true if str2 appears anywhere inside str1
boolean(arg)
transforming
matches(str1, str2)
//title | //price