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 true if str1 ends with str2
current-time()
instinct-values(item1, item2, item3...))
substring-before(str1, str2)
ends-with(str1, str2)
2. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
sequence
substring-before(str1, str2)
compare(arg1, arg2)
3. Returns false if true - true if false (negative logic)
books/book[position()
not(arg)
criteria
parent
4. every element and every attribute have just one _________
parent node
XSLT
current-time()
books/book[price > 35.00]
5. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
instinct-values(item1, item2, item3...))
path expressions
true() and false()
books/book[position()
6. XPath is a major element in _______
..
Predicates
XSLT
//*
7. Returns substring from start position to end of string
sequence
instinct-values(item1, item2, item3...))
@
substring(str,start)
8. Returns minute value from time passed
minutes-from-time(time)
year-from-date(date)
attribute node
string(arg)
9. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
hours-from-time(time)
concat(str1, str2, str3...)
child nodes
month-from-date(date)
10. Selects first two book elements from the children of books element
books/book[position()
current-time()
books/book[price > 35.00]
transforming
11. Returns false or true
boolean(arg)
criteria
remove((item1, item2, item3...), position)
path expressions
12. ________ allow more specific selections within the XPath
substring(str,start)
Predicates
year-from-date(date)
usable document
13. Returns time right now
//title | //price
upper-case(str)
current-time()
string-join((str1, str2, str3), separator)
14. Returns length of passed string
string-length(str)
matches(str1, str2)
current-date()
substring-before(str1, str2)
15. Selects from the root node
'/'
16. The XPath division operator not "/" cuz "/" is used in path expressions
boolean(arg)
year-from-date(current-date())
div
replace(str1, str2, str3)
17. Converts string to upper case
day-from-date(date)
upper-case(str)
current-date()
concat(str1, str2, str3...)
18. Selects last book element from the children of books element
normalize-space(str)
books/book[last()]
processor application
path expressions
19. Returns next lowest integer
starts-with(str1, str2)
floor(num)
books/book[last()]
concat(str1, str2, str3...)
20. In str1, replaces all occurrences of str2 with str3
@
string(arg)
replace(str1, str2, str3)
contains(str1, str2)
21. Returns hour value from time passed
year-from-date(current-date())
transforming
.
hours-from-time(time)
22. Selects all book elements with a child element "price" with values greater than 35
day-from-date(date)
transformation
books/book[price > 35.00]
path
23. Returns n-length substring from start position
substring-before(str1, str2)
attribute node
day-from-date(date)
substring(str1, start, len)
24. Returns 2008
Xpath operators
child nodes
string(arg)
year-from-date(current-date())
25. Converts value to a string
string(arg)
Xpath operators
child nodes
current-date()
26. 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
27. selects first book element from the children of books element
books/book[1]
instinct-values(item1, item2, item3...))
substring-before(str1, str2)
path
28. Returns everything before the first occurrence of str2
'/'
upper-case(str)
substring-before(str1, str2)
substring(str1, start, len)
29. Returns true if str1 contains str2
contains(str1, str2)
substring-after(str1, str2)
starts-with(str1, str2)
Predicates
30. Replaces chars of str2 found in str1 with chars of str3
Predicates
criteria
translate(str1, str2, str3)
starts-with(str1, str2)
31. Returns day value from date passed
..
day-from-date(date)
path
/bookstore/book/title | //price
32. Returns logically rounded integer
round(num)
Xpath operators
//book/title | //book/price
//*
33. Selects all elements in the document
syntax
//*
floor(num)
concat(str1, str2, str3...)
34. 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
/bookstore/book/title | //price
criteria
upper-case(str)
year-from-date(current-date())
35. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
attribute node
contains(str1, str2)
round(num)
transforming
36. Trims leading and trailing spaces
insert-before((item1, item2, item3...), positionX, itemX)
'/'
standard function
normalize-space(str)
37. Returns year value out of the date passed
string-length()
current-dateTime()
substring(str,start)
year-from-date(date)
38. XSL is what we use to get from readable to _________
not(arg)
usable document
transformation
'//'
39. Selects parent of current node
processor application
upper-case(str)
seconds-from-time(time)
..
40. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
.
normalize-space(str)
path
attribute node
41. Selects all title AND price elements of all book elements
books/book[1]
attribute node
//book/title | //book/price
day-from-date(date)
42. Returns everything after the first occurrence of str2
substring-after(str1, str2)
substring(str1, start, len)
//*
concat(str1, str2, str3...)
43. Converts string to lower case
starts-with(str1, str2)
hours-from-time(time)
lower-case(str)
parent node
44. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
processor application
substring(str1, start, len)
minutes-from-time(time)
45. Transformation is actually accomplished by a _____________ like Saxon XSLT
substring-after(str1, str2)
translate(str1, str2, str3)
substring(str1, start, len)
processor application
46. Returns true if str2 appears anywhere inside str1
@
Predicates
matches(str1, str2)
index-of((item1, item2), item3...), target)
47. Predicates work somewhat like _____________
minutes-from-time(time)
syntax
compare(arg1, arg2)
arrays and functions
48. Use a | to select more than one _____ (means AND)
replace(str1, str2, str3)
remove((item1, item2, item3...), position)
path
timezone-from-time(time)
49. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
parent node
Xpath operators
insert-before((item1, item2, item3...), positionX, itemX)
processor application
50. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
remove((item1, item2, item3...), position)
parent node
books/book[price > 35.00]