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. Trims leading and trailing spaces
normalize-space(str)
//title[@*]
floor(num)
XSLT
2. 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)
parent node
normalize-space(str)
transforming
3. Returns second value from time passed
XSLT
seconds-from-time(time)
/bookstore/*
insert-before((item1, item2, item3...), positionX, itemX)
4. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
//title[@*]
year-from-date(date)
substring-after(str1, str2)
5. Converts string number to numeric value
number(arg)
Xpath operators
/bookstore/book/title | //price
parent
6. Converts string to upper case
minutes-from-time(time)
translate(str1, str2, str3)
//book[@isbn]
upper-case(str)
7. XSL is what we use to get from readable to _________
Predicates
substring-after(str1, str2)
substring-before(str1, str2)
usable document
8. Returns everything after the first occurrence of str2
year-from-date(date)
starts-with(str1, str2)
current-date()
substring-after(str1, str2)
9. Returns substring from start position to end of string
child nodes
current-date()
substring(str,start)
current-time()
10. Returns day value from date passed
day-from-date(date)
//title | //price
ends-with(str1, str2)
index-of((item1, item2), item3...), target)
11. Returns complete date/time
hours-from-time(time)
seconds-from-time(time)
minutes-from-time(time)
current-dateTime()
12. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
books/book[last()]
syntax
//title[@*]
13. Predicates work somewhat like _____________
books/book[1]
current-time()
processor application
arrays and functions
14. Selects all book elements with an attribute isbn=
usable document
//book[@isbn]
index-of((item1, item2), item3...), target)
year-from-date(date)
15. ________ allow more specific selections within the XPath
index-of((item1, item2), item3...), target)
remove((item1, item2, item3...), position)
Predicates
current-time()
16. 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)
XSLT
books/book[position()
minutes-from-time(time)
17. Returns length of passed string
remove((item1, item2, item3...), position)
round(num)
current-dateTime()
string-length(str)
18. 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
seconds-from-time(time)
criteria
path expressions
current-date()
19. Selects attributes
@
hours-from-time(time)
transforming
Predicates
20. Converts value to a string
//title | //price
string(arg)
string-length(str)
books/book[1]
21. Selects all title elements which have any attribute
matches(str1, str2)
books/book[1]
//title[@*]
parent node
22. Returns minute value from time passed
concat(str1, str2, str3...)
Xpath operators
minutes-from-time(time)
substring-before(str1, str2)
23. Selects all title elements of the book element AND all price elements in the entire document
day-from-date(date)
/bookstore/book/title | //price
insert-before((item1, item2, item3...), positionX, itemX)
compare(arg1, arg2)
24. Converts string to lower case
replace(str1, str2, str3)
contains(str1, str2)
lower-case(str)
arrays and functions
25. Returns boolean true or boolean false
//book[@isbn]
path expressions
parent
true() and false()
26. Returns month value out of date passed
substring(str1, start, len)
month-from-date(date)
nodes
books/book[last()]
27. Returns 2008
year-from-date(current-date())
books/book[1]
.
usable document
28. Returns false or true
'//'
index-of((item1, item2), item3...), target)
boolean(arg)
transforming
29. xpath function categories: numeric - string - boolea - date/time - ________
sequence
replace(str1, str2, str3)
child nodes
instinct-values(item1, item2, item3...))
30. Returns length of current node string
books/book[1]
Xpath operators
upper-case(str)
string-length()
31. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
.
'/'
instinct-values(item1, item2, item3...))
32. Returns absolute value (example abs(-2.5) returns 2.5
substring(str,start)
abs(num)
string-length()
path expressions
33. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
floor(num)
remove((item1, item2, item3...), position)
starts-with(str1, str2)
normalize-space(str)
34. Returns true if str1 ends with str2
standard function
matches(str1, str2)
round(num)
ends-with(str1, str2)
35. Use a | to select more than one _____ (means AND)
parent node
path
transformation
current-dateTime()
36. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
normalize-space(str)
processing-instruction
month-from-date(date)
37. Selects all the child nodes of the bookstore element
..
year-from-date(current-date())
/bookstore/*
matches(str1, str2)
38. XPath is a major element in _______
syntax
XSLT
index-of((item1, item2), item3...), target)
//title | //price
39. The process of taking raw XML - adding XSL - and outputting a document file of some type
compare(arg1, arg2)
syntax
standard function
transformation
40. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
string-length(str)
substring-before(str1, str2)
child nodes
index-of((item1, item2), item3...), target)
41. The XPath division operator not "/" cuz "/" is used in path expressions
div
XSLT
current-time()
trees of nodes
42. Returns everything before the first occurrence of str2
substring(str1, start, len)
standard function
ends-with(str1, str2)
substring-before(str1, str2)
43. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
sequence
path expressions
current-dateTime()
instinct-values(item1, item2, item3...))
44. Element nodes may have zero - one - or more _________
year-from-date(date)
ceiling(num)
child nodes
lower-case(str)
45. Returns true if str1 starts with str2
XSLT
/bookstore/book/title | //price
path
starts-with(str1, str2)
46. XPath is a for defining parts of an XML document
syntax
ceiling(num)
true() and false()
Xpath operators
47. Replaces chars of str2 found in str1 with chars of str3
XSLT
translate(str1, str2, str3)
Predicates
sequence
48. Returns timezone value from time passed
timezone-from-time(time)
current-date()
books/book[position()
seconds-from-time(time)
49. Returns next highest integer
abs(num)
books/book[last()]
child nodes
ceiling(num)
50. 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