Question 1

Time: 00:00:00
What is a hash function?

Function has allocated memory to keys

Function has allocated memory to keys

A function that computes the location of the key in the array

A function that computes the location of the key in the array

Function that creates an array

Function that creates an array

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 2

Time: 00:00:00
What is a hash table?

A structure that maps values to keys

A structure that maps values to keys

A structure used for storage

A structure used for storage

Structure used to implement stack and queue

Structure used to implement stack and queue

Structure that maps keys to values

Structure that maps keys to values

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 3

Time: 00:00:00
What is direct addressing?

Distinct array position for every possible key

Distinct array position for every possible key

Fewer array positions than keys

Fewer array positions than keys

Fewer keys than array positions

Fewer keys than array positions

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 4

Time: 00:00:00
What can be the techniques to avoid a collision?

Make the hash function appear random

Make the hash function appear random

All of the mentioned

All of the mentioned

Use the chaining method

Use the chaining method

Use uniform hashing

Use uniform hashing

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 5

Time: 00:00:00
What is the best that can be the techniques to avoid a collision?

Make the hash function appear random

Make the hash function appear random

Use uniform hashing

Use uniform hashing

Use the chaining method

Use the chaining method

All of the mentioned

All of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 6

Time: 00:00:00
What is it called when several elements compete for the same bucket in the hash table,?

Diffusion

Diffusion

Collision

Collision

Replication

Replication

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 7

Time: 00:00:00
What is the search complexity in direct addressing

O(n)

O(n)

O(logn)

O(logn)

O(nlogn)

O(nlogn)

O(1)

O(1)

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 8

Time: 00:00:00
If several elements are competing for the same bucket in the hash table, what is it called?

Diffusion

Diffusion

Replication

Replication

Collision

Collision

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 9

Time: 00:00:00
What is simple uniform hashing?

Every element has equal probability of hashing into any of the slots

Every element has equal probability of hashing into any of the slots

A weighted probabilistic method is used to hash elements into the slots

A weighted probabilistic method is used to hash elements into the slots

All of the mentioned

All of the mentioned

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

Question 10

Time: 00:00:00
What is the load factor?

Average array size

Average array size

Average key size

Average key size

Average chain length

Average chain length

None of the mentioned

None of the mentioned

Once you attempt the question then PrepInsta explanation will be displayed.

Please login to submit your explanation

["0","40","60","80","100"]
["Need more practice!","Keep trying!","Not bad!","Good work!","Perfect!"]

Buy TCS NQT Paid Materials

Paid Materials TCS NQT

Join TCS NQT Online Classes

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.