Data Structures Algorithms-II MCQs

Page No. 22

Which of the following sorting algorithm is not in-place?


a insertion sort

✖


btim sort

✓


cquick sort

✖


d intro sort

✖


View Answer tim sort

Tim sort begins sorting the given array by using which of the following sorting algorithm?


aselection sort

✖


b quick sort

✖


cinsertion sort

✓


dmerge sort

✖


View Answer insertion sort

Which of the following sorting algorithm is a constituent of tim sort?


aselection sort

✖


b quick sort

✖


cmerge sort

✓


d heap sort

✖


View Answer merge sort

Which of the following is Python’s standard sorting algorithm?


aquick sort

✖


bintrosort

✖


cmerge sort

✖


d tim sort

✓


View Answer tim sort

Cube sort is a comparison based sort.


atrue

✓


bfalse

✖


cA & B

✖


dNone of these

✖


View Answer true

Which of the following is a disadvantage of cube sort?


ahigh memory overhead for small data

✓


bhigh memory overhead for any data

✖


cbalancing is slow

✖


dIteration is slow

✖



Cube sort is an in place sorting algorithm.


a true

✖


bfalsefalse

✓


cA & B

✖


dNone of these

✖


View Answer false

Which of the following algorithm is stable?


aheap sort

✖


bcube sort

✖


cquick sort

✖


dbogosort

✓


View Answer bogosort

What is the auxiliary space requirement of cube sort?


aO(n)

✓


bO(1)

✖


cO(log n)

✖


d O(n log n)

✖


View Answer O(n)

What is the worst case time complexity of cube sort?


aO(n)

✖


b O(log n)

✖


cO(n log n)

✓


dO(n2)

✖


View Answer O(n log n)

Goto Page No.

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