What is the time complexity of binary search in a sorted array?

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
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 Quizizz
30 questions
DAA QUIZ-I

Quiz
•
University
26 questions
221 quiz questions exam 2 prep

Quiz
•
University
26 questions
Graph Data Structure - 01

Quiz
•
University
25 questions
COCAT - DAA

Quiz
•
University - Professi...
25 questions
Neo Coding Round 1 Set 1

Quiz
•
University
30 questions
Data Structures and Algorithm

Quiz
•
11th Grade - Professi...
25 questions
C - Data Structures (Unit 1 - QUIZ)

Quiz
•
University
30 questions
AAI-Module 1 & 2 Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade