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