Data Structures Algorithms-II MCQs

Page No. 24

Which of the following is an advantage of cycle sort?


ait can sort large arrays efficiently

✖


bit has a low time complexity

✖


cit requires minimal write operations

✓


dit is an adaptive sorting algorithm

✖



Which of the following sorting algorithm is in-place?


aMerge sort

✖


b Cycle sort

✓


cCounting sort

✖


dRadix sort

✖


View Answer Cycle sort

Cycle sort is an adaptive sorting algorithm.


atrue

✖


bfalse

✓


cA & B

✖


dNone of these

✖


View Answer false

What is the auxiliary space requirement of cycle sort?


aO(n)

✖


bO(1)

✓


c O(log n)

✖


dO(n log n)

✖


View Answer O(1)

Which of the following is an example of an unstable sorting algorithm?


acycle sort

✓


b insertion sort

✖


cbubble sort

✖


dmerge sort

✖


View Answer cycle sort

Which of the following is not true about library sort?


ait uses binary search and insertion sort in its implementation

✖


bgaps are created between successive elements in order to ensure faster insertion

✖


carray needs to be re balanced after every insertion

✖


d it is an in place sorting algorithm

✓



What is the advantage of library sort over insertion sort?


aLibrary sort has a better average time complexity

✓


b Library sort has a better space complexity

✖


cLibrary sort has better best case time complexity

✖


dLibrary has better worst case time complexity

✖



Which of the following is an alternate name of library sort?


agapped insertion sort

✓


b binary insertion sort

✖


crecursive insertion sort

✖


dbinary gap sort

✖


View Answer gapped insertion sort

Library sort is a comparison based sort.


atrue

✓


bfalse

✖


cA & B

✖


dNone of these

✖


View Answer true

Which of the following sorting algorithm requires the use of binary search in their implementation?


aradix sort

✖


blibrary sort

✓


codd-even sort

✖


d bead sort

✖


View Answer library sort

Goto Page No.

Page 24 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