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