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
starts-with(str1, str2)
XSLT
..
concat(str1, str2, str3...)
2. ________ allow more specific selections within the XPath
processing-instruction
Predicates
starts-with(str1, str2)
arrays and functions
3. Selects all the child nodes of the bookstore element
/bookstore/*
current-date()
true() and false()
attribute node
4. Selects all title AND price elements in the entire document
path
concat(str1, str2, str3...)
//*
//title | //price
5. The XPath division operator not "/" cuz "/" is used in path expressions
replace(str1, str2, str3)
normalize-space(str)
day-from-date(date)
div
6. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
..
day-from-date(date)
transforming
div
7. selects first book element from the children of books element
books/book[1]
current-dateTime()
parent node
books/book[last()]
8. Selects last book element from the children of books element
trees of nodes
books/book[last()]
criteria
//title | //price
9. Use a | to select more than one _____ (means AND)
substring-after(str1, str2)
hours-from-time(time)
path
timezone-from-time(time)
10. 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
parent node
..
criteria
//title | //price
11. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
//title[@*]
number(arg)
@
insert-before((item1, item2, item3...), positionX, itemX)
12. Returns 2008
ceiling(num)
month-from-date(date)
//book/title | //book/price
year-from-date(current-date())
13. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
round(num)
normalize-space(str)
string(arg)
remove((item1, item2, item3...), position)
14. Returns year value out of the date passed
current-time()
path expressions
year-from-date(date)
normalize-space(str)
15. Selects current node
contains(str1, str2)
.
criteria
syntax
16. Transformation is actually accomplished by a _____________ like Saxon XSLT
books/book[position()
//*
processor application
boolean(arg)
17. Selects all book elements with a child element "price" with values greater than 35
div
child nodes
books/book[price > 35.00]
current-date()
18. Selects first two book elements from the children of books element
nodes
books/book[position()
current-time()
syntax
19. Returns n-length substring from start position
arrays and functions
string-join((str1, str2, str3), separator)
substring(str1, start, len)
processing-instruction
20. Converts string to upper case
current-dateTime()
transforming
upper-case(str)
child nodes
21. 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
22. Returns true if str1 contains str2
div
contains(str1, str2)
'//'
substring(str1, start, len)
23. Returns month value out of date passed
ends-with(str1, str2)
month-from-date(date)
normalize-space(str)
matches(str1, str2)
24. Selects all title AND price elements of all book elements
trees of nodes
'//'
path expressions
//book/title | //book/price
25. Selects parent of current node
books/book[position()
string-length(str)
..
substring(str1, start, len)
26. _______ have 3 primary relationships: parent - child - sibling
/bookstore/book/title | //price
translate(str1, str2, str3)
substring(str1, start, len)
nodes
27. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
trees of nodes
usable document
transformation
path expressions
28. xpath function categories: numeric - string - boolea - date/time - ________
criteria
processing-instruction
sequence
string-join((str1, str2, str3), separator)
29. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
month-from-date(current-date())
//book/title | //book/price
upper-case(str)
instinct-values(item1, item2, item3...))
30. Returns length of current node string
day-from-date(date)
boolean(arg)
string-length()
translate(str1, str2, str3)
31. Returns true if str1 ends with str2
instinct-values(item1, item2, item3...))
//book/title | //book/price
normalize-space(str)
ends-with(str1, str2)
32. Sibling nodes all have the same ______
month-from-date(current-date())
'/'
parent
substring(str1, start, len)
33. Element nodes may have zero - one - or more _________
substring(str,start)
child nodes
books/book[position()
current-time()
34. Converts string number to numeric value
'/'
sequence
number(arg)
starts-with(str1, str2)
35. Returns false or true
boolean(arg)
replace(str1, str2, str3)
syntax
ceiling(num)
36. Returns everything after the first occurrence of str2
arrays and functions
/bookstore/book/title | //price
processor application
substring-after(str1, str2)
37. Returns length of passed string
day-from-date(date)
true() and false()
string-length(str)
processing-instruction
38. Returns day value from date passed
sequence
starts-with(str1, str2)
child nodes
day-from-date(date)
39. Returns boolean true or boolean false
true() and false()
arrays and functions
processing-instruction
/bookstore/book/title | //price
40. Selects all title elements of the book element AND all price elements in the entire document
processing-instruction
/bookstore/book/title | //price
books/book[1]
parent
41. Trims leading and trailing spaces
normalize-space(str)
matches(str1, str2)
contains(str1, str2)
parent
42. In str1, replaces all occurrences of str2 with str3
//book[@isbn]
lower-case(str)
replace(str1, str2, str3)
normalize-space(str)
43. Returns false if true - true if false (negative logic)
boolean(arg)
not(arg)
//title | //price
ceiling(num)
44. XPath is a for defining parts of an XML document
current-date()
Predicates
/bookstore/*
syntax
45. Returns next lowest integer
ends-with(str1, str2)
instinct-values(item1, item2, item3...))
Predicates
floor(num)
46. XSL is what we use to get from readable to _________
transformation
substring(str,start)
usable document
year-from-date(date)
47. Returns complete date/time
syntax
current-dateTime()
upper-case(str)
ends-with(str1, str2)
48. The process of taking raw XML - adding XSL - and outputting a document file of some type
path expressions
current-time()
transformation
substring-after(str1, str2)
49. Returns hour value from time passed
minutes-from-time(time)
compare(arg1, arg2)
replace(str1, str2, str3)
hours-from-time(time)
50. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
replace(str1, str2, str3)
transformation
processor application