Test your basic knowledge |

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. XML documents are treated as _________- so the root of the tree is called the document node or root node






2. Selects from the root node



3. Selects last book element from the children of books element






4. Returns boolean true or boolean false






5. 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






6. every element and every attribute have just one _________






7. Converts string number to numeric value






8. Returns length of passed string






9. Selects all the child nodes of the bookstore element






10. Selects all title AND price elements in the entire document






11. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")






12. Predicates work somewhat like _____________






13. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind






14. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)






15. Use a | to select more than one _____ (means AND)






16. Returns absolute value (example abs(-2.5) returns 2.5






17. Selects all book elements with a child element "price" with values greater than 35






18. Returns true if str1 ends with str2






19. Travels from current node to select nodes that match - wherever they are


20. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets






21. ________ allow more specific selections within the XPath






22. _______ have 3 primary relationships: parent - child - sibling






23. Replaces chars of str2 found in str1 with chars of str3






24. Returns year value out of the date passed






25. Selects all book elements with an attribute isbn=






26. Converts string to lower case






27. Returns true if str2 appears anywhere inside str1






28. Returns everything before the first occurrence of str2






29. Returns n-length substring from start position






30. Selects all title AND price elements of all book elements






31. Returns false or true






32. The XPath division operator not "/" cuz "/" is used in path expressions






33. Selects all elements in the document






34. xpath function categories: numeric - string - boolea - date/time - ________






35. Returns October or 10 ?






36. Returns substring from start position to end of string






37. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)






38. Returns day value from date passed






39. XPath contains a library of _________






40. Returns next lowest integer






41. Compares strings, returns 0 if same, -1 if not same






42. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)






43. Selects all title elements which have any attribute






44. Returns minute value from time passed






45. Selects all title elements of the book element AND all price elements in the entire document






46. Returns true if str1 starts with str2






47. Returns length of current node string






48. Converts value to a string






49. Returns next highest integer






50. Returns logically rounded integer