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