Data Structures Algorithms-II MCQs

Page No. 11

Which of the following is not an advantage of optimised bubble sort over other sorting techniques in case of sorted elements?


aIt is faster

✖


bConsumes less memory

✖


c Detects whether the input is already sorted

✓


dConsumes less time

✖



What is an internal sorting algorithm?


aAlgorithm that uses tape or disk during the sort

✖


bAlgorithm that uses main memory during the sort

✓


cAlgorithm that involves swapping

✖


d Algorithm that are considered ‘in place’

✖



What is an external sorting algorithm?


aAlgorithm that uses tape or disk during the sort

✓


bAlgorithm that uses main memory during the sort

✖


cAlgorithm that involves swapping

✖


dAlgorithm that are considered ‘in place’

✖



Which of the following sorting algorithm does not use recursion?


a quick sort

✖


bmerge sort

✖


c heap sort

✖


dbottom up merge sort

✓


View Answer bottom up merge sort

Which of the following sorting algorithm makes use of merge sort?


atim sort

✓


b intro sort

✖


cbogo sort

✖


d quick sort

✖


View Answer tim sort

Merge sort is preferred for arrays over linked lists.


a true

✖


bfalse

✓


cA & B

✖


dNone of these

✖


View Answer false

Which of the following stable sorting algorithm takes the least time when applied to an almost sorted array?


aQuick sort

✖


bInsertion sort

✖


cSelection sort

✖


dMerge sort

✓


View Answer Merge sort

Which of the following is not a stable sorting algorithm?


aQuick sort

✓


bCocktail sort

✖


cBubble sort

✖


d Merge sort

✖


View Answer Quick sort

Which of the following is not in place sorting algorithm by default?


amerge sort

✓


b quick sort

✖


cheap sort

✖


dnsertion sort

✖


View Answer merge sort

Which of the following is not a variant of merge sort?


ain-place merge sort

✖


bbottom up merge sort

✖


ctop down merge sort

✖


d linear merge sort

✓


View Answer linear merge sort

Goto Page No.

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