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
//title | //price
..
substring(str1, start, len)
instinct-values(item1, item2, item3...))
2. XPath is a major element in _______
Xpath operators
XSLT
seconds-from-time(time)
usable document
3. Returns false if true - true if false (negative logic)
not(arg)
substring-after(str1, str2)
criteria
hours-from-time(time)
4. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
trees of nodes
path expressions
.
5. Returns length of current node string
/bookstore/book/title | //price
string-length()
current-time()
'//'
6. Selects current node
.
substring(str,start)
attribute node
/bookstore/book/title | //price
7. Returns time right now
current-time()
substring-after(str1, str2)
/bookstore/*
//title[@*]
8. Selects all the child nodes of the bookstore element
current-dateTime()
usable document
substring-after(str1, str2)
/bookstore/*
9. Returns n-length substring from start position
Predicates
boolean(arg)
substring(str1, start, len)
seconds-from-time(time)
10. Returns timezone value from time passed
timezone-from-time(time)
remove((item1, item2, item3...), position)
transformation
books/book[1]
11. Selects parent of current node
current-dateTime()
Predicates
..
round(num)
12. Converts value to a string
upper-case(str)
string(arg)
path expressions
books/book[last()]
13. Returns false or true
not(arg)
current-dateTime()
boolean(arg)
index-of((item1, item2), item3...), target)
14. Returns second value from time passed
boolean(arg)
ceiling(num)
current-time()
seconds-from-time(time)
15. Returns hour value from time passed
floor(num)
hours-from-time(time)
//book/title | //book/price
sequence
16. Returns next lowest integer
timezone-from-time(time)
floor(num)
boolean(arg)
XSLT
17. XPath is a for defining parts of an XML document
//book[@isbn]
true() and false()
syntax
parent
18. Returns absolute value (example abs(-2.5) returns 2.5
.
XSLT
abs(num)
day-from-date(date)
19. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
..
index-of((item1, item2), item3...), target)
attribute node
string(arg)
20. every element and every attribute have just one _________
contains(str1, str2)
concat(str1, str2, str3...)
div
parent node
21. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
substring(str1, start, len)
instinct-values(item1, item2, item3...))
round(num)
//title | //price
22. XML documents are treated as _________- so the root of the tree is called the document node or root node
month-from-date(date)
seconds-from-time(time)
current-time()
trees of nodes
23. Returns everything before the first occurrence of str2
not(arg)
transforming
year-from-date(date)
substring-before(str1, str2)
24. Returns everything after the first occurrence of str2
substring-after(str1, str2)
seconds-from-time(time)
compare(arg1, arg2)
not(arg)
25. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
normalize-space(str)
insert-before((item1, item2, item3...), positionX, itemX)
'/'
26. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
/bookstore/*
XSLT
number(arg)
27. Selects last book element from the children of books element
path expressions
ceiling(num)
books/book[last()]
not(arg)
28. Use a | to select more than one _____ (means AND)
concat(str1, str2, str3...)
path
nodes
books/book[last()]
29. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
transformation
transforming
contains(str1, str2)
concat(str1, str2, str3...)
30. xpath function categories: numeric - string - boolea - date/time - ________
sequence
lower-case(str)
floor(num)
hours-from-time(time)
31. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
processing-instruction
'/'
round(num)
32. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
number(arg)
path expressions
boolean(arg)
hours-from-time(time)
33. _______ have 3 primary relationships: parent - child - sibling
nodes
arrays and functions
syntax
hours-from-time(time)
34. 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
35. Returns true if str2 appears anywhere inside str1
..
contains(str1, str2)
abs(num)
matches(str1, str2)
36. Returns year value out of the date passed
floor(num)
//book/title | //book/price
lower-case(str)
year-from-date(date)
37. Selects attributes
transforming
string-length()
@
seconds-from-time(time)
38. selects first book element from the children of books element
.
substring(str,start)
books/book[1]
books/book[last()]
39. XPath contains a library of _________
standard function
month-from-date(current-date())
string-length(str)
Predicates
40. Selects all book elements with an attribute isbn=
//book[@isbn]
criteria
day-from-date(date)
processing-instruction
41. Returns October or 10 ?
month-from-date(current-date())
parent node
compare(arg1, arg2)
'/'
42. Returns minute value from time passed
minutes-from-time(time)
XSLT
//book[@isbn]
criteria
43. Replaces chars of str2 found in str1 with chars of str3
ends-with(str1, str2)
year-from-date(current-date())
translate(str1, str2, str3)
not(arg)
44. Returns month value out of date passed
current-date()
compare(arg1, arg2)
criteria
month-from-date(date)
45. Trims leading and trailing spaces
..
boolean(arg)
nodes
normalize-space(str)
46. Converts string number to numeric value
number(arg)
month-from-date(current-date())
replace(str1, str2, str3)
//*
47. ________ allow more specific selections within the XPath
//title[@*]
string-length()
month-from-date(date)
Predicates
48. 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
nodes
string-length()
abs(num)
criteria
49. Selects all elements in the document
sequence
arrays and functions
usable document
//*
50. Element nodes may have zero - one - or more _________
ceiling(num)
string(arg)
child nodes
processing-instruction
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