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. XSL is what we use to get from readable to _________
..
usable document
'/'
parent node
2. every element and every attribute have just one _________
index-of((item1, item2), item3...), target)
parent
parent node
sequence
3. Selects all title AND price elements in the entire document
//title | //price
starts-with(str1, str2)
//*
'/'
4. Returns 2008
//*
year-from-date(current-date())
year-from-date(date)
current-time()
5. In str1, replaces all occurrences of str2 with str3
minutes-from-time(time)
replace(str1, str2, str3)
hours-from-time(time)
standard function
6. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
books/book[last()]
starts-with(str1, str2)
remove((item1, item2, item3...), position)
instinct-values(item1, item2, item3...))
7. Selects parent of current node
not(arg)
books/book[position()
..
substring(str1, start, len)
8. Selects all book elements with a child element "price" with values greater than 35
.
number(arg)
books/book[price > 35.00]
translate(str1, str2, str3)
9. Returns everything after the first occurrence of str2
normalize-space(str)
contains(str1, str2)
substring-after(str1, str2)
minutes-from-time(time)
10. Predicates work somewhat like _____________
arrays and functions
floor(num)
substring(str1, start, len)
trees of nodes
11. Returns time right now
current-time()
day-from-date(date)
criteria
sequence
12. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
lower-case(str)
normalize-space(str)
transforming
13. Selects from the root node
'/'
14. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
attribute node
insert-before((item1, item2, item3...), positionX, itemX)
..
matches(str1, str2)
15. XPath contains a library of _________
index-of((item1, item2), item3...), target)
arrays and functions
standard function
current-time()
16. 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
17. ________ allow more specific selections within the XPath
//title | //price
Predicates
remove((item1, item2, item3...), position)
.
18. Selects last book element from the children of books element
string-join((str1, str2, str3), separator)
path
books/book[last()]
substring(str1, start, len)
19. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
Xpath operators
path expressions
lower-case(str)
//title | //price
20. Selects all title elements of the book element AND all price elements in the entire document
number(arg)
/bookstore/book/title | //price
year-from-date(current-date())
normalize-space(str)
21. Returns n-length substring from start position
substring(str1, start, len)
starts-with(str1, str2)
//title | //price
timezone-from-time(time)
22. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
..
ends-with(str1, str2)
path expressions
23. Returns true if str1 ends with str2
'//'
books/book[1]
ends-with(str1, str2)
month-from-date(date)
24. The XPath division operator not "/" cuz "/" is used in path expressions
div
compare(arg1, arg2)
starts-with(str1, str2)
instinct-values(item1, item2, item3...))
25. Returns false if true - true if false (negative logic)
processing-instruction
replace(str1, str2, str3)
not(arg)
round(num)
26. Returns false or true
child nodes
parent
processing-instruction
boolean(arg)
27. XPath is a major element in _______
month-from-date(date)
round(num)
XSLT
day-from-date(date)
28. XPath is a for defining parts of an XML document
processor application
current-dateTime()
syntax
floor(num)
29. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
'//'
transforming
string-length()
30. Selects all elements in the document
usable document
//*
//title[@*]
arrays and functions
31. Returns day value from date passed
ceiling(num)
day-from-date(date)
attribute node
transformation
32. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
substring-before(str1, str2)
..
//*
33. Returns logically rounded integer
insert-before((item1, item2, item3...), positionX, itemX)
string-length()
round(num)
/bookstore/book/title | //price
34. Converts string to lower case
processor application
lower-case(str)
starts-with(str1, str2)
nodes
35. selects first book element from the children of books element
.
hours-from-time(time)
books/book[1]
normalize-space(str)
36. Returns next lowest integer
floor(num)
matches(str1, str2)
processor application
abs(num)
37. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
current-date()
true() and false()
current-time()
38. Returns true if str1 contains str2
substring-after(str1, str2)
compare(arg1, arg2)
contains(str1, str2)
hours-from-time(time)
39. Returns year value out of the date passed
year-from-date(date)
'//'
boolean(arg)
substring-before(str1, str2)
40. Returns substring from start position to end of string
//title[@*]
boolean(arg)
substring(str,start)
transforming
41. Selects current node
.
usable document
books/book[1]
instinct-values(item1, item2, item3...))
42. Converts value to a string
string(arg)
compare(arg1, arg2)
minutes-from-time(time)
instinct-values(item1, item2, item3...))
43. Returns length of current node string
string-length()
day-from-date(date)
floor(num)
substring-after(str1, str2)
44. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
substring(str,start)
true() and false()
Xpath operators
index-of((item1, item2), item3...), target)
45. Returns boolean true or boolean false
//title[@*]
true() and false()
matches(str1, str2)
starts-with(str1, str2)
46. Transformation is actually accomplished by a _____________ like Saxon XSLT
month-from-date(date)
processor application
timezone-from-time(time)
round(num)
47. Returns everything before the first occurrence of str2
normalize-space(str)
substring-before(str1, str2)
@
string(arg)
48. Selects all title AND price elements of all book elements
//book/title | //book/price
month-from-date(date)
lower-case(str)
instinct-values(item1, item2, item3...))
49. Converts string to upper case
parent node
day-from-date(date)
books/book[1]
upper-case(str)
50. Returns hour value from time passed
'//'
replace(str1, str2, str3)
hours-from-time(time)
substring(str1, start, len)
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests