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. Converts string number to numeric value
trees of nodes
current-dateTime()
compare(arg1, arg2)
number(arg)
2. Returns true if str1 starts with str2
books/book[price > 35.00]
matches(str1, str2)
true() and false()
starts-with(str1, str2)
3. 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
current-date()
substring-before(str1, str2)
criteria
starts-with(str1, str2)
4. Returns length of passed string
translate(str1, str2, str3)
seconds-from-time(time)
string-length(str)
parent
5. Selects all title AND price elements of all book elements
//title | //price
//book/title | //book/price
year-from-date(current-date())
concat(str1, str2, str3...)
6. Selects all book elements with an attribute isbn=
Xpath operators
month-from-date(current-date())
round(num)
//book[@isbn]
7. Returns everything after the first occurrence of str2
substring-after(str1, str2)
parent
month-from-date(current-date())
path expressions
8. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
boolean(arg)
child nodes
transforming
number(arg)
9. Selects current node
.
nodes
criteria
path
10. Returns boolean true or boolean false
path expressions
true() and false()
abs(num)
lower-case(str)
11. Returns false if true - true if false (negative logic)
replace(str1, str2, str3)
not(arg)
//title[@*]
books/book[price > 35.00]
12. Returns today's date
number(arg)
current-date()
processing-instruction
translate(str1, str2, str3)
13. Returns month value out of date passed
/bookstore/*
boolean(arg)
insert-before((item1, item2, item3...), positionX, itemX)
month-from-date(date)
14. Sibling nodes all have the same ______
@
parent
path expressions
ceiling(num)
15. Returns absolute value (example abs(-2.5) returns 2.5
trees of nodes
string-length(str)
starts-with(str1, str2)
abs(num)
16. XPath is a major element in _______
XSLT
abs(num)
processing-instruction
not(arg)
17. Element nodes may have zero - one - or more _________
child nodes
starts-with(str1, str2)
index-of((item1, item2), item3...), target)
ceiling(num)
18. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
//*
processing-instruction
attribute node
19. Returns true if str1 ends with str2
@
ends-with(str1, str2)
number(arg)
'/'
20. Returns false or true
processing-instruction
//*
nodes
boolean(arg)
21. Selects parent of current node
//title[@*]
//book[@isbn]
path
..
22. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
syntax
arrays and functions
//*
23. Selects all elements in the document
//*
'//'
contains(str1, str2)
substring(str,start)
24. Use a | to select more than one _____ (means AND)
string(arg)
abs(num)
nodes
path
25. Returns n-length substring from start position
//book[@isbn]
substring(str1, start, len)
transformation
translate(str1, str2, str3)
26. Selects from the root node
'/'
27. Returns timezone value from time passed
upper-case(str)
timezone-from-time(time)
criteria
day-from-date(date)
28. The XPath division operator not "/" cuz "/" is used in path expressions
Predicates
child nodes
//*
div
29. ________ allow more specific selections within the XPath
Predicates
current-time()
standard function
remove((item1, item2, item3...), position)
30. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
upper-case(str)
translate(str1, str2, str3)
attribute node
boolean(arg)
31. Returns time right now
/bookstore/book/title | //price
floor(num)
current-time()
insert-before((item1, item2, item3...), positionX, itemX)
32. Returns length of current node string
ends-with(str1, str2)
number(arg)
sequence
string-length()
33. Returns complete date/time
current-dateTime()
floor(num)
hours-from-time(time)
sequence
34. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
starts-with(str1, str2)
parent
abs(num)
path expressions
35. Returns second value from time passed
starts-with(str1, str2)
seconds-from-time(time)
month-from-date(current-date())
current-date()
36. Compares strings, returns 0 if same, -1 if not same
string-length()
contains(str1, str2)
compare(arg1, arg2)
books/book[1]
37. Selects all book elements with a child element "price" with values greater than 35
floor(num)
substring(str1, start, len)
books/book[1]
books/book[price > 35.00]
38. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
attribute node
current-time()
starts-with(str1, str2)
concat(str1, str2, str3...)
39. every element and every attribute have just one _________
..
parent node
books/book[last()]
string-length(str)
40. Converts string to upper case
books/book[price > 35.00]
upper-case(str)
path expressions
compare(arg1, arg2)
41. The process of taking raw XML - adding XSL - and outputting a document file of some type
not(arg)
syntax
transformation
string(arg)
42. Selects attributes
@
books/book[price > 35.00]
seconds-from-time(time)
boolean(arg)
43. Converts string to lower case
lower-case(str)
//title[@*]
books/book[1]
XSLT
44. 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)
index-of((item1, item2), item3...), target)
year-from-date(current-date())
transformation
45. Selects all title AND price elements in the entire document
seconds-from-time(time)
//title | //price
nodes
current-dateTime()
46. Converts value to a string
//*
sequence
string(arg)
current-dateTime()
47. Selects all title elements which have any attribute
//title[@*]
@
remove((item1, item2, item3...), position)
compare(arg1, arg2)
48. Returns 2008
year-from-date(current-date())
minutes-from-time(time)
day-from-date(date)
not(arg)
49. Replaces chars of str2 found in str1 with chars of str3
substring(str1, start, len)
translate(str1, str2, str3)
parent node
minutes-from-time(time)
50. Returns hour value from time passed
hours-from-time(time)
starts-with(str1, str2)
normalize-space(str)
arrays and functions