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