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