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