Search Header Logo

Data Structure

Authored by Assistant Chennai

Professional Development

Professional Development

Used 46+ times

Data Structure
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

1. What is a hash table?

a) A structure that maps values to keys

b) A structure that maps keys to values

c) A structure used for storage

d) A structure used to implement stack and queue

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

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

a) Diffusion

b) Replication

c) Collision

d) Duplication

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is direct addressing?

a) Distinct array position for every possible key

b) Fewer array positions than keys

c) Fewer keys than array positions

d) Same array position for all keys

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the search complexity in direct addressing?

a) O(n)

b) O(logn)

c) O(nlogn)

d) O(1)

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a hash function?

a) A function has allocated memory to keys

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

c) A function that creates an array

d) A function that computes the location of the values in the array

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a technique to avoid a collision?

a) Make the hash function appear random

b) Use the chaining method

c) Use uniform hashing

d) Increasing hash table size

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

7. What is the load factor?

a) Average array size

b) Average key size

c) Average chain length

d) Average hash table length

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development