Data Structure: Multiple Choice Questions & Answers
Data Structure: Multiple Choice Questions & Answers
Data Structure: Multiple Choice Questions & Answers
Ans:C
44. Any node is the path from the root to the node is called
A) Successor node
B) Ancestor node
C) Internal node
D) None of the above
Ans:B
Ans:D
48. A …………… is an acyclic digraph, which has only one node with
indegree 0, and other nodes have in-degree 1.
A) Directed tree
B) Undirected tree
C) Dis-joint tree
D) Direction oriented tree
Ans:A
49. …………………. Is a directed tree in which outdegree of each node
is less than or equal to two.
A) Unary tree
B) Binary tree
C) Trinary tree
D) Both B and C
Ans:B
50. State true or false.
i) An empty tree is also a binary tree.
ii) In strictly binary tree, the out-degree of every node is either o or 2.
A) True, False
B) False, True
C) True, True
D) False, False
Ans:C
51. Which of the following data structures are indexed structures?
A. Linear arrays
B. Linked lists
C. Queue
D. Stack
Ans:A
52. Which of the following data structure store the homogeneous data
elements?
A. Arrays
B. Records
C. Pointers
D. Lists
Ans:B
53. When new data are to be inserted into a data structure, but there is
not available space; this situation is usually called ….
A. Underflow
B. overflow
C. houseful
D. saturated
Ans:B
54. A data structure where elements can be added or removed at either
end but not in the middle is called …
A. linked lists
B. stacks
C. queues
D. dequeue
Ans:D
55. Operations on a data structure may be …..
A. creation
B. destruction
C. selection
D. all of the above
Ans:D
56. The way in which the data item or items are logically related defines
…..
A. storage structure
B. data structure
C. data relationship
D. data operation
Ans:B
57. Which of the following are the operations applicable an primitive
data structures?
A. create
B. destroy
C. update
D. all of the above
Ans:D
58. The use of pointers to refer elements of a data structure in which
elements are logically adjacent is ….
A. pointers
B. linked allocation
C. stack
D. queue
Ans:B
59. Arrays are best data structures
A. for relatively permanent collections of data
B. for the size of the structure and the data in the structure are constantly
changing
C. for both of above situation
D. for non of above situation
Ans:C
60. Which of the following statement is false?
A. Arrays are dense lists and static data structure.
B. Data elements in linked list need not be stored in adjacent space in
memory
C. Pointers store the next data element of a list
D. Linked lists are collection of the nodes that contain information part
and next pointer.
Ans:C
61. Which of the following data structure is non-linear type?
A) Strings
B) Lists
C) Stacks
D) Tree
Ans:D
62. Which of the following data structure is linear type?
A) Array
B) Tree
C) Graphs
D) Hierarchy
Ans:A
63. The logical or mathematical model of a particular organization of
data is called a ………
A) Data structure
B) Data arrangement
C) Data configuration
D) Data formation
Ans:A
64. The simplest type of data structure is ………………
A) Multidimensional array
B) Linear array
C) Two dimensional array
D) Three dimensional array
Ans:B
65. Linear arrays are also called ……………….
A) Straight line array
B) One-dimensional array
C) Vertical array
D) Horizontal array
Ans:B
66. Arrays are best data structures …………
A) For relatively permanent collections of data
B) For the size of the structure and the data in the structure are
constantly changing
C) For both of above situation
D) For none of the above
Ans:A
67. Which of the following data structures are indexed structures?
A) Linear arrays
B) Linked lists
C) Graphs
D) Trees
Ans:A
68. Each node in a linked list has two pairs of ………….. and
……………….
A) Link field and information field
B) Link field and avail field
C) Avail field and information field
D) Address field and link field
Ans:A
69. A …………………… does not keep track of address of every
element in the list.
A) Stack
B) String
C) Linear array
D) Queue
Ans:C
70. When does top value of the stack changes?
A) Before deletion
B) While checking underflow
C) At the time of deletion
D) After deletion
Ans:D
71. Which of the following data structure is non-linear type?
A) Strings
B) Lists
C) Stacks
D) Tree
Ans:D
72. Which of the following data structure is linear type?
A) Array
B) Tree
C) Graphs
D) Hierarchy
Ans:A
73. The logical or mathematical model of a particular organization of
data is called a ………
A) Data structure
B) Data arrangement
C) Data configuration
D) Data formation
Ans:A
74. The simplest type of data structure is ………………
A) Multidimensional array
B) Linear array
C) Two dimensional array
D) Three dimensional array
Ans:B
75. Linear arrays are also called ……………….
A) Straight line array
B) One-dimensional array
C) Vertical array
D) Horizontal array
Ans:B
76. Arrays are best data structures …………
A) For relatively permanent collections of data.
B) For the size of the structure and the data in the structure are
constantly changing
C) For both of above situation
D) For none of the above
Ans:A
77. Which of the following data structures are indexed structures?
A) Linear arrays
B) Linked lists
C) Graphs
D) Trees
Ans:A
78. Each node in a linked list has two pairs of ………….. and
……………….
A) Link field and information field
B) Link field and avail field
C) Avail field and information field
D) Address field and link field
Ans:A
79. A …………………… does not keep track of address of every
element in the list.
A) Stack
B) String
C) Linear array
D) Queue
Ans:C
80. When does top value of the stack changes?
A) Before deletion
B) While checking underflow
C) At the time of deletion
D) After deletion
Ans:D
91. Arrays are best data structures
A) for relatively permanent collections of data
B) for the size of the structure and the data in the structure are constantly
changing
C) for both of above situation
D) for none of above situation
Ans:A
92. Which of the following data structure is not linear data structure?
A) Arrays
B) Linked lists
C) Both of the above
D) None of the above
Ans:D
93. The disadvantage in using a circular linked list is
…………………….
A) It is possible to get into infinite loop.
B) Last node points to first node.
C) Time consuming
D) Requires more memory space
Ans:A
94. A linear list in which each node has pointers to point to the
predecessor and successors nodes is called as ..
A) Singly Linked List
B) Circular Linked List
C) Doubly Linked List
D) Linear Linked List
Ans:C
95. A ……………….. is a linear list in which insertions and deletions
are made to from either end of the structure.
A) circular queue
B) random of queue
C) priority
D) dequeue
Ans: D
96. In a priority queue, insertion and deletion takes place at
………………
A) front, rear end
B) only at rear end
C) only at front end
D) any position
Ans: D
97. The time complexity of quick sort is …………..
A) O(n)
B) O(n2)
C) O(n log n)
D) O(log n)
Ans: C.
98. Which of the following is an application of stack?
A) finding factorial
B) tower of Hanoi
C) infix to postfix conversion
D) all of the above
Ans: B.
99. The data structure which is one ended is ………………
A) queue
B) stack
C) tree
D) graph
Ans:B.
100. A list which displays the relationship of adjacency between
elements is said to be
A) linear
B) non linear
C) linked list
D) trees
Ans: A.