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