Binary Search Tree and Hashing Quiz

Binary Search Tree and Hashing Quiz

University

15 Qs

quiz-placeholder

Similar activities

Coding Challenge Round 1

Coding Challenge Round 1

University

10 Qs

Blockchain

Blockchain

5th Grade - Professional Development

10 Qs

Group 2 - Trees

Group 2 - Trees

University

11 Qs

Round 1 - OTH

Round 1 - OTH

University

20 Qs

Heart part 2 (EKG)

Heart part 2 (EKG)

University

15 Qs

Konsep dasar Struktur Data

Konsep dasar Struktur Data

University

20 Qs

ITProf104MEx

ITProf104MEx

University

20 Qs

Machine Learning

Machine Learning

University

20 Qs

Binary Search Tree and Hashing Quiz

Binary Search Tree and Hashing Quiz

Assessment

Quiz

Other

University

Medium

Created by

Mahipal Jadeja

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of searching an element in a balanced Binary Search Tree?

O(n)

O(log n)

O(n log n)

O(1)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal of a BST results in a sorted order of elements?

Preorder

Inorder

Postorder

Level order

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a BST, what is the time complexity of inserting an element in the worst case?

O(log n)

O(n)

O(1)

O(n²)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following properties is not true for a Binary Search Tree?

All left descendants ≤ node

All right descendants > node

No duplicate nodes

All nodes must be balanced

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Deleting a node with two children in a BST involves:

Deleting the root

Replacing it with its immediate child

Replacing it with its inorder predecessor or successor

Rebuilding the entire tree

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a collision resolution technique?

Chaining

Open Addressing

Linear Probing

Binary Search

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary goal of a good hash function?

Avoid deletion

Minimize collisions

Use complex arithmetic

Increase search time

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?