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 str1 starts with str2
'//'
year-from-date(current-date())
starts-with(str1, str2)
substring-before(str1, str2)
2. ________ allow more specific selections within the XPath
minutes-from-time(time)
//*
Predicates
boolean(arg)
3. Returns day value from date passed
concat(str1, str2, str3...)
replace(str1, str2, str3)
upper-case(str)
day-from-date(date)
4. Predicates work somewhat like _____________
sequence
/bookstore/book/title | //price
arrays and functions
substring(str1, start, len)
5. Returns false if true - true if false (negative logic)
books/book[1]
current-time()
substring-before(str1, str2)
not(arg)
6. Selects attributes
floor(num)
books/book[1]
processing-instruction
@
7. Converts value to a string
path expressions
string(arg)
replace(str1, str2, str3)
substring-after(str1, str2)
8. Sibling nodes all have the same ______
syntax
transforming
minutes-from-time(time)
parent
9. Selects all book elements with a child element "price" with values greater than 35
not(arg)
string-length(str)
books/book[price > 35.00]
substring(str1, start, len)
10. 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
transforming
syntax
criteria
standard function
11. Returns n-length substring from start position
contains(str1, str2)
path expressions
criteria
substring(str1, start, len)
12. Returns boolean true or boolean false
books/book[price > 35.00]
true() and false()
transformation
.
13. Returns year value out of the date passed
string(arg)
not(arg)
hours-from-time(time)
year-from-date(date)
14. Returns true if str1 contains str2
contains(str1, str2)
current-time()
//title[@*]
criteria
15. XPath contains a library of _________
attribute node
standard function
.
/bookstore/*
16. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
round(num)
parent
instinct-values(item1, item2, item3...))
substring(str1, start, len)
17. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
starts-with(str1, str2)
number(arg)
XSLT
18. Returns everything after the first occurrence of str2
trees of nodes
books/book[position()
//book/title | //book/price
substring-after(str1, str2)
19. _______ have 3 primary relationships: parent - child - sibling
books/book[1]
nodes
attribute node
string-length(str)
20. Selects current node
books/book[position()
Xpath operators
day-from-date(date)
.
21. Replaces chars of str2 found in str1 with chars of str3
normalize-space(str)
'//'
standard function
translate(str1, str2, str3)
22. In str1, replaces all occurrences of str2 with str3
true() and false()
books/book[1]
transformation
replace(str1, str2, str3)
23. Concatenates strings together with separator between each string
ceiling(num)
string-join((str1, str2, str3), separator)
books/book[1]
/bookstore/book/title | //price
24. XSL is what we use to get from readable to _________
usable document
number(arg)
instinct-values(item1, item2, item3...))
//title | //price
25. Returns hour value from time passed
//*
current-date()
instinct-values(item1, item2, item3...))
hours-from-time(time)
26. Selects from the root node
'/'
27. The process of taking raw XML - adding XSL - and outputting a document file of some type
string(arg)
transformation
instinct-values(item1, item2, item3...))
child nodes
28. 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)
books/book[1]
concat(str1, str2, str3...)
matches(str1, str2)
29. Returns false or true
/bookstore/book/title | //price
Predicates
boolean(arg)
number(arg)
30. XPath is a major element in _______
'/'
instinct-values(item1, item2, item3...))
XSLT
string-length(str)
31. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processor application
string-length(str)
insert-before((item1, item2, item3...), positionX, itemX)
processing-instruction
32. selects first book element from the children of books element
minutes-from-time(time)
/bookstore/book/title | //price
string(arg)
books/book[1]
33. 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
34. every element and every attribute have just one _________
index-of((item1, item2), item3...), target)
parent node
sequence
lower-case(str)
35. Returns everything before the first occurrence of str2
substring-before(str1, str2)
substring-after(str1, str2)
string(arg)
substring(str1, start, len)
36. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
//book/title | //book/price
path expressions
round(num)
child nodes
37. Returns minute value from time passed
minutes-from-time(time)
substring-before(str1, str2)
//title[@*]
processing-instruction
38. Selects all book elements with an attribute isbn=
//book[@isbn]
substring-after(str1, str2)
replace(str1, str2, str3)
insert-before((item1, item2, item3...), positionX, itemX)
39. Returns time right now
instinct-values(item1, item2, item3...))
syntax
current-time()
contains(str1, str2)
40. Returns true if str2 appears anywhere inside str1
'/'
month-from-date(current-date())
matches(str1, str2)
transforming
41. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
not(arg)
index-of((item1, item2), item3...), target)
round(num)
trees of nodes
42. Returns today's date
current-date()
nodes
year-from-date(date)
upper-case(str)
43. Selects last book element from the children of books element
books/book[last()]
minutes-from-time(time)
string-join((str1, str2, str3), separator)
concat(str1, str2, str3...)
44. Returns next highest integer
attribute node
Xpath operators
string-join((str1, str2, str3), separator)
ceiling(num)
45. Returns substring from start position to end of string
div
sequence
usable document
substring(str,start)
46. Returns length of current node string
Xpath operators
parent
string-length()
year-from-date(current-date())
47. Returns second value from time passed
seconds-from-time(time)
attribute node
trees of nodes
standard function
48. xpath function categories: numeric - string - boolea - date/time - ________
sequence
//book/title | //book/price
ends-with(str1, str2)
Predicates
49. Element nodes may have zero - one - or more _________
substring-before(str1, str2)
child nodes
string-join((str1, str2, str3), separator)
round(num)
50. The XPath division operator not "/" cuz "/" is used in path expressions
div
/bookstore/book/title | //price
number(arg)
seconds-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