General DSA Quiz

General DSA Quiz

Professional Development

20 Qs

quiz-placeholder

Similar activities

ALL

ALL

KG - Professional Development

15 Qs

MySQL

MySQL

Professional Development

20 Qs

Chromebook shortcuts

Chromebook shortcuts

KG - Professional Development

18 Qs

Keyboard Shortcuts (Chromebook)

Keyboard Shortcuts (Chromebook)

Professional Development

17 Qs

Examen TIC´s

Examen TIC´s

Professional Development

20 Qs

DataBase Quiz - CME Workshop

DataBase Quiz - CME Workshop

Professional Development

20 Qs

Sammilan Quiz- Prelims

Sammilan Quiz- Prelims

Professional Development

20 Qs

Brute Force

Brute Force

Professional Development

16 Qs

General DSA Quiz

General DSA Quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Puneet Kansal

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the time complexity of recursive_function?

O(n)

O(n^2)

O(2^n)

O(log n)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following data structures provides O(1) average-time complexity for search operations?

Array

Linked List

Hash Table

Binary Search Tree

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the time complexity of inserting an element into a max heap of size n?

O(1)

O(log n)

O(n)

O(n log n)

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the time complexity of the Depth-First Search (DFS) algorithm in a graph with n vertices and m edges?

O(n)

O(m)

O(n + m)

O(n * m)

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

If an algorithm has a time complexity of O(n^2), which of the following is also true?

The algorithm has a time complexity of O(n^3)

The algorithm has a time complexity of Θ(n^2)

The algorithm has a time complexity of Ω(n)

All of the above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In an array of size n, what is the time complexity of inserting an element at the beginning?

O(1)

O(n)

O(log n)

O(n log n)

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the worst case time complexity to find an element that is not the largest in an unsorted array?

O(1)

O(n)

O(logn)

O(nlogn)

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?