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