Data Structures Quiz

Data Structures Quiz

University

15 Qs

quiz-placeholder

Similar activities

DS Day 1 Quiz

DS Day 1 Quiz

University

12 Qs

Sorting Quiz

Sorting Quiz

University - Professional Development

15 Qs

Round 1 - OTH

Round 1 - OTH

University

20 Qs

Midterm 2 Quiz

Midterm 2 Quiz

University

16 Qs

Data Structures Prelimes

Data Structures Prelimes

University

16 Qs

Python Review Module 16 - Searching Sorting Algorithm

Python Review Module 16 - Searching Sorting Algorithm

University

17 Qs

K-Nearest Neighbors Quiz

K-Nearest Neighbors Quiz

University

10 Qs

MapReduce quiz

MapReduce quiz

University

17 Qs

Data Structures Quiz

Data Structures Quiz

Assessment

Quiz

Other

University

Hard

Created by

Nathaniel Mensah

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for accessing an element in an array?

O(1)

O(log n)

O(n^2)

O(n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for searching an element in a queue?

O(log n)

O(n)

O(1)

O(n^2)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for inserting an element at the end of a dynamic array?

O(log n)

O(n^2)

O(1)

O(n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for deleting an element from the middle of an array?

O(1)

O(n)

O(n^2)

O(log n)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for searching an element in a stack?

O(n)

O(n^2)

O(1)

O(log n)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the average time complexity for searching in a balanced binary search tree?

O(n)

O(n^2)

O(1)

O(log n)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for adding an edge in an adjacency list representation of a graph?

O(log n)

O(n^2)

O(1)

O(n)

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?