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