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