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 parent of current node
lower-case(str)
standard function
trees of nodes
..
2. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
contains(str1, str2)
//book[@isbn]
instinct-values(item1, item2, item3...))
div
3. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
round(num)
ceiling(num)
transformation
index-of((item1, item2), item3...), target)
4. Returns complete date/time
substring(str,start)
current-dateTime()
..
processor application
5. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
string-join((str1, str2, str3), separator)
transforming
books/book[position()
Predicates
6. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
compare(arg1, arg2)
sequence
'//'
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 attributes
@
instinct-values(item1, item2, item3...))
true() and false()
seconds-from-time(time)
9. Returns everything before the first occurrence of str2
usable document
substring-before(str1, str2)
@
substring-after(str1, str2)
10. Returns everything after the first occurrence of str2
substring-after(str1, str2)
month-from-date(current-date())
..
/bookstore/book/title | //price
11. Returns time right now
substring-before(str1, str2)
ends-with(str1, str2)
criteria
current-time()
12. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
concat(str1, str2, str3...)
syntax
translate(str1, str2, str3)
13. Converts string to upper case
@
upper-case(str)
concat(str1, str2, str3...)
transformation
14. Returns true if str1 ends with str2
/bookstore/*
number(arg)
books/book[last()]
ends-with(str1, str2)
15. Returns logically rounded integer
..
round(num)
books/book[1]
boolean(arg)
16. Returns next highest integer
//book/title | //book/price
ceiling(num)
substring-after(str1, str2)
current-time()
17. Returns timezone value from time passed
'/'
number(arg)
string-length()
timezone-from-time(time)
18. Concatenates strings together with separator between each string
true() and false()
string-join((str1, str2, str3), separator)
replace(str1, str2, str3)
Predicates
19. Returns today's date
ends-with(str1, str2)
trees of nodes
current-date()
attribute node
20. Selects all book elements with a child element "price" with values greater than 35
month-from-date(current-date())
compare(arg1, arg2)
books/book[price > 35.00]
starts-with(str1, str2)
21. Transformation is actually accomplished by a _____________ like Saxon XSLT
child nodes
processor application
abs(num)
boolean(arg)
22. Returns substring from start position to end of string
syntax
starts-with(str1, str2)
replace(str1, str2, str3)
substring(str,start)
23. every element and every attribute have just one _________
month-from-date(date)
string-join((str1, str2, str3), separator)
parent node
Xpath operators
24. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
books/book[position()
concat(str1, str2, str3...)
lower-case(str)
books/book[last()]
25. XPath is a major element in _______
ends-with(str1, str2)
seconds-from-time(time)
ceiling(num)
XSLT
26. The XPath division operator not "/" cuz "/" is used in path expressions
books/book[1]
string(arg)
replace(str1, str2, str3)
div
27. Selects all the child nodes of the bookstore element
books/book[position()
/bookstore/*
trees of nodes
ceiling(num)
28. Returns day value from date passed
replace(str1, str2, str3)
day-from-date(date)
//title[@*]
number(arg)
29. In str1, replaces all occurrences of str2 with str3
ends-with(str1, str2)
matches(str1, str2)
replace(str1, str2, str3)
transforming
30. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
normalize-space(str)
syntax
div
31. Returns length of passed string
string-length(str)
contains(str1, str2)
substring-after(str1, str2)
@
32. Selects all title elements of the book element AND all price elements in the entire document
XSLT
parent node
substring(str1, start, len)
/bookstore/book/title | //price
33. Returns length of current node string
//title[@*]
string-length()
matches(str1, str2)
upper-case(str)
34. Returns false or true
seconds-from-time(time)
nodes
boolean(arg)
replace(str1, str2, str3)
35. Converts string to lower case
year-from-date(current-date())
trees of nodes
lower-case(str)
contains(str1, str2)
36. Returns n-length substring from start position
nodes
transformation
substring(str1, start, len)
transforming
37. Returns month value out of date passed
minutes-from-time(time)
month-from-date(date)
//book/title | //book/price
usable document
38. xpath function categories: numeric - string - boolea - date/time - ________
transformation
criteria
Predicates
sequence
39. Replaces chars of str2 found in str1 with chars of str3
/bookstore/*
replace(str1, str2, str3)
translate(str1, str2, str3)
string(arg)
40. XSL is what we use to get from readable to _________
substring-before(str1, str2)
upper-case(str)
usable document
ends-with(str1, str2)
41. Returns 2008
year-from-date(current-date())
sequence
.
instinct-values(item1, item2, item3...))
42. Use a | to select more than one _____ (means AND)
div
@
path
Xpath operators
43. Selects all book elements with an attribute isbn=
lower-case(str)
timezone-from-time(time)
//book[@isbn]
current-time()
44. Returns hour value from time passed
books/book[position()
Predicates
starts-with(str1, str2)
hours-from-time(time)
45. 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
//title | //price
instinct-values(item1, item2, item3...))
criteria
path
46. Selects all title AND price elements in the entire document
year-from-date(date)
//title | //price
boolean(arg)
remove((item1, item2, item3...), position)
47. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
path expressions
current-date()
compare(arg1, arg2)
//title | //price
48. Element nodes may have zero - one - or more _________
child nodes
processor application
remove((item1, item2, item3...), position)
processing-instruction
49. Converts string number to numeric value
year-from-date(current-date())
number(arg)
transforming
attribute node
50. _______ have 3 primary relationships: parent - child - sibling
//title[@*]
trees of nodes
nodes
replace(str1, str2, str3)
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