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 false or true
compare(arg1, arg2)
minutes-from-time(time)
//*
boolean(arg)
2. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
syntax
transformation
Xpath operators
insert-before((item1, item2, item3...), positionX, itemX)
3. Returns length of current node string
sequence
substring-before(str1, str2)
string-length()
index-of((item1, item2), item3...), target)
4. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
seconds-from-time(time)
concat(str1, str2, str3...)
string-length(str)
@
5. XML documents are treated as _________- so the root of the tree is called the document node or root node
string-length(str)
starts-with(str1, str2)
insert-before((item1, item2, item3...), positionX, itemX)
trees of nodes
6. Returns substring from start position to end of string
floor(num)
replace(str1, str2, str3)
parent node
substring(str,start)
7. Selects attributes
//title[@*]
boolean(arg)
@
replace(str1, str2, str3)
8. selects first book element from the children of books element
normalize-space(str)
books/book[1]
round(num)
abs(num)
9. Returns false if true - true if false (negative logic)
XSLT
sequence
not(arg)
books/book[1]
10. Returns today's date
trees of nodes
syntax
month-from-date(current-date())
current-date()
11. Returns n-length substring from start position
abs(num)
substring(str1, start, len)
'//'
processing-instruction
12. ________ allow more specific selections within the XPath
sequence
Predicates
abs(num)
div
13. XSL is what we use to get from readable to _________
syntax
processing-instruction
processor application
usable document
14. The XPath division operator not "/" cuz "/" is used in path expressions
seconds-from-time(time)
div
translate(str1, str2, str3)
replace(str1, str2, str3)
15. xpath function categories: numeric - string - boolea - date/time - ________
//*
sequence
..
seconds-from-time(time)
16. Selects all elements in the document
//*
upper-case(str)
current-time()
syntax
17. XPath contains a library of _________
standard function
day-from-date(date)
concat(str1, str2, str3...)
insert-before((item1, item2, item3...), positionX, itemX)
18. The process of taking raw XML - adding XSL - and outputting a document file of some type
year-from-date(date)
remove((item1, item2, item3...), position)
transformation
concat(str1, str2, str3...)
19. Element nodes may have zero - one - or more _________
standard function
child nodes
@
Xpath operators
20. Returns 2008
seconds-from-time(time)
.
year-from-date(current-date())
floor(num)
21. Returns year value out of the date passed
/bookstore/book/title | //price
year-from-date(date)
path
boolean(arg)
22. Returns everything before the first occurrence of str2
nodes
substring-before(str1, str2)
substring(str,start)
contains(str1, str2)
23. Converts string to upper case
standard function
upper-case(str)
compare(arg1, arg2)
'//'
24. Predicates work somewhat like _____________
hours-from-time(time)
arrays and functions
month-from-date(current-date())
seconds-from-time(time)
25. Returns boolean true or boolean false
substring(str,start)
processor application
true() and false()
..
26. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
syntax
standard function
processing-instruction
concat(str1, str2, str3...)
27. Trims leading and trailing spaces
normalize-space(str)
parent
upper-case(str)
books/book[last()]
28. Returns length of passed string
seconds-from-time(time)
string-length(str)
.
day-from-date(date)
29. 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
30. Returns next highest integer
ceiling(num)
boolean(arg)
month-from-date(date)
path expressions
31. Returns month value out of date passed
month-from-date(date)
transforming
floor(num)
seconds-from-time(time)
32. Returns everything after the first occurrence of str2
substring(str1, start, len)
substring-after(str1, str2)
books/book[position()
starts-with(str1, str2)
33. Selects all title elements of the book element AND all price elements in the entire document
string-length()
path expressions
div
/bookstore/book/title | //price
34. Converts string to lower case
//book/title | //book/price
child nodes
lower-case(str)
concat(str1, str2, str3...)
35. Selects last book element from the children of books element
//*
books/book[last()]
transforming
round(num)
36. XPath is a for defining parts of an XML document
@
day-from-date(date)
path expressions
syntax
37. Returns hour value from time passed
/bookstore/*
insert-before((item1, item2, item3...), positionX, itemX)
hours-from-time(time)
books/book[last()]
38. Concatenates strings together with separator between each string
translate(str1, str2, str3)
Predicates
minutes-from-time(time)
string-join((str1, str2, str3), separator)
39. Selects all book elements with a child element "price" with values greater than 35
//title | //price
month-from-date(date)
concat(str1, str2, str3...)
books/book[price > 35.00]
40. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
substring-after(str1, str2)
transforming
..
transformation
41. Transformation is actually accomplished by a _____________ like Saxon XSLT
instinct-values(item1, item2, item3...))
year-from-date(current-date())
arrays and functions
processor application
42. Returns second value from time passed
year-from-date(date)
//title | //price
books/book[1]
seconds-from-time(time)
43. Selects current node
path expressions
.
month-from-date(date)
XSLT
44. Selects all book elements with an attribute isbn=
//book[@isbn]
path
nodes
round(num)
45. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
instinct-values(item1, item2, item3...))
path
substring(str,start)
/bookstore/book/title | //price
46. Returns next lowest integer
floor(num)
.
books/book[last()]
trees of nodes
47. Returns time right now
sequence
remove((item1, item2, item3...), position)
current-time()
concat(str1, str2, str3...)
48. Returns minute value from time passed
minutes-from-time(time)
floor(num)
string-length()
concat(str1, str2, str3...)
49. Selects all title AND price elements of all book elements
//book/title | //book/price
remove((item1, item2, item3...), position)
substring(str1, start, len)
seconds-from-time(time)
50. Returns complete date/time
/bookstore/*
current-dateTime()
current-time()
substring(str,start)
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