300+ TOP DATA STRUCTURES and ALGORITHMS Multiple Choice Questions and Answers
300+ TOP DATA STRUCTURES and ALGORITHMS Multiple Choice Questions and Answers
Choice Questions :-
1. Which if the following is/are the levels of
implementation of data structure
A) Abstract level
B) Application level
C) Implementation level
A) AVL tree
B) Red-black tree
C) Lemma tree
A) Abstract level
B) Application level
C) Implementation level
i) It exports a type.
A) True, False
B) False, True
C) True, True
D) False, False
6. …………… is not the component of data structure.
A) Operations
B) Storage Structures
C) Algorithms
D) None of above
A) Data
B) Operations
A) push, pop
B) pop, push
C) insert, delete
D) delete, insert
A) Stack
B) Queue
C) List
A) Stack
B) Queue
C) List
D) Link list
A) Stacks
B) Queues
C) Dequeues
A) Arrays
B) Records
C) Pointers
D) Stacks
13. A ……. is a data structure that organizes data
similar to a line in the supermarket, where the first
one in line is the first one out.
C) Both of them
D) Neither of them
A) Stacks
B) List
C) Strings
D) Trees
A) Graphs
B) Stacks
C) Binary tree
D) Queues
A) Stack
B) queue
C) Tree
D) Array
C) Priority queues
D) Stack
A) Strings
B) Lists
C) Stacks
D) Graph
A) Graph
B) Trees
C) Binary tree
D) Stack
20. To represent hierarchical relationship between
elements, Which data structure is suitable?
A) Dequeue
B) Priority
C) Tree
D) Graph
A) Weakly connected
B) Strongly Connected
C) Tightly Connected
D) Linearly Connected
A) Depth First
B) Breadth First
C) With First
D) Depth Limited
A) (N/2)+1
B) (N+1)/2
C) (N-1)/2
D) (N+2)/2
A) Linear search
B) Binary search
C) Hash Search
A) True, False
B) False, True
C) False, False
D) True, True
A) Insertion Sort
B) Bubble Sort
C) Merge Sort
D) Heap Sort
A) True, True
B) False, True
C) False, False
D) True, False
A) Partite
B) Bipartite
C) Rooted
D) Bisects
A) 0 and 1
B) 0 and -1
C) -1 and 0
D) 1 and 0
32. In a circular queue the value of r will be ..
A) r=r+1
B) r=(r+1)% [QUEUE_SIZE – 1]
C) r=(r+1)% QUEUE_SIZE
D) r=(r-1)% QUEUE_SIZE
A) i-only
B) ii-only
C) Both i and ii
D) None of both
A) Lists
B) Linked Lists
C) Trees
D) Queues
35. What will be the value of top, if there is a size of
stack STACK_SIZE is 5
A) 5
B) 6
C) 4
D) None
A) Insertion
B) Deletion
C) Retrieval
D) Traversal
A) Antinel
B) Sentinel
C) List header
D) List head
A) vertices, edges
B) edges, vertices
C) vertices, paths
A) Network
B) Weighted graph
C) Both A and B
D) None A and B
A) [log2n]-1
B) [logn]+1
C) [log2n]
D) [log2n]+1
A) Ordinary queue
C) Circular queue
D) Priority queue
ii) Nodes that are not root and not leaf are called as internal
nodes.
A) True, True
B) True, False
C) False, True
D) False, False
44. Any node is the path from the root to the node
is called
A) Successor node
B) Ancestor node
C) Internal node
B) True, False
C) False, True
D) False, False
B) only a and b
A) Function calls
A) Directed tree
B) Undirected tree
C) Dis-joint tree
A) Unary tree
B) Binary tree
C) Trinary tree
D) Both B and C
A) True, False
B) False, True
C) True, True
D) False, False
A. Linear arrays
B. Linked lists
C. Queue
D. Stack
A. Arrays
B. Records
C. Pointers
D. Lists
A. Underflow
B. overflow
C. houseful
D. saturated
A. linked lists
B. stacks
C. queues
D. dequeue
B. destruction
C. selection
A. storage structure
B. data structure
C. data relationship
D. data operation
A. create
B. destroy
C. update
A. pointers
B. linked allocation
C. stack
D. queue
B. for the size of the structure and the data in the structure
are constantly changing
A) Strings
B) Lists
C) Stacks
D) Tree
62. Which of the following data structure is linear
type?
A) Array
B) Tree
C) Graphs
D) Hierarchy
A) Data structure
B) Data arrangement
C) Data configuration
D) Data formation
A) Multidimensional array
B) Linear array
B) One-dimensional array
C) Vertical array
D) Horizontal array
B) For the size of the structure and the data in the structure
are constantly changing
A) Linear arrays
B) Linked lists
C) Graphs
D) Trees
B) String
C) Linear array
D) Queue
A) Before deletion
D) After deletion
A) Strings
B) Lists
C) Stacks
D) Tree
A) Array
B) Tree
C) Graphs
D) Hierarchy
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
A) Multidimensional array
B) Linear array
B) One-dimensional array
C) Vertical array
D) Horizontal array
B) For the size of the structure and the data in the structure
are constantly changing
C) For both of above situation
A) Linear arrays
B) Linked lists
C) Graphs
D) Trees
A) Stack
B) String
C) Linear array
D) Queue
D) After deletion
B) for the size of the structure and the data in the structure
are constantly changing
A) Arrays
B) Linked lists
C) Time consuming
D) Requires more memory space
A) circular queue
B) random of queue
C) priority
D) dequeue
D) any position
B) O(n2)
C) O(n log n)
D) O(log n)
A) finding factorial
B) tower of Hanoi
A) queue
B) stack
C) tree
D) graph
A) linear
B) non linear
C) linked list