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