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