Data Structures

This test covers topics related to data structures.

14 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following data structures is usually used in compiler implementations to look up identifiers?

  1. B-tree
  2. Hash table
  3. Dequeue
  4. Set
  5. Bitmap
Question 2 Multiple Choice (Single Answer)

Which of the following is a linked abstract data structure, composed of nodes?

  1. Circular buffer
  2. Bitmap
  3. Graph
  4. Tagged union
  5. Container
Question 3 Multiple Choice (Single Answer)

Which of the following data structures is not an abstract data type?

  1. Union
  2. Map
  3. Set
  4. Container
  5. Priority queue
Question 4 Multiple Choice (Single Answer)

Which of the following statements regarding a priority queue is false?

  1. A priority queue is an abstract data type.
  2. A priority queue is a heap.
  3. Priority queuing can be used to manage bandwidth on a transmission line.
  4. A priority queue can be used for implementing Huffman coding.
  5. A priority queue can be used for implementing A* search algorithm.
Question 5 Multiple Choice (Single Answer)

Which of the following data structures follows this rule?
undefined

  1. Tree
  2. Stack
  3. Queue
  4. String
  5. Set
Question 6 Multiple Choice (Single Answer)

Which of the following is not an application of the tree data structure?

  1. Manipulation of arithmetic expression
  2. Symbol table construction
  3. Syntax analysis
  4. Hierarchical network
  5. Recursion
Question 7 Multiple Choice (Single Answer)

The network data model majorly uses which of the following data structures?

  1. Set
  2. Linked list
  3. Arrays
  4. Graph
  5. Tree
Question 8 Multiple Choice (Single Answer)

The technique called 'Quadratic Probing' is generally used with which of the following data structures?

  1. Linked list
  2. B-tree
  3. Hash table
  4. Heap
  5. Queue
Question 9 Multiple Choice (Single Answer)

Which of the following data structures is the most efficient for storing data for efficient retrieval in a block-oriented storage context?

  1. Simple linked list
  2. BST
  3. B+ tree
  4. Hash table
  5. AVL tree
Question 10 Multiple Choice (Single Answer)

Which of the following algorithms may use heap as internal traversal data structures?

  1. Bucket sort
  2. Prim's minimal spanning tree
  3. Bubble sort
  4. Shell sort
  5. Comb sort
Question 11 Multiple Choice (Single Answer)

The Breadth First Search algorithm uses which of the following data structures to store intermediate results as it traverses the graph?

  1. Tree
  2. Linked list
  3. Stack
  4. Queue
  5. Set
Question 12 Multiple Choice (Single Answer)

Which of the following statements regarding tree data structure is false?

  1. A tree is a widely used abstract data type (ADT).
  2. A tree can be defined recursively.
  3. A walk in which the children are traversed before their respective parents are traversed is called a pre-order walk.
  4. An external node is any node that does not have child nodes.
  5. A tree is a connected acyclic graph.
Question 13 Multiple Choice (Single Answer)

Which of the following statements regarding arrays is incorrect?

  1. Arrays can be used to determine control flow in programs.
  2. Arrays are also used to implement other data structures.
  3. Two-dimensional arrays are also called matrices.
  4. The element indices of arrays cannot be computed at run time.
  5. An index maps the array value to a stored object.
Question 14 Multiple Choice (Single Answer)

Which of the following statements regarding the stack data structure is false?

  1. Solving the puzzle called Tower of Hanoi implements stacks.
  2. A stack is a restricted data structure.
  3. A stack may be implemented to have a bounded capacity.
  4. A stack is a specific data structure.
  5. Backtracking is an important application of stacks.