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