Data Structures Algorithms-II MCQs

Page No. 45

Which of the following sorting algorithm is stable?


aSelection sort

✖


bQuick sort

✖


c Tree sort

✓


dHeap sort

✖


View Answer Tree sort

Which of the following traversal in a binary search tree results in a sorted output?


ain order traversal

✓


bpre order traversal

✖


cpost order traversal

✖


dbreadth first traversal

✖


View Answer in order traversal

Tree sort is an online sorting algorithm.


aTrue

✓


bFalse

✖


cA & B

✖


dNone of these

✖


View Answer True

Which of the following data structure is required for the implementation of tree sort?


aany ordinary tree

✖


bbalanced tree

✖


cbinary search tree

✓


dunbalanced tree

✖


View Answer binary search tree

Who created the Rabin Karp Algorithm?


aJoseph Rabin and Michael Karp

✖


bMichael Rabin and Joseph Karp

✖


c Richard Karp and Michael Rabin

✓


dMichael Karp and Richard Rabin

✖



What is the basic principle in Rabin Karp algorithm?


aHashing

✓


bSorting

✖


cAugmenting

✖


d Dynamic Programming

✖


View Answer Hashing

If the expected number of valid shifts is small and modulus is larger than the length of pattern what is the matching time of Rabin Karp Algorithm?


aTheta(m)

✖


bBig-Oh(n+m)

✓


cTheta(n-m)

✖


dBig-Oh(n)

✖


View Answer Big-Oh(n+m)

What happens when the modulo value(q) is taken large?


aComplexity increases

✖


bSpurious hits occur frequently

✖


cCost of extra checking is low

✓


dMatching time increases

✖



Rabin- Karp algorithm can be used for discovering plagiarism in a sentence.


aTrue

✓


bFalse

✖


cA & B

✖


dNone of these

✖


View Answer True

What is the worst case running time of Rabin Karp Algorithm?


a Theta(n)

✖


b Theta(n-m)

✖


cTheta((n-m+1)m)

✓


dTheta(nlogm)

✖


View Answer Theta((n-m+1)m)

Goto Page No.

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