Test your basic knowledge |

Data Structures

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. The process of collecting garbage for recycling






2. An order of processing a tree in which the parent node is processed before its children






3. Describes a function that makes a new data structure but does not modify its arguments






4. Any container with linear ordering






5. A list of pairs - where each pair has a key and a value associated with the key






6. A case where tow data structures share some elements






7. The amount of space on the runtime stack required for execution of a program






8. In a search tree - the number of children of a given node. often - the branching factors of individual nodes will vary - so an average value may be used






9. First-child/next-sibling






10. In a tree - the union of a node's parent and the parent's ancestors






11. Describes a data structure or device in which all accesses have the same cost - O(1)






12. Two variables that reference the same object






13. The number of links between the root of a tree and the leaves






14. A stack containing a stack frame of variable value for each active invocation of procedure






15. A node of a tree that has children






16. A process that removes unwanted elements from a collection






17. A contiguous block of memory containing elements of the same type - accessed by numeric index






18. A data structure representing a sequence of items - which are removed in the same order as they were inserted.






19. A runtime error that occurs when an operation such as method call is attempted on a null pointer






20. A queue implemented within an array - where the first elements of the array logically follows the last elements






21. In a search tree - a program that changes a state into a child state e.g a move in a game






22. A condition of the input data where the data will be handled by call(s) to the same program






23. Composed of a collection of data values; implemented with a data structure






24. To convert from a pointer to the data that is pointed to






25. A description of the state of a process such as a board game






26. Describes a data structure that cannot be changed once it has been created - such as Integer or String in Java






27. A given collection of values along with a collection of operations for use on those values






28. A linked list in which the last element points back to the first element






29. A data structure that implements a complete binary tree within an array - such that every parent node has a value that is less than the value of either of its children






30. A collection of values






31. To modify the order of a set of elements so that a desired ordering holds between them - e.g. alphabetic order






32. In object oriented programming - a description of a set of similar objects






33. A description of the kinds of objects that exist in a computer program - e.g a Java class hierarchy






34. A simple case that can be solved easily - without recursion






35. To hide similar items with the same name






36. An extra record at the start or end of a data structure such as a linked list - to simplify processing






37. A data structure that can be identified at runtime as being a member of a class






38. binary tree that is ordered such that each node has contents - and all of its left descendants are less than the contents - an all of its right descendants are greater than the contents






39. A case where a program calls itself






40. A formal description of a language in terms of vocabulary and rules for writing phrases and sentences






41. A section of the runtime stack holding the values of all variables for one invocation






42. Use of a function or method without knowing how it's accomplished






43. To combine two ordered linear structures into one






44. A problem that is so hard that it cannot be solved unless the problem is small






45. A function whose value either does not involve a recursive call - or is exactly the value of a recursive call






46. A pointer to data






47. An ordering that can be guaranteed to terminate - e.g. starting at a positive integer and counting down






48. Give two sets - the set difference is the set of elements of the first set that are not members of the second set






49. A pointer to the next element in a linked list






50. Composed of individually named data fields