Data Structures Algorithms-II MCQs

Page No. 25

Library sort is a modified version of which of the following sorting algorithm?


aBubble sort

✖


bselection sort

✖


cinsertion sort

✓


d quick sort

✖


View Answer insertion sort

Library sort is an online sorting algorithm.


atrue

✓


bfalse

✖


cA & B

✖


dNone of these

✖


View Answer true

Which of the following is a disadvantage of library sort when compared to insertion sort?


a library sort has greater time complexity

✖


blibrary sort has greater space complexity

✓


clibrary sort makes more comparisons

✖


dit has no significant disadvantage

✖



Strand sort algorithm used which of the following method for sorting a list?


amerging

✖


bselection

✓


c insertion

✖


d partitioning

✖


View Answer selection

Strand sort is a stable sorting algorithm.


a true

✓


b false

✖


cA & B

✖


dNone of these

✖


View Answer true

Strand sort is a comparison based sorting algorithm.


a true

✓


bfalse

✖


cA & B

✖


dNone of these

✖


View Answer true

What is the auxiliary space complexity of strand sort?


aO(n)

✓


bO(1)

✖


cO(log n)

✖


dO(n log n)

✖


View Answer O(n)

In which of the following case strand sort is most efficient?


a when input array is already sorted

✓


bwhen input array is reverse sorted

✖


cwhen input array is large

✖


dwhen input array is has randomly spread elements

✖



Strand sort is most efficient for data stored in?


alinked list

✓


barrays

✖


ctrees

✖


d graphs

✖


View Answer linked list

Bubble sort performs better as compared to cocktail sort.


aTrue

✖


bFalse

✓


cA & B

✖


dNone of these

✖


View Answer False

Goto Page No.

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