Data Structures Algorithms-II MCQs

Page No. 43

Recursive insertion sort is a comparison based sort.


aTrue


b False


cA & B


dNone of these


View Answer True

Which of the following is a variant of insertion sort?


aselection sort


bshell sort


codd-even sort


dstupid sort


View Answer shell sort

Which of the following sorting algorithm is stable?


a Selection sort


bQuick sort


cInsertion sort


dHeap sort


View Answer Insertion sort

What will be the recurrence relation of the code of recursive insertion sort?


a T(n) = 2T(n/2) + n


bT(n) = 2T(n/2) + c


c T(n) = T(n-1) + n


d T(n) = T(n-1) + c


View Answer T(n) = T(n-1) + n

Insertion sort is an online sorting algorithm.


atrue


b false


cA & B


dNone of these


View Answer true

Which of the following is an advantage of recursive insertion sort over its iterative version?


a it has better time complexity


bit has better space complexity


cit is easy to implement


dit has no significant advantage



Which of the following version of tree sort will have the highest worst case time complexity?


ausing AVL tree as BST


busing red black tree as BST


cusing splay tree as BST


d using ordinary BST


View Answer using ordinary BST

Which of the following is not an advantage of tree sort?


a it has a low space complexity


b it has good time complexity for balanced BST


cit is an online sorting algorithm


dit is stable sorting algorithm



Which of the following is not an advantage of tree sort?


ait has a low space complexity


b it has good time complexity for balanced BST


cit is an online sorting algorithm


d it is stable sorting algorithm



The worst case time complexity of tree sort remains unaffected when implemented with an unbalanced tree or a balanced tree.


a True


b False


cA & B


dNone of these


View Answer True

Goto Page No.

Page 43 of 149

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan