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