Algorithm Quiz 30 Questions

Algorithm Quiz 30 Questions

University

30 Qs

quiz-placeholder

Similar activities

Design and Analysis of Algorithm

Design and Analysis of Algorithm

University

30 Qs

Graph Data Structure - 01

Graph Data Structure - 01

University

26 Qs

Neo Coding Round 1 Set 1

Neo Coding Round 1 Set 1

University

25 Qs

A.D.A.MID

A.D.A.MID

University

30 Qs

Data Structures and Algorithm

Data Structures and Algorithm

11th Grade - Professional Development

30 Qs

Sorting Techniques

Sorting Techniques

University

25 Qs

Remedial UTS Analgo 2020

Remedial UTS Analgo 2020

University

31 Qs

Algorithms final

Algorithms final

University

26 Qs

Algorithm Quiz 30 Questions

Algorithm Quiz 30 Questions

Assessment

Quiz

Computers

University

Hard

Created by

Oendrila Samanta

Used 4+ 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?