Hashing and Sorting Quiz

Hashing and Sorting Quiz

University

11 Qs

quiz-placeholder

Similar activities

Seatwork HASH (Data Structure)

Seatwork HASH (Data Structure)

University

10 Qs

Informatik II Quiz 1

Informatik II Quiz 1

University

11 Qs

BCSC0006 - Quiz 2 - Big-Oh Notation

BCSC0006 - Quiz 2 - Big-Oh Notation

University

10 Qs

C++ Searches and Sorts

C++ Searches and Sorts

University - Professional Development

15 Qs

07 - Map

07 - Map

University

15 Qs

Difficult Level

Difficult Level

University

15 Qs

Alpro Asix

Alpro Asix

University

15 Qs

BCSC0006 Quiz Collections

BCSC0006 Quiz Collections

University

10 Qs

Hashing and Sorting Quiz

Hashing and Sorting Quiz

Assessment

Quiz

Computers

University

Medium

Created by

Manju Jose

Used 1+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?