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