Hashing and Hash Tables

Quiz
•
Computers
•
University
•
Hard

PANDU WICAKSONO
Used 11+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of hashing in computer science?
To transform a string of characters into a shorter length value
To illustrate the concept of data structures
To distribute keys in an array using a hash function
To store and retrieve keys in a rapid manner
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a hash table used for?
To illustrate the concept of data structures
To handle collisions in hashing
To index and retrieve items in a database
To store the original string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method of hashing involves adding up ASCII values of all the characters in the string and taking modulo of a table size?
Digit Extraction
Mid-square
Folding
Division
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of linear probing in handling collisions?
To store each string in a chain (linked list)
To search the next empty slot and put the string there
To divide the string/identifier by using the modulus operator
To extract the middle part of the bit representation of the square of a key
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the search complexity of linear probing if there are many collisions?
O(n^2)
O(n)
O(1)
O(log n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of chaining in handling collisions?
To store each string in a chain (linked list)
To divide the string/identifier by using the modulus operator
To search the next empty slot and put the string there
To extract the middle part of the bit representation of the square of a key
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the Folding method in hashing?
To divide the key value into a number of parts
To add up ASCII values of all the characters in the string and take modulo of a table size
To use any hash method and then perform rotation to get a new hash address
To extract a predefined digit of the given number as the hash address
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the Division method in hashing?
To divide the string/identifier by using the modulus operator
To extract a predefined digit of the given number as the hash address
To add up ASCII values of all the characters in the string and take modulo of a table size
To use any hash method and then perform rotation to get a new hash address
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the Mid-square method in hashing?
To square the string/identifier and then use an appropriate number of bits from the middle of the square to obtain the hash-key
To extract a predefined digit of the given number as the hash address
To use any hash method and then perform rotation to get a new hash address
To divide the key value into a number of parts
Similar Resources on Wayground
7 questions
Revisando a Aula 9 Estrutura de Dados

Quiz
•
University
13 questions
Bitcoin Quiz

Quiz
•
University
10 questions
CB3491 CRYPTOGRAPHY AND CYBER SECURITY

Quiz
•
University
10 questions
Blockchain

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
12 questions
Test Quiz Basic Programming

Quiz
•
University
10 questions
SSH CS Quiz

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University