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