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