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 first book element from the children of books element
books/book[1]
year-from-date(date)
transforming
//title | //price
2. Sibling nodes all have the same ______
sequence
contains(str1, str2)
parent
current-time()
3. Returns boolean true or boolean false
replace(str1, str2, str3)
day-from-date(date)
standard function
true() and false()
4. Selects all elements in the document
timezone-from-time(time)
true() and false()
not(arg)
//*
5. Returns hour value from time passed
round(num)
hours-from-time(time)
string-length(str)
path expressions
6. Returns true if str1 starts with str2
trees of nodes
contains(str1, str2)
usable document
starts-with(str1, str2)
7. XPath is a for defining parts of an XML document
syntax
criteria
child nodes
concat(str1, str2, str3...)
8. Returns 2008
floor(num)
concat(str1, str2, str3...)
current-time()
year-from-date(current-date())
9. Selects last book element from the children of books element
parent
contains(str1, str2)
books/book[last()]
not(arg)
10. ________ allow more specific selections within the XPath
//title | //price
books/book[1]
Predicates
month-from-date(current-date())
11. 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
12. The XPath division operator not "/" cuz "/" is used in path expressions
instinct-values(item1, item2, item3...))
div
'//'
day-from-date(date)
13. every element and every attribute have just one _________
timezone-from-time(time)
.
parent node
hours-from-time(time)
14. xpath function categories: numeric - string - boolea - date/time - ________
transforming
sequence
//title | //price
'//'
15. Compares strings, returns 0 if same, -1 if not same
substring-after(str1, str2)
Predicates
compare(arg1, arg2)
current-date()
16. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
month-from-date(date)
instinct-values(item1, item2, item3...))
nodes
translate(str1, str2, str3)
17. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
path expressions
day-from-date(date)
string(arg)
18. Selects from the root node
'/'
19. Returns n-length substring from start position
substring(str1, start, len)
year-from-date(current-date())
seconds-from-time(time)
substring-before(str1, str2)
20. XSL is what we use to get from readable to _________
round(num)
criteria
usable document
processor application
21. Selects current node
substring(str,start)
.
sequence
upper-case(str)
22. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
path expressions
//book/title | //book/price
year-from-date(current-date())
23. Converts string to upper case
string(arg)
upper-case(str)
nodes
books/book[price > 35.00]
24. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
minutes-from-time(time)
insert-before((item1, item2, item3...), positionX, itemX)
syntax
//title | //price
25. Selects attributes
@
substring-after(str1, str2)
floor(num)
usable document
26. Element nodes may have zero - one - or more _________
child nodes
number(arg)
day-from-date(date)
path
27. Selects all the child nodes of the bookstore element
string-length()
//title | //price
contains(str1, str2)
/bookstore/*
28. Selects all title AND price elements in the entire document
//title | //price
substring(str1, start, len)
current-time()
instinct-values(item1, item2, item3...))
29. Returns second value from time passed
lower-case(str)
seconds-from-time(time)
trees of nodes
/bookstore/book/title | //price
30. Returns logically rounded integer
replace(str1, str2, str3)
//*
round(num)
//book/title | //book/price
31. Returns length of passed string
string-length(str)
path expressions
standard function
arrays and functions
32. Returns length of current node string
string-length()
insert-before((item1, item2, item3...), positionX, itemX)
abs(num)
@
33. Returns everything after the first occurrence of str2
substring-after(str1, str2)
arrays and functions
processor application
trees of nodes
34. In str1, replaces all occurrences of str2 with str3
books/book[position()
//title[@*]
replace(str1, str2, str3)
Predicates
35. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
usable document
attribute node
starts-with(str1, str2)
sequence
36. XPath contains a library of _________
..
matches(str1, str2)
nodes
standard function
37. Converts string number to numeric value
trees of nodes
true() and false()
number(arg)
translate(str1, str2, str3)
38. Returns next lowest integer
upper-case(str)
criteria
/bookstore/book/title | //price
floor(num)
39. Returns everything before the first occurrence of str2
books/book[1]
substring-before(str1, str2)
nodes
ends-with(str1, str2)
40. Returns time right now
seconds-from-time(time)
string-length(str)
//*
current-time()
41. Returns substring from start position to end of string
usable document
remove((item1, item2, item3...), position)
substring(str,start)
processing-instruction
42. Converts value to a string
..
year-from-date(current-date())
current-date()
string(arg)
43. Selects all title elements which have any attribute
//title[@*]
..
hours-from-time(time)
parent
44. Selects all title AND price elements of all book elements
day-from-date(date)
div
not(arg)
//book/title | //book/price
45. Returns today's date
current-date()
not(arg)
processor application
XSLT
46. Returns October or 10 ?
//book[@isbn]
month-from-date(current-date())
//book/title | //book/price
current-date()
47. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
round(num)
'//'
upper-case(str)
index-of((item1, item2), item3...), target)
48. Returns true if str1 contains str2
Predicates
contains(str1, str2)
not(arg)
standard function
49. Returns month value out of date passed
replace(str1, str2, str3)
true() and false()
substring(str1, start, len)
month-from-date(date)
50. Returns absolute value (example abs(-2.5) returns 2.5
processing-instruction
/bookstore/book/title | //price
//book/title | //book/price
abs(num)
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