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