
Algorithm Quiz 30 Questions

Quiz
•
Computers
•
University
•
Hard

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
Similar Resources on Wayground
34 questions
ALGO - Prelim Reviewer

Quiz
•
University
25 questions
Unit V DSA Quiz

Quiz
•
University
25 questions
C PROGRAMMING

Quiz
•
University
30 questions
Roll-a-coaster

Quiz
•
University
25 questions
CS8 Final Review #1

Quiz
•
6th Grade - University
25 questions
ALGORITHMS AND FLOWCHARTS

Quiz
•
9th Grade - University
25 questions
Chapter 6 : Sorting and Searching

Quiz
•
University
30 questions
Algo&Complex-MidterExam

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University