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. Sibling nodes all have the same ______
'//'
substring(str1, start, len)
attribute node
parent
2. _______ have 3 primary relationships: parent - child - sibling
attribute node
div
nodes
boolean(arg)
3. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
arrays and functions
//book/title | //book/price
transforming
upper-case(str)
4. Returns false if true - true if false (negative logic)
not(arg)
replace(str1, str2, str3)
div
abs(num)
5. Returns 2008
trees of nodes
year-from-date(current-date())
translate(str1, str2, str3)
nodes
6. Returns substring from start position to end of string
string-length(str)
path
upper-case(str)
substring(str,start)
7. Selects all book elements with a child element "price" with values greater than 35
month-from-date(current-date())
string-length(str)
parent
books/book[price > 35.00]
8. Compares strings, returns 0 if same, -1 if not same
month-from-date(current-date())
compare(arg1, arg2)
XSLT
round(num)
9. Converts string to upper case
upper-case(str)
contains(str1, str2)
floor(num)
string-length()
10. Returns month value out of date passed
month-from-date(date)
ceiling(num)
Xpath operators
translate(str1, str2, str3)
11. Trims leading and trailing spaces
substring-before(str1, str2)
substring-after(str1, str2)
normalize-space(str)
year-from-date(date)
12. Selects current node
/bookstore/*
.
sequence
concat(str1, str2, str3...)
13. Returns everything after the first occurrence of str2
arrays and functions
true() and false()
Predicates
substring-after(str1, str2)
14. Converts string to lower case
parent node
lower-case(str)
path
/bookstore/*
15. XPath contains a library of _________
current-time()
minutes-from-time(time)
standard function
transformation
16. Returns next lowest integer
compare(arg1, arg2)
syntax
translate(str1, str2, str3)
floor(num)
17. Returns length of current node string
path expressions
transforming
replace(str1, str2, str3)
string-length()
18. Returns second value from time passed
seconds-from-time(time)
path
ends-with(str1, str2)
trees of nodes
19. Transformation is actually accomplished by a _____________ like Saxon XSLT
insert-before((item1, item2, item3...), positionX, itemX)
processor application
string-join((str1, str2, str3), separator)
'/'
20. Selects all title elements which have any attribute
hours-from-time(time)
index-of((item1, item2), item3...), target)
timezone-from-time(time)
//title[@*]
21. Returns n-length substring from start position
substring(str1, start, len)
transformation
starts-with(str1, str2)
index-of((item1, item2), item3...), target)
22. Returns complete date/time
concat(str1, str2, str3...)
current-dateTime()
string-join((str1, str2, str3), separator)
starts-with(str1, str2)
23. Converts string number to numeric value
attribute node
number(arg)
hours-from-time(time)
/bookstore/book/title | //price
24. Returns length of passed string
contains(str1, str2)
string-length(str)
//*
round(num)
25. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
string-length(str)
ends-with(str1, str2)
instinct-values(item1, item2, item3...))
26. Returns everything before the first occurrence of str2
abs(num)
substring-before(str1, str2)
concat(str1, str2, str3...)
month-from-date(current-date())
27. Returns October or 10 ?
month-from-date(current-date())
child nodes
parent
sequence
28. Returns day value from date passed
replace(str1, str2, str3)
day-from-date(date)
ends-with(str1, str2)
books/book[position()
29. 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)
not(arg)
sequence
trees of nodes
30. Predicates work somewhat like _____________
string(arg)
arrays and functions
transforming
transformation
31. every element and every attribute have just one _________
sequence
parent node
attribute node
day-from-date(date)
32. Selects all title AND price elements of all book elements
parent node
substring-after(str1, str2)
day-from-date(date)
//book/title | //book/price
33. The process of taking raw XML - adding XSL - and outputting a document file of some type
current-time()
transformation
translate(str1, str2, str3)
syntax
34. Converts value to a string
path
index-of((item1, item2), item3...), target)
string(arg)
contains(str1, str2)
35. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
processing-instruction
boolean(arg)
path expressions
string(arg)
36. Selects parent of current node
path expressions
..
'//'
substring-after(str1, str2)
37. Selects all the child nodes of the bookstore element
not(arg)
number(arg)
/bookstore/*
current-dateTime()
38. Returns minute value from time passed
floor(num)
..
abs(num)
minutes-from-time(time)
39. selects first book element from the children of books element
syntax
sequence
hours-from-time(time)
books/book[1]
40. 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
replace(str1, str2, str3)
substring(str,start)
..
criteria
41. Returns false or true
boolean(arg)
month-from-date(current-date())
/bookstore/book/title | //price
path expressions
42. Returns time right now
string-join((str1, str2, str3), separator)
index-of((item1, item2), item3...), target)
arrays and functions
current-time()
43. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
replace(str1, str2, str3)
remove((item1, item2, item3...), position)
'/'
/bookstore/*
44. Selects from the root node
'/'
45. XPath is a major element in _______
XSLT
processor application
syntax
not(arg)
46. Selects all book elements with an attribute isbn=
//book[@isbn]
round(num)
//title | //price
number(arg)
47. Selects first two book elements from the children of books element
..
books/book[position()
abs(num)
criteria
48. Returns logically rounded integer
parent node
lower-case(str)
string-length(str)
round(num)
49. Selects all title AND price elements in the entire document
index-of((item1, item2), item3...), target)
//title | //price
substring(str1, start, len)
concat(str1, str2, str3...)
50. Replaces chars of str2 found in str1 with chars of str3
month-from-date(date)
books/book[position()
matches(str1, str2)
translate(str1, str2, str3)
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