Search Header Logo

Hashing and Sorting Quiz

Authored by Manju Jose

Computers

University

Used 1+ times

Hashing and Sorting Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which step is NOT part of the basic algorithm for inserting an item using hashing?

Input the key.

Calculate the hash value using a hash function.

Sort the array after insertion.

Store the key in the array location pointed to by the hash value.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the calculated hash value points to a location that already contains a different key?

The key is overwritten.

The collision must be resolved using techniques like chaining or open addressing.

The key is discarded.

The hash function recalculates the value until an empty spot is found.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a use case of hashing?

Table lookup or data comparison tasks.

Sorting elements in an array.

Detecting duplicated records in a large file.

Indexing for efficient database searches.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When using a hash function, what is the term for the large original data being converted?

Hash code.

Key.

Index.

Array.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in the algorithm for retrieving or searching for a key using hashing?

Calculate the hash value.

Input the key.

Compare the key with stored values.

Start a linear search in the array.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bubble sort is also known as ______________ sort

Linear.

Exchange.

Binary

Divide

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insertion sort algorithm works on the basis of placing a key in the appropriate position.

False.

True.

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?