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