DSA + System Design 11

DSA + System Design 11

Professional Development

10 Qs

quiz-placeholder

Similar activities

BASES DE DATOS FUTBOLISTAS

BASES DE DATOS FUTBOLISTAS

Professional Development

11 Qs

DP-900 MÓDULO 01_pt-br

DP-900 MÓDULO 01_pt-br

Professional Development

7 Qs

Filme "O Jogo da Imitação" - Nível Fácil

Filme "O Jogo da Imitação" - Nível Fácil

Professional Development

15 Qs

DS_Linked_List

DS_Linked_List

Professional Development

10 Qs

AWS Cloud

AWS Cloud

Professional Development

15 Qs

EMERGING TECHNOLOGIES QUIZ #2 MIDTERM (IV-B)

EMERGING TECHNOLOGIES QUIZ #2 MIDTERM (IV-B)

University - Professional Development

15 Qs

HTML

HTML

University - Professional Development

15 Qs

Network - Test 3

Network - Test 3

Professional Development

7 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?