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