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