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. The XPath division operator not "/" cuz "/" is used in path expressions
boolean(arg)
replace(str1, str2, str3)
year-from-date(date)
div
2. Selects last book element from the children of books element
substring-before(str1, str2)
number(arg)
books/book[last()]
hours-from-time(time)
3. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
path expressions
.
processing-instruction
string-join((str1, str2, str3), separator)
4. Returns minute value from time passed
minutes-from-time(time)
day-from-date(date)
books/book[1]
parent node
5. Returns n-length substring from start position
//book/title | //book/price
seconds-from-time(time)
replace(str1, str2, str3)
substring(str1, start, len)
6. Returns October or 10 ?
parent node
month-from-date(current-date())
substring-after(str1, str2)
contains(str1, str2)
7. Selects first two book elements from the children of books element
seconds-from-time(time)
parent node
books/book[position()
month-from-date(date)
8. Returns hour value from time passed
hours-from-time(time)
..
seconds-from-time(time)
string-join((str1, str2, str3), separator)
9. Returns everything after the first occurrence of str2
substring-after(str1, str2)
@
'//'
/bookstore/*
10. Concatenates strings together with separator between each string
number(arg)
matches(str1, str2)
//title[@*]
string-join((str1, str2, str3), separator)
11. Converts string to upper case
substring(str1, start, len)
upper-case(str)
seconds-from-time(time)
month-from-date(date)
12. Selects all the child nodes of the bookstore element
usable document
ceiling(num)
not(arg)
/bookstore/*
13. Use a | to select more than one _____ (means AND)
year-from-date(date)
lower-case(str)
books/book[position()
path
14. xpath function categories: numeric - string - boolea - date/time - ________
substring(str,start)
day-from-date(date)
sequence
normalize-space(str)
15. Returns true if str1 ends with str2
ends-with(str1, str2)
/bookstore/book/title | //price
compare(arg1, arg2)
processing-instruction
16. 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
matches(str1, str2)
//title[@*]
floor(num)
17. _______ have 3 primary relationships: parent - child - sibling
current-date()
nodes
year-from-date(current-date())
usable document
18. Predicates work somewhat like _____________
year-from-date(current-date())
criteria
arrays and functions
month-from-date(current-date())
19. Sibling nodes all have the same ______
parent
number(arg)
div
arrays and functions
20. Returns length of current node string
usable document
string-length()
index-of((item1, item2), item3...), target)
//*
21. Element nodes may have zero - one - or more _________
Predicates
standard function
child nodes
month-from-date(current-date())
22. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
substring-before(str1, str2)
path expressions
starts-with(str1, str2)
@
23. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
syntax
nodes
..
24. selects first book element from the children of books element
books/book[1]
//*
floor(num)
books/book[last()]
25. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
processing-instruction
transforming
seconds-from-time(time)
standard function
26. Selects from the root node
'/'
27. Returns everything before the first occurrence of str2
criteria
substring-before(str1, str2)
current-time()
contains(str1, str2)
28. Selects all book elements with an attribute isbn=
parent node
year-from-date(current-date())
abs(num)
//book[@isbn]
29. Returns boolean true or boolean false
matches(str1, str2)
path
replace(str1, str2, str3)
true() and false()
30. Returns true if str1 contains str2
transformation
syntax
contains(str1, str2)
usable document
31. Selects all title elements which have any attribute
arrays and functions
trees of nodes
child nodes
//title[@*]
32. every element and every attribute have just one _________
standard function
parent node
books/book[position()
ceiling(num)
33. Returns absolute value (example abs(-2.5) returns 2.5
/bookstore/book/title | //price
//title | //price
abs(num)
floor(num)
34. Returns day value from date passed
concat(str1, str2, str3...)
sequence
transforming
day-from-date(date)
35. Selects all book elements with a child element "price" with values greater than 35
concat(str1, str2, str3...)
contains(str1, str2)
substring-before(str1, str2)
books/book[price > 35.00]
36. XPath contains a library of _________
standard function
year-from-date(date)
current-dateTime()
replace(str1, str2, str3)
37. XPath is a major element in _______
usable document
XSLT
transformation
starts-with(str1, str2)
38. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
div
/bookstore/book/title | //price
insert-before((item1, item2, item3...), positionX, itemX)
//title | //price
39. Returns logically rounded integer
ends-with(str1, str2)
XSLT
child nodes
round(num)
40. Compares strings, returns 0 if same, -1 if not same
//title | //price
'//'
compare(arg1, arg2)
books/book[position()
41. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
month-from-date(date)
replace(str1, str2, str3)
substring(str,start)
42. Returns 2008
Predicates
boolean(arg)
year-from-date(current-date())
processor application
43. Transformation is actually accomplished by a _____________ like Saxon XSLT
contains(str1, str2)
current-time()
processor application
remove((item1, item2, item3...), position)
44. Returns timezone value from time passed
not(arg)
concat(str1, str2, str3...)
timezone-from-time(time)
child nodes
45. Returns next lowest integer
/bookstore/book/title | //price
processing-instruction
floor(num)
current-time()
46. XSL is what we use to get from readable to _________
attribute node
parent node
usable document
//title | //price
47. Returns year value out of the date passed
year-from-date(date)
current-time()
div
standard function
48. Returns true if str2 appears anywhere inside str1
ends-with(str1, str2)
concat(str1, str2, str3...)
matches(str1, str2)
ceiling(num)
49. Returns false or true
boolean(arg)
syntax
sequence
//*
50. Returns false if true - true if false (negative logic)
not(arg)
contains(str1, str2)
nodes
books/book[last()]
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