
Algorithm Quiz 30 Questions

Quiz
•
Computers
•
University
•
Hard

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
Similar Resources on Wayground
26 questions
Graph Data Structure - 01

Quiz
•
University
25 questions
CA mcq

Quiz
•
University
25 questions
Neo Coding Round 1 Set 1

Quiz
•
University
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
26 questions
Searching Algorithms

Quiz
•
University
25 questions
C - Data Structures (Unit 1 - QUIZ)

Quiz
•
University
30 questions
Data Structures and Its Applications

Quiz
•
University
26 questions
Analysis Algorithms Introduction

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade