Data Structure (NCO)

This test contains basics of data structures.

31 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is not a type of linear data structure?

  1. Array
  2. Graph
  3. Linked List
  4. Stack
  5. Queue
Question 2 Multiple Choice (Single Answer)

A set of values (carrier set) and operations on those values is called a/an

  1. data type
  2. abstract data type
  3. data set
  4. data structure
  5. identifier
Question 3 Multiple Choice (Single Answer)

Which of the following statements is not true about a stack data structure?

  1. In a stack, data is stored from only one side. It is called 'top of stack'.
  2. At a time only one item can be inserted or deleted in a stack.
  3. In a stack, after insertion operation, the value of top is decremented.
  4. Stack is a linear data structure.
  5. Stack is called LIFO [last in first out].
Question 4 Multiple Choice (Single Answer)

What is the name of a deletion operation in a stack?

  1. Push operation
  2. Pop operation
  3. Empty operation
  4. Dequeue operation
  5. Enqueue operation
Question 5 Multiple Choice (Single Answer)

Which of the following is not true about a queue data structure?

  1. In a queue, data is inserted from the front end of the queue.
  2. In a queue after insertion and deletion operations, value of front end and rear end is incremented, respectively.
  3. Queue is called FIFO [First in first out].
  4. At a time, only one item can be inserted or deleted in a queue.
  5. Queue is a linear data structure.
Question 6 Multiple Choice (Single Answer)

An arrangement of data in memory locations to represent values of carrier set of abstract data type is called a/an

  1. assertion
  2. container
  3. structure
  4. data structure
  5. array
Question 7 Multiple Choice (Single Answer)

Accessing each record/node exactly once, so that certain items in the record may be processed is called a/an

  1. insertion operation
  2. deletion operation
  3. search operation
  4. traversing operation
  5. sorting operation
Question 8 Multiple Choice (Single Answer)

Reverse polish notation form is also called

  1. infix form
  2. prefix form
  3. postfix form
  4. suffix form
  5. polish notation
Question 9 Multiple Choice (Single Answer)

A data structure in which elements may be added to or deleted from the front or the rear is called a

  1. queue
  2. dequeue
  3. priority queue
  4. circular queue
  5. stack
Question 10 Multiple Choice (Single Answer)

Which of the following statements is not correct about binary search tree?

  1. Values of in the left subtree are less than root.
  2. Values of in the right subtree are greater than or equal to the root.
  3. Each subtree is itself a binary search tree.
  4. They do not have a recursively defined data structure.
  5. The nodes at the lowest levels of the tree are known as leaves.
Question 11 Multiple Choice (Single Answer)

In an empty stack, perform the following operations: push (A), push (B), push (C), pop, pop, push (D), push (E), pop. What is the value of the top of the stack?

  1. D
  2. A
  3. B
  4. C
  5. E
Question 12 Multiple Choice (Single Answer)

Which sorting algorithm is pivot used for?

  1. Insertion sort
  2. Quick sort
  3. Selection sort
  4. Bubble sort
  5. Binary search
Question 13 Multiple Choice (Single Answer)

In any type of data structure, overflow condition occurs when

  1. any element is inserted into the data structure
  2. any element is deleted from the data structure
  3. a data structure is empty and you are trying to delete any element from it
  4. a data structure is full and you are trying to insert any element into it
  5. a data structure is half empty
Question 14 Multiple Choice (Single Answer)

Which of the following is a correct prefix notation of given expression "A + B * C"?

  1. +AB+C
  2. +A*BC
  3. ABC*+
  4. +AB*C
  5. +A+BC
Question 15 Multiple Choice (Single Answer)

What will be the value of the postfix expression 10, 5, 1, +, +, 4, /?

  1. 4
  2. 20
  3. 64
  4. 12
  5. 1
Question 16 Multiple Choice (Single Answer)

The maximum number of child nodes in a B-tree is

  1. 2
  2. 0
  3. 1
  4. m
  5. 4
Question 17 Multiple Choice (Single Answer)

