Search Header Logo

DSA + System Design 11

Authored by Puneet Kansal

Computers

Professional Development

Used 2+ times

DSA + System Design 11
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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)

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?