Algorithm Quiz 30 Questions

Algorithm Quiz 30 Questions

University

30 Qs

quiz-placeholder

Similar activities

Operating Systems

Operating Systems

University - Professional Development

25 Qs

Binary Trees and Traversals Quiz

Binary Trees and Traversals Quiz

University

30 Qs

MIDTERM EXAM IN OS 101

MIDTERM EXAM IN OS 101

University

25 Qs

Hard-very- Hard

Hard-very- Hard

University

26 Qs

CA mcq

CA mcq

University

25 Qs

Design and Analysis of Algorithms

Design and Analysis of Algorithms

University

25 Qs

Algorithms

Algorithms

University

25 Qs

Branch Master CSE Round 1(Quiz)

Branch Master CSE Round 1(Quiz)

University

30 Qs

Algorithm Quiz 30 Questions

Algorithm Quiz 30 Questions

Assessment

Quiz

Computers

University

Hard

Created by

Oendrila Samanta

Used 5+ times

FREE Resource

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

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?