Data Structure MCQs
Data Structure MCQs
Answers
1.
2.
3.
4.
5.
6.
7.
8.
9.
A) Stack
B) Single ended queue
D) The right subtree can be empty
C) False, True
B) Ancestor node
B) True, False
D) None of the above
D) All of the above
A) Directed tree
B) Binary tree
C) True, True
Related Posts
B) Strongly Connected
A) Depth First
B) True, True, False
C) a-iii, b-i, c-ii
B) (N+1)/2
A) Linear search
D) True, True
C) Merge Sort
A) True, True
B) Bipartite
B) 0 and -1
C) r=(r+1)% QUEUE_SIZE
C) Both i and ii
B) Linked Lists
C) 4
D) Traversal
B) Sentinel
A) vertices, edges
C) Both A and B
D) [log2n]+1
Related Posts
Related Posts
Set-2
1) To insert a new node in linked list free node will be available in........
A. Available list
B. Avail list
C. Free node list
D. Memory space list
2) A singly linked list is also called as........
A. linked list
B. one way chain
C. two way chain
D. right link
3) A ..... list is a header list where the node points back to the header node.
A. Circular header
B. Grounded header
C. Two way header
D. One way header
4) A doubly linked list has .......... pointers with each node.
A. 0
B. 1
C. 2
D. 3
5) Header linked lists are frequently used for maintaining........ in memory.
A. Polynomials
B. Binomal
C. Trinomial
D. Quadratic equation
6) The pointer that points to the first node in the list is........
A. FIRST
B. AVAIL
C. TOP
D. REAR
7) Two-way list may be maintained in memory by means of.............
A. Queues
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
Related Posts
5) Sorting a file F usually refers to sorting F with respect to a particular key called.....
A. Basic key
B. Primary key
C. Starting key
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
7) Selection sort first finds them .......... element in the list and put it in the first position.
A. Middle element
B. Largest element
C. Last element
D. Smallest element
7) D. Smallest element
9) The operation that combines the element is of A and B in a single sorted list C with n=r+s element is
called....
A. Inserting
B. Mixing
C. Merging
D. Sharing
9) C. Merging
11) .......... sorting is good to use when alphabetizing large list of names.
A. Merge
B. Heap
C. Radix
D. Bubble
11) C. Radix
13) Which of the following sorting algorithm is of divide and conquer type?
A. Bubble sort
B. Insertion sort
C. Quick sort
D. Merge sort
13) C. Quick sort
16) If the number of record to be sorted large and the key is short, then ...... sorting can be efficient.
A. Merge
B. Heap
C. Radix
D. Bubble
16) C. Radix
17) The total number of comparisons in a bubble sort is ....
A. O(n logn)
B. O(2n)
C. O(n2)
D. O(n)
17) A. O(n logn)
18) If the number of record to be sorted large and the key is long, then ...... sorting can be efficient.
A. Merge
B. Heap
C. Quick
D. Bubble
18) C. Quick
19) The time complexity of heap sort is ....
A. O(n)
B. O(logn)
C. O(n2)
D. O(n logn)
19) D. O(n logn)
Related Posts
2) If the number of records to be sorted is small, then ...... sorting can be efficient.
A. Merge
B. Heap
C. Selection
D. Bubble
2) C. Selection
3) The complexity of sorting algorithm measures the ...... as a function of the number n of items to be
sorter.
A. average time
B. running time
C. average-case complexity
D. case-complexity
3) B. running time
12) ............order is the best possible for array sorting algorithm which sorts n item.
A. O(n logn)
B. O(n2)
C. O(n+logn)
D. O(logn)
12) C. O(n+logn)
14)........ Sorting algorithm is frequently used when n is small where n is total number of elements.
A. Heap
B. Insertion
C. Bubble
D. Quick
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
15) Which of the following is not the required condition for binary search algorithm?
A. The list must be sorted
B. There should be the direct access to the middle element in any sub list
C. There must be mechanism to delete and/or insert elements in list.
D. Number values should only be present
15) C. There must be mechanism to delete and/or insert elements in list.
16) Partition and exchange sort is........
A. quick sort
B. tree sort
C. heap sort
D. bubble sort
16) A. quick sort
Set-2
1) While converting binary tree into extended binary tree, all the original nodes in binary tree are.......
A. Internal nodes on extended tree
B. External nodes on extended tree
C. Vanished on extended tree
D. Intermediate nodes on extended tree
1) A. Internal nodes on extended tree
2) In a binary tree, certain null entries are replaced by special pointers which point to nodes higher in
the tree for efficiency. These special pointers are called.........
A. Leaf
B. Branch
C. Path
D. Thread
2) D. Thread
3) The in order traversal of tree will yield a sorted listing of elements of tree in....
A. Binary trees
B. Binary search trees
C. Merging
D. AVL Trees
3) B. Binary search trees
4) A binary tree whose every node has either zero or two children is called.........
A. Complete binary tree
B. Binary Search tree
C. Extended binary tree
D. E2 tree
4) C. Extended binary tree
5) The post order traversal of a binary tree is DEBFCA. Find out the pre order Traversal.
A. ABFCDE
B. ADBFEC
For more MCQs of Data Structure visit: http://www.siteforinfotech.com/p/data-structure-mcq-sets.html
Related Posts
8) A graph is said to be ........... if there is a path between any two of its nodes
A. Connected
B. Coupled
C. Attached
D. Allied
8) A. Connected
Related Posts