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