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