Question 1

Time: 00:00:00
If the blocking factor, loading factor, and file buckets are known while using linear hashing, the formula used to get the number of records is as follows:

 

r = l + bfr - N

r = l + bfr - N

r = l + bfr + N

r = l + bfr + N

r = l - bfr + N

r = l - bfr + N

r = l * bfr * N

r = l * bfr * N

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 it called when several elements compete for the same bucket in the hash table?

 

Diffusion

Diffusion

Collision

Collision

Replication

Replication

Avoidance

Avoidance

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 the load factor?

Average array size

Average array size

Average key size

Average key size

Average chain length

Average chain length

All are correct

All are correct

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

Please login to submit your explanation

Question 4

Time: 00:00:00
What distinguishes a hash table from a linked list?

quite effective with less entries.  

quite effective with less entries.  

quicker access to the elements

quicker access to the elements

demonstrate admirable reference fidelity.  

demonstrate admirable reference fidelity.  

Hash table provide quicker access.

Hash table provide quicker access.

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

Please login to submit your explanation

Question 5

Time: 00:00:00
The load factor for a hash table T with 20 slots and 1000 items is ?

50  

50  

100

100

40

40

20000

20000

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

Please login to submit your explanation

Question 6

Time: 00:00:00
While finding the correct location for saving key value pair, how many times the key is hashed?

 

1

1

2

2

3

3

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

Please login to submit your explanation

Question 7

Time: 00:00:00
Is hashmap an ordered collection, in java?

True

True

False

False

Both

Both

None

None

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

Please login to submit your explanation

Question 8

Time: 00:00:00
Map implements collection interface?

True

True

False

False

Both

Both

None

None

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

Please login to submit your explanation

Question 9

Time: 00:00:00
Which of the below does not implement Map interface?

 

HashMap

HashMap

Hash Table

Hash Table

EnumMap

EnumMap

Vector

Vector

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 premise of equality for IdentityHashMap?

 

reference equality

reference equality

Name equality

Name equality

Hashcode equality

Hashcode equality

Length Equality

Length Equality

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!"]

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.

Comments