Data Structures Algorithms-II MCQs

Page No. 40

Permutation sort works by __________


a generating random permutations of its input

✓


b partitioning the array

✖


cdividing the value of input elements

✖


d generating permutations according to the value of first element of array

✖



Which of the following is not an alternative name of permutation sort?


astupid sort

✖


bbogo sort

✖


cdonkey sort

✓


dmonkey sort

✖


View Answer donkey sort

Bubble sort is an adaptive sorting algorithm.


a true

✓


bfalse

✖


cA & B

✖


dNone of these

✖


View Answer true

What is the auxiliary space complexity of recursive bubble sort?


a O(n)

✖


b O(1)

✓


cO(n log n)

✖


dO(n2)

✖


View Answer O(1)

What are the number of swaps required to sort the array arr={1, 2, 4, 3, 7, 5, 6} using recursive bubble sort?


a0

✖


b1

✖


c2

✖


d3

✓


View Answer 3

What is the worst case time complexity of recursive bubble sort?


aO(n)

✖


bO(n log n)

✖


cO(n2)

✓


dO(log n)

✖


View Answer O(n2)

What is the best case time complexity of recursive bubble sort?


a O(n)

✓


b O(n log n)

✖


cO(n2)

✖


d O(log n)

✖


View Answer O(n)

What is the average case time complexity of recursive bubble sort?


aO(n)

✖


bO(n log n)

✖


cO(n2)

✓


dO(log )

✖


View Answer O(n2)

Recursive bubble sort is a comparison based sort.


a true

✓


bfalse

✖


cA & B

✖


dNone of these

✖


View Answer true

Which of the following is a variation of bubble sort?


a selection sort

✖


b odd even sort

✓


ccocktail sort

✖


dstupid sort

✖


View Answer odd even sort

Goto Page No.

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