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