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 month value out of date passed
month-from-date(date)
string-length()
usable document
//title | //price
2. Returns time right now
current-date()
XSLT
contains(str1, str2)
current-time()
3. Returns true if str1 ends with str2
month-from-date(date)
transformation
ends-with(str1, str2)
books/book[position()
4. Selects all title elements which have any attribute
substring(str,start)
substring-after(str1, str2)
current-date()
//title[@*]
5. Returns timezone value from time passed
//book[@isbn]
timezone-from-time(time)
starts-with(str1, str2)
string-length()
6. Predicates work somewhat like _____________
transformation
matches(str1, str2)
true() and false()
arrays and functions
7. 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
index-of((item1, item2), item3...), target)
/bookstore/*
criteria
trees of nodes
8. Converts string number to numeric value
path expressions
standard function
number(arg)
substring(str,start)
9. Trims leading and trailing spaces
string-length()
substring-after(str1, str2)
normalize-space(str)
contains(str1, str2)
10. Converts string to upper case
remove((item1, item2, item3...), position)
upper-case(str)
div
processor application
11. selects first book element from the children of books element
//book/title | //book/price
translate(str1, str2, str3)
books/book[1]
instinct-values(item1, item2, item3...))
12. XSL is what we use to get from readable to _________
month-from-date(date)
XSLT
current-time()
usable document
13. Returns true if str2 appears anywhere inside str1
path
matches(str1, str2)
remove((item1, item2, item3...), position)
starts-with(str1, str2)
14. Selects all title elements of the book element AND all price elements in the entire document
div
/bookstore/book/title | //price
path
normalize-space(str)
15. Element nodes may have zero - one - or more _________
substring(str1, start, len)
substring(str,start)
trees of nodes
child nodes
16. Selects current node
index-of((item1, item2), item3...), target)
.
arrays and functions
processor application
17. XPath is a major element in _______
XSLT
'//'
trees of nodes
matches(str1, str2)
18. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
remove((item1, item2, item3...), position)
books/book[position()
minutes-from-time(time)
19. Selects all book elements with an attribute isbn=
//book[@isbn]
books/book[1]
//title | //price
minutes-from-time(time)
20. XPath is a for defining parts of an XML document
matches(str1, str2)
syntax
path expressions
.
21. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
concat(str1, str2, str3...)
trees of nodes
path expressions
div
22. Returns logically rounded integer
child nodes
round(num)
hours-from-time(time)
not(arg)
23. Returns false or true
boolean(arg)
child nodes
round(num)
current-date()
24. Selects from the root node
'/'
25. Returns next highest integer
ceiling(num)
hours-from-time(time)
//title | //price
day-from-date(date)
26. Returns today's date
year-from-date(current-date())
processor application
current-date()
transformation
27. Converts string to lower case
//*
string-join((str1, str2, str3), separator)
year-from-date(date)
lower-case(str)
28. Selects attributes
translate(str1, str2, str3)
number(arg)
processor application
@
29. Returns October or 10 ?
month-from-date(current-date())
year-from-date(date)
transformation
standard function
30. Sibling nodes all have the same ______
parent
books/book[price > 35.00]
starts-with(str1, str2)
attribute node
31. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
//title[@*]
attribute node
concat(str1, str2, str3...)
.
32. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
/bookstore/book/title | //price
current-date()
transforming
books/book[1]
33. ________ allow more specific selections within the XPath
current-dateTime()
upper-case(str)
books/book[1]
Predicates
34. 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
35. Returns true if str1 starts with str2
XSLT
starts-with(str1, str2)
string-length()
current-date()
36. Selects all title AND price elements of all book elements
Xpath operators
syntax
day-from-date(date)
//book/title | //book/price
37. Returns false if true - true if false (negative logic)
not(arg)
minutes-from-time(time)
string-length()
XSLT
38. Selects all elements in the document
..
month-from-date(date)
//*
matches(str1, str2)
39. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
processor application
remove((item1, item2, item3...), position)
//*
current-date()
40. Returns 2008
round(num)
hours-from-time(time)
path expressions
year-from-date(current-date())
41. Use a | to select more than one _____ (means AND)
year-from-date(current-date())
hours-from-time(time)
path
trees of nodes
42. Returns substring from start position to end of string
books/book[1]
substring(str,start)
..
hours-from-time(time)
43. Returns length of current node string
criteria
substring(str,start)
year-from-date(current-date())
string-length()
44. Returns boolean true or boolean false
trees of nodes
true() and false()
normalize-space(str)
index-of((item1, item2), item3...), target)
45. Concatenates strings together with separator between each string
parent node
string-join((str1, str2, str3), separator)
minutes-from-time(time)
div
46. XPath contains a library of _________
matches(str1, str2)
number(arg)
minutes-from-time(time)
standard function
47. XML documents are treated as _________- so the root of the tree is called the document node or root node
criteria
trees of nodes
ends-with(str1, str2)
minutes-from-time(time)
48. 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)
contains(str1, str2)
processing-instruction
transforming
49. Returns n-length substring from start position
hours-from-time(time)
substring(str1, start, len)
round(num)
parent
50. Returns second value from time passed
string-length()
XSLT
seconds-from-time(time)
//book/title | //book/price