Search Header Logo

Algorithm Quiz 30 Questions

Authored by Oendrila Samanta

Computers

University

Used 5+ times

Algorithm Quiz 30 Questions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the time complexity of binary search in a sorted array?

O(n)

O(log n)

O(n log n)

O(1)

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which sorting algorithm is the fastest on average for general use?

Bubble Sort

Insertion Sort

Merge Sort

Quick Sort

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is not a divide and conquer algorithm?

Merge Sort

Quick Sort

Binary Search

Bubble Sort

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does Big-O notation describe?

The exact number of steps

The best case performance

The average performance

The upper bound on time complexity

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which data structure is used in a Breadth-First Search (BFS) algorithm?

Stack

Queue

Heap

Tree

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the main idea of dynamic programming?

Trying all possibilities

Recursion with backtracking

Solving subproblems and storing their results

Sorting inputs before solving

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which algorithm is used for finding the shortest path in a graph with non-negative weights?

Prim's Algorithm

Kruskal’s Algorithm

Dijkstra’s Algorithm

Depth-First Search

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?

Discover more resources for Computers