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. Element nodes may have zero - one - or more _________
child nodes
boolean(arg)
@
.
2. Selects last book element from the children of books element
div
//book[@isbn]
XSLT
books/book[last()]
3. The XPath division operator not "/" cuz "/" is used in path expressions
div
month-from-date(current-date())
'/'
string-length()
4. XPath is a for defining parts of an XML document
number(arg)
string-length()
substring-after(str1, str2)
syntax
5. selects first book element from the children of books element
standard function
upper-case(str)
sequence
books/book[1]
6. Returns true if str1 ends with str2
substring(str,start)
ends-with(str1, str2)
current-dateTime()
criteria
7. Returns absolute value (example abs(-2.5) returns 2.5
path expressions
parent
processing-instruction
abs(num)
8. Selects attributes
//*
div
hours-from-time(time)
@
9. XPath is a major element in _______
nodes
processor application
XSLT
month-from-date(date)
10. Returns hour value from time passed
parent node
string-join((str1, str2, str3), separator)
starts-with(str1, str2)
hours-from-time(time)
11. Sibling nodes all have the same ______
attribute node
.
usable document
parent
12. Returns logically rounded integer
remove((item1, item2, item3...), position)
round(num)
floor(num)
.
13. Returns timezone value from time passed
timezone-from-time(time)
/bookstore/book/title | //price
//title | //price
path expressions
14. Returns everything after the first occurrence of str2
current-date()
//*
instinct-values(item1, item2, item3...))
substring-after(str1, str2)
15. Returns length of passed string
div
string-length(str)
Xpath operators
//title[@*]
16. Returns substring from start position to end of string
current-date()
floor(num)
criteria
substring(str,start)
17. Selects all title AND price elements of all book elements
//book/title | //book/price
string(arg)
instinct-values(item1, item2, item3...))
abs(num)
18. Returns October or 10 ?
month-from-date(current-date())
//title[@*]
day-from-date(date)
criteria
19. every element and every attribute have just one _________
string-length(str)
transformation
compare(arg1, arg2)
parent node
20. Selects all elements in the document
minutes-from-time(time)
//*
attribute node
month-from-date(date)
21. Converts string number to numeric value
syntax
concat(str1, str2, str3...)
starts-with(str1, str2)
number(arg)
22. XSL is what we use to get from readable to _________
usable document
string-join((str1, str2, str3), separator)
parent
not(arg)
23. Returns next lowest integer
//title | //price
replace(str1, str2, str3)
floor(num)
criteria
24. Travels from current node to select nodes that match - wherever they are
25. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
day-from-date(date)
normalize-space(str)
transforming
concat(str1, str2, str3...)
26. Returns true if str2 appears anywhere inside str1
substring(str1, start, len)
syntax
matches(str1, str2)
div
27. In str1, replaces all occurrences of str2 with str3
//*
string-join((str1, str2, str3), separator)
books/book[1]
replace(str1, str2, str3)
28. Returns time right now
current-time()
..
child nodes
processor application
29. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
usable document
syntax
instinct-values(item1, item2, item3...))
string-length()
30. Returns today's date
//*
//book/title | //book/price
current-date()
XSLT
31. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
path
index-of((item1, item2), item3...), target)
current-time()
32. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
sequence
div
month-from-date(current-date())
Xpath operators
33. Selects current node
replace(str1, str2, str3)
.
child nodes
year-from-date(date)
34. Predicates work somewhat like _____________
Xpath operators
transforming
index-of((item1, item2), item3...), target)
arrays and functions
35. Returns next highest integer
trees of nodes
substring-before(str1, str2)
/bookstore/*
ceiling(num)
36. Selects parent of current node
..
syntax
abs(num)
floor(num)
37. Returns n-length substring from start position
round(num)
trees of nodes
remove((item1, item2, item3...), position)
substring(str1, start, len)
38. Returns false if true - true if false (negative logic)
..
not(arg)
ends-with(str1, str2)
string-length(str)
39. Selects all book elements with a child element "price" with values greater than 35
day-from-date(date)
true() and false()
remove((item1, item2, item3...), position)
books/book[price > 35.00]
40. The process of taking raw XML - adding XSL - and outputting a document file of some type
standard function
transformation
index-of((item1, item2), item3...), target)
upper-case(str)
41. Returns day value from date passed
criteria
processor application
arrays and functions
day-from-date(date)
42. Returns month value out of date passed
matches(str1, str2)
month-from-date(date)
year-from-date(date)
insert-before((item1, item2, item3...), positionX, itemX)
43. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
index-of((item1, item2), item3...), target)
abs(num)
path expressions
number(arg)
44. Returns boolean true or boolean false
round(num)
true() and false()
current-time()
.
45. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
boolean(arg)
index-of((item1, item2), item3...), target)
transformation
46. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
criteria
processing-instruction
//book/title | //book/price
nodes
47. Returns year value out of the date passed
substring-before(str1, str2)
attribute node
parent
year-from-date(date)
48. Replaces chars of str2 found in str1 with chars of str3
concat(str1, str2, str3...)
month-from-date(date)
translate(str1, str2, str3)
books/book[last()]
49. Selects all book elements with an attribute isbn=
.
number(arg)
//book[@isbn]
XSLT
50. Trims leading and trailing spaces
..
normalize-space(str)
month-from-date(current-date())
XSLT