Data Structures Algorithms-II MCQs

Page No. 12

Which of the following method is used for sorting in merge sort?


amerging


bpartitioning


cselection


dexchanging


View Answer merging

Merge sort can be implemented using O(1) auxiliary space.


a true


bfalse


cA & B


dNone of these


View Answer true

What is the auxiliary space complexity of merge sort?


aO(1)


bO(log n)


cO(n)


dO(n log n)


View Answer O(n)

Merge sort uses which of the following technique to implement sorting?


abacktracking


b greedy algorithm


cdivide and conquer


ddynamic programming


View Answer divide and conquer

Choose the incorrect statement about merge sort from the following?


aboth standard merge sort and in-place merge sort are stable


b standard merge sort has greater time complexity than in-place merge sort


cstandard merge sort has greater space complexity than in-place merge sort


din place merge sort has O(log n) space complexity



In-place merge sort is a stable sort.


atrue


bfalse


cA & B


dNone of these


View Answer true

In place merge sort has same time complexity as standard merge sort.


a true


bfalse


cA & B


dNone of these


View Answer false

What is the space complexity of in place merge sort?


a O(1)


bO(n)


c O(log n)


dO(n log n)


View Answer O(log n)

Merge sort uses which of the following algorithm to implement sorting?


abacktracking


bgreedy algorithm


cdivide and conquer


ddynamic programming


View Answer divide and conquer

Choose the correct statement about bottom up merge sort from the following?


abottom up merge sort has greater time complexity than standard merge sort


bbottom up merge sort has lesser time complexity than standard merge sort


cbottom up merge sort saves auxiliary space required on call stack


dbottom up merge sort uses recursion.



Goto Page No.

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