DSA + System Design 11

DSA + System Design 11

Professional Development

10 Qs

quiz-placeholder

Similar activities

Ciclo de vida de los datos

Ciclo de vida de los datos

Professional Development

10 Qs

Blockchain Basics: Algorithm and Techniques

Blockchain Basics: Algorithm and Techniques

University - Professional Development

12 Qs

Searching and Sorting

Searching and Sorting

University - Professional Development

15 Qs

SC-900_Módulo 1

SC-900_Módulo 1

Professional Development

12 Qs

DDIA, lesson 3, Storage and Retrieval, DS that Power your DB

DDIA, lesson 3, Storage and Retrieval, DS that Power your DB

Professional Development

11 Qs

DSA - Practice Quiz - 1

DSA - Practice Quiz - 1

University - Professional Development

15 Qs

Blockchain Basics: Algorithms

Blockchain Basics: Algorithms

University - Professional Development

9 Qs

ICTDBS506- HASHES, SALTS, PEPPERS Quiz

ICTDBS506- HASHES, SALTS, PEPPERS Quiz

Professional Development

11 Qs

DSA + System Design 11

DSA + System Design 11

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Puneet Kansal

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following properties is crucial for a good hash function?

Slow computation

Producing the same hash for different inputs

Producing a unique hash for every unique input

Large output size

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the load factor in a hash table?

The ratio of the number of entries to the number of slots

The time complexity of hashing

The speed of hash function computation

The size of the hash table

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

what is the average case time complexity of searching an element in a hash table?

O(1)

O(log n)

O(n)

O(n log n)

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is true about unordered_set / HashSet / set?

Elements are sorted in ascending order

Elements are accessed using an index

Duplicate elements are not allowed

Insertion and lookup operations have a time complexity of O(log n)

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the primary advantage of using an unordered_set over a set in C++?

Faster lookup and insertion

Maintains sorted order

Uses less memory

Supports duplicates

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data structure is used at backend for inbuild unordered_set / hashset / set.

Array

Linkedlist

Hash table

tree

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the time complexity of searching an element in hash table in worst case?

O(1)

O(logn)

O(n)

O(n^2)

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?