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