Data Structures and Algorithms Quiz # 5

Instructions
Quiz: Data Structures and Algorithms Quiz # 5
Total Questions: 30 MCQs
Time: 30 Minutes

Note

  • Do not refresh the page while taking the test.
  • Results along with correct answers will be shown at the end of the test.
Data Structures And Algorithms Quiz # 5
Question 1 of 30
00:00
  • The operation for removing an entry from a stack is traditionally called _______.

  • Which queue allows insertion and deletion at both ends?

  • What kind of initialization needs to be done for a chained hash table?

  • The number of nodes in the largest maximal independent set of the complete bipartite graph K(4,2) is_____ .

  • Which of the following techniques is used to resolve collision in hashing?

  • You have implemented a queue with a linked list keeping track of a front pointer and a rear pointer. Which of these pointers will you change during an insertion into a NONEMPTY queue?

  • Which of the following operations is performed more efficiently by the doubly linked list than by the linear linked list?

  • Four characters are placed in a queue in the following order: D, C, B, and A. If they are removed one at a time, what will be the order of their removal?

  • What is the meaning of the statement: "Entries in a stack are 'ordered'"?

  • A given connected graph G is a Euler graph if and only if all vertices of G are of ______.

  • Which of the following data structures has a balanced condition?

  • A matrix is called sparse when______

  • Which of the following operations in the simple linked list will modify the beginning of the linked list?

  • You have implemented a queue with a circular array keeping track of the first item, the last item, and the count (the number of items in the array). Suppose the address of the first is zero, and that of the last is CAPACITY-1, what can you say about the count?

  • In the linked representation of a sparse matrix, the head node for a column list stores_____

  • The hashing function which dynamically adapts to changes in the table being accessed is called ________.

  • What will happen if in data structure a pop operation on the stack causes the stack pointer to move past the origin of the stack?

  • If h is the depth of the tree, which formula will be used to find the maximum number of nodes n in a perfect binary tree?

  • What is the minimum number of edges and vertices possible in a non- planar graph?

  • Which of the following is the worst-case scenario for operations on heaps?

  • Which of these are standard operations of Stack Data Structure?

  • Suppose we have a circular array implementation of a queue, with ten items in the queue stored at data[2] through data[11]. The CAPACITY is 42. Where does the enqueue member function place the new entry in the array?

  • A binary search tree is generated by inserting the following integers in the order: 50,15,62,5,20,58,91,3,8,37,60,24. How many nodes are in the left and right subtrees, respectively?

  • What is the worst-case scenario for the binary search for finding a single item in an sorted array?

  • What is the maximum depth of recursive calls a function may make?

  • Consider this binary search tree.

    This question is based upon the figure shown below

    Consider this binary search tree.

    Which will be the new root if you remove the root and replace it with something from the left subtree?

  • You have implemented a queue with a linked list keeping track of a front pointer and a rear pointer. Which of these pointers will you change during an insertion in the middle of a NONEMPTY queue?

  • The number of distinct simple graphs with up to three nodes is _______.

  • Which formula is the best approximation for the depth of a heap with n nodes?

  • What do we call a binary tree in which all the levels, except possibly the last level, have the maximum number of nodes, and in which all the nodes at the last level appear as far left as possible?