201 Data Structures Quiz Questions
201 Data Structures Quiz Questions
Instructions: answer the following questions by encircling the single best answer from options (A-D)
Q1 A linear list of elements in which deletion can be done from one end (front) and insertion can take
place only at the other end (rear) is known as a
A) queue
B) stack
C) tree
D) link list
Q2 The numbers 6, 8, 4, 3, and I are inserted into a data structure in that order. An item is deleted using
only a basic data structure operation. If the deleted item is a 1, the data structure cannot be a....?
A) queue
B) stack
C) tree
D) hash table
A) by this way computer can keep track only the address of the first element and the Addresses of other
element can be calculated
B) the architecture of the computer memory does not allow arrays to store other than serially
B) for the size of the structure and the data in the structure are constantly changing
Q5 Which of the following will you use to overcome the limitations of an array?
A)linked list
B) queue
C) stack
D) binary tree
A) true
B) false
Q7 Space in linked list is created i) created when needed ii) destroyed when not need ili) use only when
available
A) I only
B) I and ii only
Q8 A queue is a,
(A) FIFO (First In First Out) list
C) Ordered array
D) Linear tree
A) tables arrays
B) matrix arrays
Q10 A linear list of elements in which deletion can be done from one end (front) and insertion can take
place only at the other end (rear) is known as a
A) queue
D. stack
C. tree
D. linked list
A) Traverse the left subtree, traverse the right subtree, visit the root
B) Visit the root, Traverse the left subtree, traverse the right subtree
C) Traverse the right subtree, visit the root, Traverse the left subtree,
D) Traverse the left subtree, visit the root, traverse the right subtree
B) In order traversal
Q13 If the nodes of the tree in figure 1 above are visited in the order: 4 2 5 1 6 3 7, it represents.
B) In order traversal
Q14 if the nodes of the tree in figure 1 above are visited in the order: 4 5 2 6 7 3 1, it represents...
B) In order traversal
Q16 What type of tree does figure 1 represents if the leaf nades 6 and 7 are missing?
Q17 In figure 1, if the nodes 6 and 7 are children, how would you refer to node 3?
A) brothers
B) sisters
C) parent
D) sibling
D) None of these
Figure 2 represents a tree, use it to answer the following question
A) J
B) K
C) A
D) E
A) 2
B) 4
C) 3
D) 1
A) B, C and D only
B) E. J. K. H and I only
C) J and K only
D) E and only
Q22 If the root node of figure 2 is at level zero, what is the level of the set of nodes J and K
A) 1
B) 2
C) 3
D) 4
A) 2
B) 3
C) 1
D) 4
A) True
B) False
A) 1
B) 2
C) 3
D) 0
A) 1
B) 2
C) 3
D) 0
Figure 3:
Q28 The nodes in figure 3 are traversed pre order and the result is kept in stack, What is the order of the
elements in the stack?
A) 1.4.2.3.6.7.5
B) 1.2.4.5.3,6,7
C) 4.2.5,1.6.3.7
D) 4,5,7,6,7,3.1
Q29 The nodes in figure 3 are traversed pre order and the result is kept in a stack What is the order of
the elements left in the stack if four (4) elements are pop out?
A) 1,4,2
B) 1,2,4
C) 4,2,5
D) 4,5,2
Q30 The elements in figure 3 are traversed post order, and the results keep in a stack in that order.
What would happen if you pop 8 times?
A) underflow
B) overflow