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 first two book elements from the children of books element
compare(arg1, arg2)
sequence
books/book[position()
floor(num)
2. XPath is a for defining parts of an XML document
starts-with(str1, str2)
compare(arg1, arg2)
month-from-date(date)
syntax
3. Selects parent of current node
..
month-from-date(date)
compare(arg1, arg2)
//book/title | //book/price
4. Predicates work somewhat like _____________
arrays and functions
round(num)
index-of((item1, item2), item3...), target)
insert-before((item1, item2, item3...), positionX, itemX)
5. Selects from the root node
'/'
6. In str1, replaces all occurrences of str2 with str3
contains(str1, str2)
path expressions
replace(str1, str2, str3)
parent node
7. XSL is what we use to get from readable to _________
usable document
current-time()
string-length()
index-of((item1, item2), item3...), target)
8. Returns length of current node string
books/book[position()
string-length()
div
Predicates
9. Returns year value out of the date passed
current-time()
parent node
year-from-date(date)
seconds-from-time(time)
10. ________ allow more specific selections within the XPath
standard function
nodes
not(arg)
Predicates
11. Returns true if str1 starts with str2
starts-with(str1, str2)
parent
instinct-values(item1, item2, item3...))
minutes-from-time(time)
12. Returns complete date/time
current-dateTime()
processor application
compare(arg1, arg2)
number(arg)
13. Returns logically rounded integer
round(num)
substring-after(str1, str2)
floor(num)
arrays and functions
14. Returns boolean true or boolean false
true() and false()
number(arg)
XSLT
criteria
15. xpath function categories: numeric - string - boolea - date/time - ________
sequence
current-time()
starts-with(str1, str2)
child nodes
16. Transformation is actually accomplished by a _____________ like Saxon XSLT
abs(num)
processor application
substring-after(str1, str2)
@
17. Returns everything after the first occurrence of str2
string(arg)
substring-after(str1, str2)
arrays and functions
current-date()
18. Returns substring from start position to end of string
criteria
ceiling(num)
substring(str,start)
index-of((item1, item2), item3...), target)
19. Returns true if str1 contains str2
string(arg)
contains(str1, str2)
criteria
processing-instruction
20. Returns today's date
current-date()
floor(num)
compare(arg1, arg2)
@
21. Returns month value out of date passed
books/book[price > 35.00]
month-from-date(date)
div
boolean(arg)
22. Use a | to select more than one _____ (means AND)
boolean(arg)
ends-with(str1, str2)
path
attribute node
23. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
current-time()
compare(arg1, arg2)
transforming
syntax
24. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
//book[@isbn]
path
abs(num)
remove((item1, item2, item3...), position)
25. Concatenates strings together with separator between each string
ceiling(num)
trees of nodes
translate(str1, str2, str3)
string-join((str1, str2, str3), separator)
26. Element nodes may have zero - one - or more _________
'/'
current-time()
child nodes
string-length()
27. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
/bookstore/book/title | //price
concat(str1, str2, str3...)
matches(str1, str2)
XSLT
28. Selects last book element from the children of books element
books/book[last()]
not(arg)
path
string-join((str1, str2, str3), separator)
29. Selects all elements in the document
//*
string-length()
Xpath operators
string-join((str1, str2, str3), separator)
30. XML documents are treated as _________- so the root of the tree is called the document node or root node
//*
current-dateTime()
trees of nodes
path
31. Returns everything before the first occurrence of str2
day-from-date(date)
ends-with(str1, str2)
matches(str1, str2)
substring-before(str1, str2)
32. Converts string number to numeric value
books/book[price > 35.00]
/bookstore/*
number(arg)
//book[@isbn]
33. Trims leading and trailing spaces
Predicates
day-from-date(date)
normalize-space(str)
syntax
34. Returns n-length substring from start position
@
parent node
substring(str1, start, len)
'//'
35. Selects current node
books/book[last()]
.
Xpath operators
//*
36. Selects all book elements with a child element "price" with values greater than 35
path expressions
round(num)
'/'
books/book[price > 35.00]
37. Returns timezone value from time passed
compare(arg1, arg2)
remove((item1, item2, item3...), position)
timezone-from-time(time)
current-date()
38. The XPath division operator not "/" cuz "/" is used in path expressions
arrays and functions
/bookstore/book/title | //price
div
current-date()
39. The process of taking raw XML - adding XSL - and outputting a document file of some type
contains(str1, str2)
usable document
criteria
transformation
40. _______ have 3 primary relationships: parent - child - sibling
nodes
compare(arg1, arg2)
substring-after(str1, str2)
current-dateTime()
41. Returns October or 10 ?
/bookstore/book/title | //price
translate(str1, str2, str3)
string-join((str1, str2, str3), separator)
month-from-date(current-date())
42. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
upper-case(str)
attribute node
remove((item1, item2, item3...), position)
substring(str,start)
43. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
Predicates
//*
//book[@isbn]
44. Returns false if true - true if false (negative logic)
not(arg)
substring(str1, start, len)
current-date()
'//'
45. Converts string to lower case
lower-case(str)
day-from-date(date)
seconds-from-time(time)
Xpath operators
46. Returns time right now
substring(str,start)
index-of((item1, item2), item3...), target)
string-length(str)
current-time()
47. Selects all title AND price elements in the entire document
substring(str,start)
boolean(arg)
parent node
//title | //price
48. XPath contains a library of _________
Xpath operators
standard function
'//'
boolean(arg)
49. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
string(arg)
string-length(str)
div
50. Replaces chars of str2 found in str1 with chars of str3
normalize-space(str)
/bookstore/*
translate(str1, str2, str3)
path
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