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