Algorithm Quiz 30 Questions

Algorithm Quiz 30 Questions

University

30 Qs

quiz-placeholder

Similar activities

Data Structures and  Its Applications

Data Structures and Its Applications

University

30 Qs

Algorithm Design

Algorithm Design

University

25 Qs

DSA - Q1

DSA - Q1

University

25 Qs

CpE 416 Module 3 - De Honor

CpE 416 Module 3 - De Honor

University

35 Qs

BUG-OFF

BUG-OFF

University

30 Qs

Analysis Algorithms Introduction

Analysis Algorithms Introduction

University

26 Qs

Technical quiz(Medium-Level)

Technical quiz(Medium-Level)

University

25 Qs

QUIZ

QUIZ

University

25 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?