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 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
year-from-date(date)
//book/title | //book/price
starts-with(str1, str2)
2. Returns everything after the first occurrence of str2
substring-after(str1, str2)
abs(num)
//title[@*]
matches(str1, str2)
3. Returns 2008
string-length()
index-of((item1, item2), item3...), target)
year-from-date(current-date())
//title[@*]
4. 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
5. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
.
replace(str1, str2, str3)
processing-instruction
6. Returns absolute value (example abs(-2.5) returns 2.5
index-of((item1, item2), item3...), target)
abs(num)
nodes
current-dateTime()
7. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
boolean(arg)
seconds-from-time(time)
Xpath operators
matches(str1, str2)
8. Returns true if str1 ends with str2
ends-with(str1, str2)
boolean(arg)
substring-before(str1, str2)
/bookstore/book/title | //price
9. Element nodes may have zero - one - or more _________
abs(num)
child nodes
trees of nodes
processor application
10. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
transforming
XSLT
syntax
books/book[position()
11. selects first book element from the children of books element
minutes-from-time(time)
starts-with(str1, str2)
//title | //price
books/book[1]
12. Selects attributes
'/'
@
parent
compare(arg1, arg2)
13. XPath contains a library of _________
transforming
contains(str1, str2)
//title | //price
standard function
14. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
remove((item1, item2, item3...), position)
string-join((str1, str2, str3), separator)
processing-instruction
ceiling(num)
15. Returns today's date
arrays and functions
current-date()
compare(arg1, arg2)
//title[@*]
16. Returns length of current node string
string-length()
sequence
index-of((item1, item2), item3...), target)
starts-with(str1, str2)
17. Returns substring from start position to end of string
Xpath operators
substring(str,start)
substring-before(str1, str2)
year-from-date(date)
18. Converts string to lower case
timezone-from-time(time)
minutes-from-time(time)
Xpath operators
lower-case(str)
19. Returns October or 10 ?
//book/title | //book/price
sequence
lower-case(str)
month-from-date(current-date())
20. ________ allow more specific selections within the XPath
string-length()
Predicates
floor(num)
processing-instruction
21. Sibling nodes all have the same ______
nodes
parent node
timezone-from-time(time)
parent
22. Returns hour value from time passed
hours-from-time(time)
current-dateTime()
arrays and functions
remove((item1, item2, item3...), position)
23. Returns true if str1 contains str2
/bookstore/book/title | //price
attribute node
books/book[last()]
contains(str1, str2)
24. Use a | to select more than one _____ (means AND)
substring(str1, start, len)
books/book[last()]
day-from-date(date)
path
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
replace(str1, str2, str3)
compare(arg1, arg2)
child nodes
criteria
26. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
books/book[price > 35.00]
insert-before((item1, item2, item3...), positionX, itemX)
substring(str1, start, len)
substring(str,start)
27. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
ceiling(num)
arrays and functions
instinct-values(item1, item2, item3...))
//title | //price
28. Returns false or true
child nodes
string-length(str)
round(num)
boolean(arg)
29. XML documents are treated as _________- so the root of the tree is called the document node or root node
criteria
books/book[last()]
boolean(arg)
trees of nodes
30. The XPath division operator not "/" cuz "/" is used in path expressions
processor application
upper-case(str)
div
year-from-date(current-date())
31. Converts value to a string
substring-after(str1, str2)
translate(str1, str2, str3)
string(arg)
substring(str1, start, len)
32. Selects current node
books/book[price > 35.00]
lower-case(str)
round(num)
.
33. The process of taking raw XML - adding XSL - and outputting a document file of some type
seconds-from-time(time)
substring(str,start)
ceiling(num)
transformation
34. Selects all title AND price elements in the entire document
path
trees of nodes
//title | //price
current-time()
35. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
year-from-date(date)
remove((item1, item2, item3...), position)
substring(str,start)
upper-case(str)
36. Returns complete date/time
string-length()
current-dateTime()
//*
div
37. Selects all title AND price elements of all book elements
//book/title | //book/price
true() and false()
parent
day-from-date(date)
38. Returns length of passed string
string-length(str)
year-from-date(date)
//*
translate(str1, str2, str3)
39. Returns year value out of the date passed
upper-case(str)
sequence
year-from-date(date)
current-date()
40. every element and every attribute have just one _________
arrays and functions
year-from-date(current-date())
parent node
books/book[1]
41. XPath is a major element in _______
nodes
//book[@isbn]
XSLT
criteria
42. xpath function categories: numeric - string - boolea - date/time - ________
syntax
year-from-date(current-date())
day-from-date(date)
sequence
43. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
substring-before(str1, str2)
contains(str1, str2)
processing-instruction
44. Selects all elements in the document
hours-from-time(time)
//*
day-from-date(date)
//book/title | //book/price
45. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
contains(str1, str2)
//*
path
46. Returns day value from date passed
string(arg)
month-from-date(date)
day-from-date(date)
transformation
47. Returns true if str1 starts with str2
//title[@*]
XSLT
arrays and functions
starts-with(str1, str2)
48. Returns time right now
index-of((item1, item2), item3...), target)
current-time()
current-date()
parent node
49. Converts string to upper case
sequence
upper-case(str)
criteria
//title[@*]
50. Returns timezone value from time passed
timezone-from-time(time)
processing-instruction
day-from-date(date)
books/book[position()
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