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 substring from start position to end of string
//title[@*]
remove((item1, item2, item3...), position)
substring(str,start)
arrays and functions
2. Selects all elements in the document
matches(str1, str2)
concat(str1, str2, str3...)
//*
year-from-date(date)
3. Returns next highest integer
ceiling(num)
year-from-date(date)
substring(str1, start, len)
.
4. Returns n-length substring from start position
contains(str1, str2)
round(num)
instinct-values(item1, item2, item3...))
substring(str1, start, len)
5. Selects all book elements with an attribute isbn=
substring-before(str1, str2)
'//'
year-from-date(date)
//book[@isbn]
6. every element and every attribute have just one _________
parent node
normalize-space(str)
day-from-date(date)
//title | //price
7. Returns month value out of date passed
month-from-date(date)
path expressions
insert-before((item1, item2, item3...), positionX, itemX)
concat(str1, str2, str3...)
8. Converts string to lower case
string-join((str1, str2, str3), separator)
lower-case(str)
floor(num)
string-length(str)
9. Concatenates strings together with separator between each string
path expressions
string-join((str1, str2, str3), separator)
syntax
@
10. The XPath division operator not "/" cuz "/" is used in path expressions
XSLT
div
string(arg)
//*
11. Sibling nodes all have the same ______
processing-instruction
string-length()
parent
translate(str1, str2, str3)
12. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
path expressions
sequence
floor(num)
13. Use a | to select more than one _____ (means AND)
transformation
true() and false()
//title | //price
path
14. Returns everything after the first occurrence of str2
year-from-date(current-date())
substring-after(str1, str2)
year-from-date(date)
books/book[price > 35.00]
15. ________ allow more specific selections within the XPath
matches(str1, str2)
Predicates
round(num)
month-from-date(date)
16. Predicates work somewhat like _____________
//book/title | //book/price
arrays and functions
compare(arg1, arg2)
path expressions
17. Selects from the root node
'/'
18. Returns October or 10 ?
month-from-date(current-date())
arrays and functions
processor application
year-from-date(date)
19. Selects all the child nodes of the bookstore element
instinct-values(item1, item2, item3...))
XSLT
processing-instruction
/bookstore/*
20. Selects current node
//book[@isbn]
.
timezone-from-time(time)
Xpath operators
21. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
upper-case(str)
timezone-from-time(time)
processing-instruction
processor application
22. Returns time right now
boolean(arg)
@
current-time()
substring-after(str1, str2)
23. Returns hour value from time passed
hours-from-time(time)
timezone-from-time(time)
current-date()
seconds-from-time(time)
24. XPath is a for defining parts of an XML document
compare(arg1, arg2)
year-from-date(date)
translate(str1, str2, str3)
syntax
25. Returns minute value from time passed
substring-before(str1, str2)
//book[@isbn]
minutes-from-time(time)
Xpath operators
26. Selects all title elements which have any attribute
floor(num)
//book/title | //book/price
nodes
//title[@*]
27. Returns 2008
contains(str1, str2)
year-from-date(current-date())
substring-before(str1, str2)
//*
28. Returns true if str1 contains str2
current-time()
month-from-date(current-date())
contains(str1, str2)
books/book[price > 35.00]
29. Returns true if str2 appears anywhere inside str1
month-from-date(date)
matches(str1, str2)
transformation
standard function
30. 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
Xpath operators
month-from-date(current-date())
//book/title | //book/price
criteria
31. selects first book element from the children of books element
books/book[1]
timezone-from-time(time)
hours-from-time(time)
trees of nodes
32. Returns true if str1 ends with str2
syntax
nodes
remove((item1, item2, item3...), position)
ends-with(str1, str2)
33. Converts value to a string
sequence
books/book[position()
//title | //price
string(arg)
34. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
//*
ceiling(num)
substring-after(str1, str2)
35. Returns logically rounded integer
number(arg)
substring(str1, start, len)
true() and false()
round(num)
36. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
parent
index-of((item1, item2), item3...), target)
/bookstore/book/title | //price
37. In str1, replaces all occurrences of str2 with str3
parent
substring-before(str1, str2)
index-of((item1, item2), item3...), target)
replace(str1, str2, str3)
38. Element nodes may have zero - one - or more _________
minutes-from-time(time)
//book/title | //book/price
books/book[last()]
child nodes
39. Returns everything before the first occurrence of str2
substring-before(str1, str2)
abs(num)
contains(str1, str2)
upper-case(str)
40. Returns true if str1 starts with str2
substring(str,start)
XSLT
starts-with(str1, str2)
syntax
41. Returns complete date/time
'/'
standard function
current-dateTime()
@
42. XSL is what we use to get from readable to _________
lower-case(str)
usable document
parent
//book/title | //book/price
43. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
number(arg)
current-time()
/bookstore/*
remove((item1, item2, item3...), position)
44. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
usable document
true() and false()
string-join((str1, str2, str3), separator)
insert-before((item1, item2, item3...), positionX, itemX)
45. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
string-join((str1, str2, str3), separator)
syntax
substring-before(str1, str2)
path expressions
46. Selects all book elements with a child element "price" with values greater than 35
books/book[price > 35.00]
year-from-date(date)
contains(str1, str2)
.
47. Selects all title AND price elements in the entire document
//title | //price
//*
lower-case(str)
string-join((str1, str2, str3), separator)
48. XML documents are treated as _________- so the root of the tree is called the document node or root node
current-date()
..
trees of nodes
remove((item1, item2, item3...), position)
49. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
//*
substring(str,start)
current-date()
50. 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
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