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