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