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. Converts string to upper case
contains(str1, str2)
transforming
upper-case(str)
standard function
2. Returns next highest integer
usable document
//title | //price
ceiling(num)
//book/title | //book/price
3. XPath is a for defining parts of an XML document
.
XSLT
syntax
round(num)
4. Returns false if true - true if false (negative logic)
not(arg)
criteria
syntax
books/book[price > 35.00]
5. Selects last book element from the children of books element
books/book[last()]
lower-case(str)
substring(str1, start, len)
current-time()
6. Returns next lowest integer
transforming
//book/title | //book/price
//title[@*]
floor(num)
7. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
floor(num)
instinct-values(item1, item2, item3...))
transforming
transformation
8. Selects all title AND price elements in the entire document
//title | //price
abs(num)
string-length()
upper-case(str)
9. Returns complete date/time
replace(str1, str2, str3)
month-from-date(date)
current-dateTime()
normalize-space(str)
10. Returns everything after the first occurrence of str2
//book[@isbn]
substring-after(str1, str2)
arrays and functions
month-from-date(date)
11. Returns everything before the first occurrence of str2
parent
instinct-values(item1, item2, item3...))
substring-before(str1, str2)
starts-with(str1, str2)
12. selects first book element from the children of books element
instinct-values(item1, item2, item3...))
/bookstore/book/title | //price
compare(arg1, arg2)
books/book[1]
13. Converts value to a string
//*
insert-before((item1, item2, item3...), positionX, itemX)
//title[@*]
string(arg)
14. Converts string number to numeric value
//*
replace(str1, str2, str3)
number(arg)
nodes
15. Selects all title elements which have any attribute
books/book[last()]
processing-instruction
starts-with(str1, str2)
//title[@*]
16. Selects parent of current node
.
..
Predicates
trees of nodes
17. Selects all title elements of the book element AND all price elements in the entire document
//*
path expressions
/bookstore/book/title | //price
//book[@isbn]
18. XML documents are treated as _________- so the root of the tree is called the document node or root node
replace(str1, str2, str3)
hours-from-time(time)
upper-case(str)
trees of nodes
19. XPath is a major element in _______
criteria
month-from-date(date)
minutes-from-time(time)
XSLT
20. Returns logically rounded integer
child nodes
concat(str1, str2, str3...)
round(num)
string-length(str)
21. Returns length of current node string
string-length()
true() and false()
sequence
transforming
22. Returns minute value from time passed
minutes-from-time(time)
replace(str1, str2, str3)
trees of nodes
compare(arg1, arg2)
23. In str1, replaces all occurrences of str2 with str3
starts-with(str1, str2)
replace(str1, str2, str3)
books/book[position()
string-length(str)
24. Returns true if str1 ends with str2
true() and false()
ends-with(str1, str2)
replace(str1, str2, str3)
attribute node
25. Selects attributes
concat(str1, str2, str3...)
not(arg)
transformation
@
26. Returns hour value from time passed
hours-from-time(time)
normalize-space(str)
attribute node
not(arg)
27. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
syntax
path expressions
matches(str1, str2)
day-from-date(date)
28. Returns absolute value (example abs(-2.5) returns 2.5
processor application
abs(num)
month-from-date(date)
standard function
29. Returns true if str1 contains str2
hours-from-time(time)
year-from-date(current-date())
contains(str1, str2)
Xpath operators
30. 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
31. Returns month value out of date passed
translate(str1, str2, str3)
month-from-date(date)
string-length()
compare(arg1, arg2)
32. Selects from the root node
'/'
33. Returns true if str2 appears anywhere inside str1
sequence
matches(str1, str2)
string(arg)
starts-with(str1, str2)
34. Trims leading and trailing spaces
/bookstore/*
normalize-space(str)
boolean(arg)
day-from-date(date)
35. Returns length of passed string
/bookstore/book/title | //price
string-length(str)
standard function
sequence
36. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
arrays and functions
parent
remove((item1, item2, item3...), position)
substring(str1, start, len)
37. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
current-dateTime()
//title | //price
processing-instruction
ceiling(num)
38. Returns substring from start position to end of string
matches(str1, str2)
replace(str1, str2, str3)
upper-case(str)
substring(str,start)
39. Returns 2008
translate(str1, str2, str3)
year-from-date(current-date())
child nodes
attribute node
40. every element and every attribute have just one _________
parent node
day-from-date(date)
current-time()
instinct-values(item1, item2, item3...))
41. Compares strings, returns 0 if same, -1 if not same
month-from-date(date)
insert-before((item1, item2, item3...), positionX, itemX)
Xpath operators
compare(arg1, arg2)
42. Returns true if str1 starts with str2
substring(str1, start, len)
substring-before(str1, str2)
starts-with(str1, str2)
contains(str1, str2)
43. Predicates work somewhat like _____________
arrays and functions
index-of((item1, item2), item3...), target)
books/book[position()
string-join((str1, str2, str3), separator)
44. Selects all the child nodes of the bookstore element
/bookstore/*
//book/title | //book/price
nodes
year-from-date(date)
45. Concatenates strings together with separator between each string
ends-with(str1, str2)
replace(str1, str2, str3)
index-of((item1, item2), item3...), target)
string-join((str1, str2, str3), separator)
46. Selects all title AND price elements of all book elements
/bookstore/*
insert-before((item1, item2, item3...), positionX, itemX)
year-from-date(date)
//book/title | //book/price
47. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
not(arg)
attribute node
processor application
//book/title | //book/price
48. Returns false or true
string-join((str1, str2, str3), separator)
books/book[position()
Xpath operators
boolean(arg)
49. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
string-join((str1, str2, str3), separator)
sequence
parent
50. Selects first two book elements from the children of books element
'//'
processing-instruction
books/book[position()
path expressions
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