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