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