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