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