Data Structures Algorithms-II MCQs

Page No. 28

Which of the following sorting algorithm is not stable __________


a insertion sort


bbubble sort


cmerge sort


dbogosort


View Answer bogosort

What is the auxiliary space requirement of bogosort?


aO(n)


bO(1)


cO(log n)


dO(n log n)


View Answer O(1)

Bogosort works by __________


agenerating random permutations of its input


bpartitioning the array


cdividing the value of input elements


dgenerating permutations according to the value of first element of array



Which of the following is not an alternative name of bogosort?


astupid sort


b permutation sort


cdonkey sort


dmonkey sort


View Answer donkey sort

Sleep sort is an in-place sorting technique.


aTrue


bFalse


cA & B


dNone of these


View Answer True

Which of the following sorting algorithm is most closely related to the OS?


agnome sort


bsleep sort


c radix sort


dbogo sort


View Answer sleep sort

Sleep sort does gives a correct output when ___________


aany input element is negative


b input array is reverse sorted


cany input element is positive


dwhen there is a very small number to the left of very large number



Auxiliary space requirement of sleep sort is ___________


aO(n)


bO(1)


cO(max(input))


dO(log n)


View Answer O(n)

Sleep sort can be preferred over which of the following sorting algorithms for large number of input elements?


a Quick sort


bBubble sort


c Selection sort


dNo sorting algorithm is preferred



Sleep sort code cannot compile online because ___________


a it has very high time complexity


bit has very high space complexity


c it requires multithreading process


donline compilers are not efficient



Goto Page No.

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