Data Structures and Algorithms-I MCQs

Page No. 36

By implementing separate chaining using list head we can reduce the number of collisions drastically.


aTrue

✖


bFalse

✓


cNone of the given options

✖


deither true either false

✖


View Answer False

Which of the following technique is used for handling collisions in a hash table?


aOpen addressing

✓


bHashing

✖


cSearching

✖


dHash function

✖


View Answer Open addressing

What is the worst case time complexity of insert function in the hash table when the list head is used for chaining?


aO(1)

✖


bO(n log n)

✖


cO(log n)

✖


dO(n)

✓


View Answer O(n)

What is the advantage of using linked list over the doubly linked list for chaining?


ait takes less memory

✓


bit causes more collisions

✖


cit makes the process of insertion and deletion faster

✖


dit causes less collisions

✖


View Answer it takes less memory

A hash table may become full in the case when we use open addressing.


atrue

✓


bfalse

✖


cNone of the given options

✖


deither true either false

✖


View Answer true

What is the time complexity of delete function in the hash table using list head?


aO(1)

✓


bO(n)

✖


cO(log n)

✖


dO(n log n)

✖


View Answer O(1)

What is the time complexity of search function in a hash table using list head?


aO(1)

✓


bO(n)

✖


cO(log n)

✖


dO(n log n)

✖


View Answer O(1)

What is the time complexity of insert function in a hash table using list head?


aO(1)

✓


bO(n)

✖


cO(log n)

✖


dO(n log n)

✖


View Answer O(1)

Which of the following trait of a hash function is most desirable?


ait should cause less collisions

✓


bit should cause more collisions

✖


cit should occupy less space

✖


dit should be easy to implement

✖



What is the advantage of the hash table over a linked list?


afaster access of data

✓


beasy to implement

✖


cvery efficient for less number of entries

✖


dexhibit good locality of reference

✖


View Answer faster access of data

Goto Page No.

Page 36 of 53

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