A type of Linked list where the pointer in the last node points back to the first node is called a

  1. singly linked list
  2. circular singly linked list
  3. doubly linked list
  4. circular doubly linked list
  5. header linked list
Question 18 Multiple Choice (Single Answer)

Find out the postorder traversal of the binary tree if the preorder traversal is I J K L M N and inorder traversal is K J I M L N.

  1. K J I N M L
  2. K J M N L I
  3. M N L K J I
  4. N M K L J I
  5. N M L K I J
Question 19 Multiple Choice (Single Answer)

Find out the preorder traversal of the binary tree if the postorder traversal is S T Q U R P and inorder traversal is S Q T P R U.

  1. P Q S T R U
  2. P Q R S T U
  3. P Q S R U T
  4. Q S T P R U
  5. P Q S R T U
Question 20 Multiple Choice (Single Answer)

Which of the following traversal is used for Graph?

  1. In-order Traversal
  2. Reverse Polish Notation
  3. Pre-order Traversal
  4. Level order traversal
  5. Post-order Traversal
Question 21 Multiple Choice (Single Answer)

In which method of hashing function, a key is broken into several parts and each part has the same length as that of the required address except the last part?

  1. Division method
  2. Folding method
  3. Midsquare method
  4. Multiplicative method
  5. Digit analysis
Question 22 Multiple Choice (Single Answer)

What is equivalent reverse polish notation of the given infix notation "P * Q ^ R ^ S + T"?

  1. P Q R S ^ ^ * T +
  2. P Q R S ^ ^ * + T
  3. P Q R ^ S ^ * T +
  4. P Q * R ^ S ^ T +
  5. P Q * R ^ S T + ^
Question 23 Multiple Choice (Single Answer)

Which of the following is not correct about a B-tree?

  1. In a B-tree, each non-leaf node has a maximum of M children keys.
  2. Each node has one fewer key than the number of children with a maximum of M-1 keys.
  3. In a B-tree, each non-leaf node has a minimum of M/2 keys.
  4. In a B-tree, all leaves are not on the same level.
  5. It is also called a balanced m-way search tree.
Question 24 Multiple Choice (Single Answer)

In a tree, a node without parent is called a/an

  1. root node
  2. leaf node
  3. internal node
  4. pendent node
  5. child node
Question 25 Multiple Choice (Single Answer)

In delete operation of a binary tree, the next inorder successor node is replaced when a node has

  1. 0 child or leaf node
  2. 3 child nodes
  3. 1 child node
  4. 2 child node
  5. m child nodes
Question 26 Multiple Choice (Single Answer)

In an expression binary tree, the internal node stores

  1. operands
  2. operators
  3. alphabets
  4. special symbols
  5. functions
Question 27 Multiple Choice (Single Answer)

Collection of trees is known as ________?

  1. Group of trees
  2. Super-trees
  3. General trees
  4. Forest
  5. Sub-trees
Question 28 Multiple Choice (Single Answer)

In a tree, the number of direct children of any node is called

  1. branching factor
  2. height of tree
  3. depth of a node
  4. degree of node
  5. path length
Question 29 Multiple Choice (Single Answer)

Minimum spanning tree is the application of which data structure?

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

Which of the following is incorrect about a full binary tree?

  1. In a non-empty full binary tree, T has I internal nodes, then the total number of nodes is N = 2I + 1 and number of leaves is L = I + 1.
  2. If full binary tree T has a total of N nodes, the number of internal nodes is I = (N + 1)/2.
  3. In a non-empty full binary tree, T has I internal nodes, then the number of leaves is L = I + 1.
  4. If T has L leaves, the total number of nodes is N = 2L – 1.
  5. If T has L leaves, the number of internal nodes is I = L – 1.
Question 31 Multiple Choice (Single Answer)

A type of binary tree in which all levels except possibly the last are full, and the last level has all its nodes to the left side is called a

  1. full binary tree
  2. complete binary tree
  3. skewed binary tree
  4. binary search tree
  5. B-tree