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
day-from-date(date)
processing-instruction
books/book[1]
current-date()
2. Selects parent of current node
..
string-join((str1, str2, str3), separator)
day-from-date(date)
processor application
3. Returns substring from start position to end of string
sequence
month-from-date(date)
substring(str,start)
substring-before(str1, str2)
4. xpath function categories: numeric - string - boolea - date/time - ________
nodes
substring(str,start)
translate(str1, str2, str3)
sequence
5. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
Xpath operators
remove((item1, item2, item3...), position)
substring(str,start)
floor(num)
6. Selects last book element from the children of books element
books/book[last()]
substring(str1, start, len)
/bookstore/book/title | //price
parent node
7. Returns next lowest integer
parent
floor(num)
trees of nodes
seconds-from-time(time)
8. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
minutes-from-time(time)
number(arg)
//book[@isbn]
concat(str1, str2, str3...)
9. Trims leading and trailing spaces
Predicates
normalize-space(str)
seconds-from-time(time)
index-of((item1, item2), item3...), target)
10. Returns logically rounded integer
hours-from-time(time)
string-length()
round(num)
floor(num)
11. Selects attributes
..
@
child nodes
timezone-from-time(time)
12. _______ have 3 primary relationships: parent - child - sibling
processor application
day-from-date(date)
nodes
string-length(str)
13. selects first book element from the children of books element
books/book[1]
string-length()
year-from-date(date)
Predicates
14. Returns length of passed string
string-length(str)
boolean(arg)
standard function
substring-before(str1, str2)
15. Selects all title elements of the book element AND all price elements in the entire document
processing-instruction
transformation
div
/bookstore/book/title | //price
16. XSL is what we use to get from readable to _________
string-length(str)
usable document
attribute node
upper-case(str)
17. Predicates work somewhat like _____________
true() and false()
insert-before((item1, item2, item3...), positionX, itemX)
month-from-date(date)
arrays and functions
18. Returns October or 10 ?
month-from-date(current-date())
substring-after(str1, str2)
attribute node
substring(str,start)
19. Returns boolean true or boolean false
matches(str1, str2)
parent node
//title[@*]
true() and false()
20. 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
21. Returns day value from date passed
processor application
day-from-date(date)
/bookstore/book/title | //price
floor(num)
22. Returns absolute value (example abs(-2.5) returns 2.5
day-from-date(date)
standard function
abs(num)
month-from-date(date)
23. Converts value to a string
sequence
index-of((item1, item2), item3...), target)
not(arg)
string(arg)
24. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
sequence
not(arg)
normalize-space(str)
25. XPath is a for defining parts of an XML document
timezone-from-time(time)
instinct-values(item1, item2, item3...))
'/'
syntax
26. Returns 2008
parent
'//'
minutes-from-time(time)
year-from-date(current-date())
27. Returns everything before the first occurrence of str2
..
true() and false()
//*
substring-before(str1, str2)
28. Returns year value out of the date passed
month-from-date(current-date())
ceiling(num)
year-from-date(date)
remove((item1, item2, item3...), position)
29. Selects all the child nodes of the bookstore element
path expressions
string-join((str1, str2, str3), separator)
month-from-date(date)
/bookstore/*
30. Selects current node
'/'
string-length()
//title | //price
.
31. Returns second value from time passed
year-from-date(date)
current-dateTime()
seconds-from-time(time)
//book/title | //book/price
32. Selects all book elements with a child element "price" with values greater than 35
parent
//title[@*]
books/book[price > 35.00]
compare(arg1, arg2)
33. XPath contains a library of _________
current-date()
standard function
parent
Xpath operators
34. Use a | to select more than one _____ (means AND)
month-from-date(date)
path
day-from-date(date)
criteria
35. Replaces chars of str2 found in str1 with chars of str3
translate(str1, str2, str3)
current-date()
instinct-values(item1, item2, item3...))
substring(str,start)
36. Selects all book elements with an attribute isbn=
//book[@isbn]
standard function
//title | //price
year-from-date(current-date())
37. XPath is a major element in _______
Xpath operators
XSLT
transforming
hours-from-time(time)
38. ________ allow more specific selections within the XPath
substring(str1, start, len)
arrays and functions
Predicates
processor application
39. Returns today's date
instinct-values(item1, item2, item3...))
processing-instruction
current-date()
parent node
40. 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
transformation
criteria
substring(str,start)
substring-after(str1, str2)
41. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
seconds-from-time(time)
current-dateTime()
ceiling(num)
index-of((item1, item2), item3...), target)
42. Returns true if str1 ends with str2
compare(arg1, arg2)
insert-before((item1, item2, item3...), positionX, itemX)
ends-with(str1, str2)
@
43. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
string-join((str1, str2, str3), separator)
instinct-values(item1, item2, item3...))
contains(str1, str2)
substring(str,start)
44. Returns false or true
boolean(arg)
floor(num)
substring-after(str1, str2)
day-from-date(date)
45. Concatenates strings together with separator between each string
index-of((item1, item2), item3...), target)
normalize-space(str)
string-join((str1, str2, str3), separator)
current-dateTime()
46. Selects all title AND price elements in the entire document
//title | //price
substring-after(str1, str2)
//*
concat(str1, str2, str3...)
47. Returns false if true - true if false (negative logic)
not(arg)
string-length()
XSLT
ends-with(str1, str2)
48. Element nodes may have zero - one - or more _________
matches(str1, str2)
div
year-from-date(date)
child nodes
49. Returns true if str1 contains str2
contains(str1, str2)
month-from-date(date)
child nodes
books/book[1]
50. Compares strings, returns 0 if same, -1 if not same
parent
XSLT
substring-after(str1, str2)
compare(arg1, arg2)
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