Data Structures Algorithms-II MCQs

Page No. 19

Shell sort is also known as _____________


a diminishing decrement sort

✖


bdiminishing increment sort

✓


c partition exchange sort

✖


ddiminishing insertion sort

✖



What is the average number of comparisons used to heap sort a random permutation of N distinct items?


a 2N log N-O(N)

✖


b2N log N-O(N log N)

✖


c2N log N-O(N log log N)

✓


d 2N log N-O(log N)

✖



What is the average number of comparisons used in a heap sort algorithm?


aN log N-O(N)

✖


bO(N log N)-O(N)

✖


cO(N log N)-1

✖


d 2N log N + O(N)

✓


View Answer 2N log N + O(N)

Heap sort is an extremely stable algorithm.


atrue

✓


bfalse

✖


cA & B

✖


dNone of these

✖


View Answer true

How many arrays are required to perform deletion operation in a heap?


a 1

✖


b 2

✓


c3

✖


d4

✖


View Answer 2

In heap sort, after deleting the last minimum element, the array will contain elements in?


a increasing sorting order

✖


bdecreasing sorting order

✓


ctree inorder

✖


d tree preorder

✖



In what position does the array for heap sort contains data?


a0

✓


b1

✖


c-1

✖


danywhere in the array

✖


View Answer 0

Heap sort is faster than Shell sort.


atrue

✖


bfalse

✓


cA & B

✖


dNone of these

✖


View Answer false

On which algorithm is heap sort based on?


aFibonacci heap

✖


bBinary tree

✖


c Priority queue

✓


dFIFO

✖


View Answer Priority queue

How many elements can be sorted in O(logn) time using Heap sort?


aO(1)

✖


bO(n/2)

✖


cO(logn/log(logn))

✓


dO(logn)

✖


View Answer O(logn/log(logn))

Goto Page No.

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