Data Structures Algorithms-II MCQs

Page No. 30

The auxiliary array used in pigeonhole sorting is called ______________


abucket

✖


bpigeon

✖


c hole

✖


dpigeonhole

✓


View Answer pigeonhole

What is the space complexity of pigeonhole sort (k=range of input)?


a O(n*k)

✖


bO(n)

✖


cO(k)

✖


dO(n+k)

✓


View Answer O(n+k)

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


awhen range of input is less than number of elements

✖


b when range of input is more than number of elements

✖


cwhen range of input is comparable to the number of elements

✓


dwhen the given array is almost sorted

✖



Which of the following is a non-comparison sort?


aheap sort

✖


bquick sort

✖


cmerge sort

✖


dpigeonhole sort

✓


View Answer pigeonhole sort

How many comparisons will be made to sort the array arr={1,5,3,8,2} using pigeonhole sort?


a5

✖


b 7

✖


c9

✖


d0

✓


View Answer 0

. LSD radix sort is in-place sorting algorithm.


aFalse

✓


b True

✖


cA & B

✖


dNone of these

✖


View Answer False

Which of the following is true for the LSD radix sort?


aworks best for variable length strings

✖


baccesses memory randomly

✓


cinner loop has less instructions

✖


d sorts the keys in left-to-right order

✖



Which of the following is a combination of LSD and MSD radix sorts?


aForward radix sort

✓


b 3-way radix quick sort

✖


cTrie base radix sort

✖


d Flash sort

✖


View Answer Forward radix sort

Which of the following should be used to sort a huge database on a fixed-length key field?


a) Insertion sort

✖


bMerge sort

✖


cLSD radix sort

✓


dQuick sort

✖


View Answer LSD radix sort

LSD radix sort is faster than comparison sorts.


aTrue

✖


b False

✓


cA & B

✖


dNone of these

✖


View Answer False

Goto Page No.

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