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