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. Converts string number to numeric value
number(arg)
not(arg)
'/'
insert-before((item1, item2, item3...), positionX, itemX)
2. Transformation is actually accomplished by a _____________ like Saxon XSLT
processor application
year-from-date(date)
hours-from-time(time)
criteria
3. Selects all book elements with an attribute isbn=
//book[@isbn]
//title | //price
transforming
..
4. In str1, replaces all occurrences of str2 with str3
usable document
replace(str1, str2, str3)
year-from-date(date)
month-from-date(current-date())
5. Returns true if str1 ends with str2
ends-with(str1, str2)
compare(arg1, arg2)
remove((item1, item2, item3...), position)
books/book[last()]
6. Returns year value out of the date passed
abs(num)
year-from-date(date)
substring(str1, start, len)
starts-with(str1, str2)
7. Returns month value out of date passed
month-from-date(date)
substring-before(str1, str2)
current-dateTime()
Xpath operators
8. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
number(arg)
round(num)
processing-instruction
insert-before((item1, item2, item3...), positionX, itemX)
9. Returns next highest integer
transformation
ceiling(num)
criteria
number(arg)
10. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
substring(str,start)
Xpath operators
translate(str1, str2, str3)
current-time()
11. Returns timezone value from time passed
books/book[last()]
'/'
XSLT
timezone-from-time(time)
12. Selects all the child nodes of the bookstore element
/bookstore/*
seconds-from-time(time)
compare(arg1, arg2)
arrays and functions
13. Converts string to upper case
//title | //price
year-from-date(date)
upper-case(str)
not(arg)
14. Element nodes may have zero - one - or more _________
child nodes
..
div
books/book[price > 35.00]
15. Selects attributes
standard function
contains(str1, str2)
@
compare(arg1, arg2)
16. ________ allow more specific selections within the XPath
//book[@isbn]
Predicates
//*
usable document
17. Returns logically rounded integer
nodes
round(num)
compare(arg1, arg2)
trees of nodes
18. Selects parent of current node
year-from-date(current-date())
..
contains(str1, str2)
upper-case(str)
19. XPath contains a library of _________
usable document
seconds-from-time(time)
standard function
books/book[1]
20. xpath function categories: numeric - string - boolea - date/time - ________
sequence
index-of((item1, item2), item3...), target)
/bookstore/book/title | //price
..
21. XPath is a for defining parts of an XML document
syntax
matches(str1, str2)
transformation
ceiling(num)
22. Returns substring from start position to end of string
substring(str,start)
month-from-date(date)
child nodes
compare(arg1, arg2)
23. Selects all title AND price elements in the entire document
normalize-space(str)
//title | //price
processing-instruction
translate(str1, str2, str3)
24. Selects last book element from the children of books element
current-date()
substring(str,start)
number(arg)
books/book[last()]
25. Predicates work somewhat like _____________
books/book[price > 35.00]
arrays and functions
@
'/'
26. Converts value to a string
minutes-from-time(time)
contains(str1, str2)
string(arg)
string-length()
27. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
year-from-date(date)
contains(str1, str2)
concat(str1, str2, str3...)
instinct-values(item1, item2, item3...))
28. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
XSLT
current-time()
processing-instruction
substring-after(str1, str2)
29. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
books/book[position()
instinct-values(item1, item2, item3...))
attribute node
arrays and functions
30. _______ have 3 primary relationships: parent - child - sibling
processor application
nodes
path expressions
usable document
31. Replaces chars of str2 found in str1 with chars of str3
parent
translate(str1, str2, str3)
Predicates
.
32. Returns true if str1 starts with str2
year-from-date(current-date())
instinct-values(item1, item2, item3...))
starts-with(str1, str2)
round(num)
33. Returns time right now
year-from-date(date)
//title[@*]
current-time()
seconds-from-time(time)
34. Returns next lowest integer
seconds-from-time(time)
instinct-values(item1, item2, item3...))
floor(num)
number(arg)
35. Returns complete date/time
arrays and functions
current-dateTime()
month-from-date(current-date())
year-from-date(current-date())
36. Returns everything after the first occurrence of str2
//*
contains(str1, str2)
insert-before((item1, item2, item3...), positionX, itemX)
substring-after(str1, str2)
37. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
seconds-from-time(time)
current-time()
substring(str,start)
38. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
transforming
floor(num)
string-length(str)
substring-before(str1, str2)
39. Selects all title elements which have any attribute
remove((item1, item2, item3...), position)
starts-with(str1, str2)
//*
//title[@*]
40. Returns minute value from time passed
//title[@*]
current-dateTime()
minutes-from-time(time)
'//'
41. Returns false or true
boolean(arg)
substring-before(str1, str2)
starts-with(str1, str2)
Xpath operators
42. XPath is a major element in _______
/bookstore/book/title | //price
XSLT
path expressions
//book/title | //book/price
43. Selects all elements in the document
..
starts-with(str1, str2)
current-date()
//*
44. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
string-length(str)
year-from-date(date)
standard function
45. Returns day value from date passed
day-from-date(date)
usable document
//*
lower-case(str)
46. every element and every attribute have just one _________
parent node
@
replace(str1, str2, str3)
'//'
47. Returns absolute value (example abs(-2.5) returns 2.5
number(arg)
minutes-from-time(time)
string-length()
abs(num)
48. Sibling nodes all have the same ______
/bookstore/*
..
month-from-date(date)
parent
49. Returns hour value from time passed
year-from-date(current-date())
hours-from-time(time)
attribute node
ends-with(str1, str2)
50. Returns length of current node string
path expressions
string-length()
string-join((str1, str2, str3), separator)
substring(str1, start, len)