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. Predicates work somewhat like _____________
ceiling(num)
books/book[position()
syntax
arrays and functions
2. Returns hour value from time passed
hours-from-time(time)
transformation
nodes
translate(str1, str2, str3)
3. 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
4. Returns today's date
current-date()
ceiling(num)
current-time()
//book/title | //book/price
5. Returns true if str2 appears anywhere inside str1
round(num)
parent
true() and false()
matches(str1, str2)
6. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
transforming
timezone-from-time(time)
parent node
7. Returns second value from time passed
seconds-from-time(time)
path
books/book[price > 35.00]
current-time()
8. The XPath division operator not "/" cuz "/" is used in path expressions
//title | //price
round(num)
div
books/book[1]
9. Returns time right now
/bookstore/book/title | //price
current-time()
not(arg)
Predicates
10. Returns false or true
//title | //price
'/'
boolean(arg)
standard function
11. Converts value to a string
string-length(str)
not(arg)
string(arg)
current-time()
12. Use a | to select more than one _____ (means AND)
arrays and functions
attribute node
path
string-join((str1, str2, str3), separator)
13. Compares strings, returns 0 if same, -1 if not same
Predicates
day-from-date(date)
..
compare(arg1, arg2)
14. Element nodes may have zero - one - or more _________
'//'
child nodes
substring-before(str1, str2)
//title[@*]
15. Returns year value out of the date passed
year-from-date(date)
processor application
//title | //price
arrays and functions
16. Returns substring from start position to end of string
string(arg)
Predicates
substring(str,start)
div
17. Returns length of passed string
//title[@*]
seconds-from-time(time)
normalize-space(str)
string-length(str)
18. Sibling nodes all have the same ______
normalize-space(str)
replace(str1, str2, str3)
parent
string-length(str)
19. Returns false if true - true if false (negative logic)
not(arg)
current-date()
arrays and functions
upper-case(str)
20. Returns month value out of date passed
month-from-date(date)
normalize-space(str)
XSLT
parent
21. Returns complete date/time
standard function
parent node
'/'
current-dateTime()
22. Returns true if str1 contains str2
arrays and functions
month-from-date(date)
contains(str1, str2)
@
23. Returns absolute value (example abs(-2.5) returns 2.5
seconds-from-time(time)
abs(num)
string-length(str)
floor(num)
24. Selects first two book elements from the children of books element
lower-case(str)
nodes
books/book[position()
ends-with(str1, str2)
25. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
string(arg)
path expressions
insert-before((item1, item2, item3...), positionX, itemX)
books/book[last()]
26. Selects all book elements with an attribute isbn=
current-date()
//book[@isbn]
trees of nodes
syntax
27. Converts string to upper case
processing-instruction
upper-case(str)
year-from-date(date)
ceiling(num)
28. Selects all title elements which have any attribute
//title[@*]
starts-with(str1, str2)
ends-with(str1, str2)
matches(str1, str2)
29. XPath is a major element in _______
XSLT
true() and false()
transforming
string-length(str)
30. Returns everything before the first occurrence of str2
arrays and functions
current-dateTime()
substring-before(str1, str2)
processor application
31. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
substring-after(str1, str2)
month-from-date(date)
Xpath operators
arrays and functions
32. Converts string to lower case
current-dateTime()
lower-case(str)
abs(num)
string-join((str1, str2, str3), separator)
33. Trims leading and trailing spaces
concat(str1, str2, str3...)
//title | //price
Predicates
normalize-space(str)
34. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
path expressions
index-of((item1, item2), item3...), target)
processing-instruction
//title[@*]
35. Returns everything after the first occurrence of str2
substring-after(str1, str2)
floor(num)
'/'
books/book[price > 35.00]
36. XPath is a for defining parts of an XML document
instinct-values(item1, item2, item3...))
syntax
ceiling(num)
@
37. Returns October or 10 ?
month-from-date(current-date())
timezone-from-time(time)
Predicates
arrays and functions
38. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
index-of((item1, item2), item3...), target)
contains(str1, str2)
arrays and functions
39. Returns day value from date passed
day-from-date(date)
substring-after(str1, str2)
contains(str1, str2)
normalize-space(str)
40. Selects all elements in the document
.
ends-with(str1, str2)
day-from-date(date)
//*
41. Selects from the root node
'/'
42. Returns timezone value from time passed
path expressions
minutes-from-time(time)
timezone-from-time(time)
parent
43. Returns true if str1 starts with str2
path
//*
starts-with(str1, str2)
string-length(str)
44. Selects all title elements of the book element AND all price elements in the entire document
current-dateTime()
path
//book/title | //book/price
/bookstore/book/title | //price
45. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
'//'
usable document
path expressions
string-length()
46. The process of taking raw XML - adding XSL - and outputting a document file of some type
substring(str1, start, len)
..
transformation
arrays and functions
47. Returns length of current node string
/bookstore/book/title | //price
string-length()
div
month-from-date(current-date())
48. Selects current node
//*
'//'
books/book[last()]
.
49. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
transforming
upper-case(str)
hours-from-time(time)
XSLT
50. Returns minute value from time passed
compare(arg1, arg2)
minutes-from-time(time)
remove((item1, item2, item3...), position)
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