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 2008
processor application
parent
lower-case(str)
year-from-date(current-date())
2. Returns logically rounded integer
parent
string-length()
round(num)
parent node
3. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
insert-before((item1, item2, item3...), positionX, itemX)
books/book[last()]
upper-case(str)
ceiling(num)
4. Returns everything after the first occurrence of str2
books/book[price > 35.00]
matches(str1, str2)
Predicates
substring-after(str1, str2)
5. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
Predicates
current-dateTime()
remove((item1, item2, item3...), position)
transforming
6. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
index-of((item1, item2), item3...), target)
replace(str1, str2, str3)
standard function
timezone-from-time(time)
7. Returns absolute value (example abs(-2.5) returns 2.5
books/book[position()
ends-with(str1, str2)
abs(num)
'/'
8. ________ allow more specific selections within the XPath
//book/title | //book/price
contains(str1, str2)
Predicates
path expressions
9. Returns second value from time passed
parent
seconds-from-time(time)
floor(num)
//book[@isbn]
10. Returns timezone value from time passed
substring(str,start)
attribute node
timezone-from-time(time)
not(arg)
11. Selects all elements in the document
path
//*
@
arrays and functions
12. Returns everything before the first occurrence of str2
substring-before(str1, str2)
matches(str1, str2)
year-from-date(current-date())
books/book[position()
13. XSL is what we use to get from readable to _________
syntax
usable document
books/book[position()
books/book[1]
14. Selects attributes
/bookstore/book/title | //price
parent node
not(arg)
@
15. Returns year value out of the date passed
string-length()
books/book[price > 35.00]
//title[@*]
year-from-date(date)
16. Returns time right now
current-time()
index-of((item1, item2), item3...), target)
XSLT
processor application
17. xpath function categories: numeric - string - boolea - date/time - ________
sequence
remove((item1, item2, item3...), position)
usable document
concat(str1, str2, str3...)
18. Returns false if true - true if false (negative logic)
attribute node
concat(str1, str2, str3...)
transforming
not(arg)
19. Selects parent of current node
string(arg)
substring-after(str1, str2)
..
path expressions
20. Selects all the child nodes of the bookstore element
/bookstore/*
current-dateTime()
ceiling(num)
//title | //price
21. Element nodes may have zero - one - or more _________
current-date()
replace(str1, str2, str3)
//book[@isbn]
child nodes
22. Selects all book elements with a child element "price" with values greater than 35
syntax
.
books/book[price > 35.00]
substring-after(str1, str2)
23. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
//title | //price
abs(num)
substring-after(str1, str2)
24. XPath is a for defining parts of an XML document
day-from-date(date)
syntax
criteria
index-of((item1, item2), item3...), target)
25. Returns length of current node string
year-from-date(current-date())
'//'
starts-with(str1, str2)
string-length()
26. Returns true if str1 contains str2
//book[@isbn]
@
contains(str1, str2)
transformation
27. Converts string to lower case
hours-from-time(time)
index-of((item1, item2), item3...), target)
lower-case(str)
//*
28. Returns day value from date passed
string-length(str)
/bookstore/*
day-from-date(date)
processing-instruction
29. Replaces chars of str2 found in str1 with chars of str3
string-join((str1, str2, str3), separator)
//*
seconds-from-time(time)
translate(str1, str2, str3)
30. Selects from the root node
'/'
31. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
insert-before((item1, item2, item3...), positionX, itemX)
sequence
processing-instruction
minutes-from-time(time)
32. Selects first two book elements from the children of books element
string-length()
books/book[position()
index-of((item1, item2), item3...), target)
sequence
33. Converts string to upper case
index-of((item1, item2), item3...), target)
..
floor(num)
upper-case(str)
34. Selects current node
normalize-space(str)
.
Xpath operators
current-time()
35. Returns today's date
current-date()
index-of((item1, item2), item3...), target)
parent
/bookstore/*
36. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
index-of((item1, item2), item3...), target)
Xpath operators
//title[@*]
substring(str1, start, len)
37. The XPath division operator not "/" cuz "/" is used in path expressions
transforming
div
arrays and functions
parent node
38. 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
@
month-from-date(date)
criteria
seconds-from-time(time)
39. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
arrays and functions
ends-with(str1, str2)
concat(str1, str2, str3...)
current-date()
40. XPath is a major element in _______
month-from-date(current-date())
@
lower-case(str)
XSLT
41. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
//book[@isbn]
remove((item1, item2, item3...), position)
upper-case(str)
year-from-date(date)
42. every element and every attribute have just one _________
replace(str1, str2, str3)
parent node
index-of((item1, item2), item3...), target)
true() and false()
43. XML documents are treated as _________- so the root of the tree is called the document node or root node
//book[@isbn]
month-from-date(current-date())
trees of nodes
timezone-from-time(time)
44. Returns false or true
boolean(arg)
substring(str1, start, len)
//title[@*]
books/book[position()
45. Trims leading and trailing spaces
transformation
//title | //price
contains(str1, str2)
normalize-space(str)
46. The process of taking raw XML - adding XSL - and outputting a document file of some type
path expressions
transformation
remove((item1, item2, item3...), position)
//book/title | //book/price
47. Travels from current node to select nodes that match - wherever they are
48. Returns next lowest integer
floor(num)
month-from-date(current-date())
/bookstore/book/title | //price
//book/title | //book/price
49. Returns true if str1 starts with str2
starts-with(str1, str2)
seconds-from-time(time)
ends-with(str1, str2)
@
50. Use a | to select more than one _____ (means AND)
timezone-from-time(time)
string-join((str1, str2, str3), separator)
path
year-from-date(current-date())