
Algorithm Time Complexity Quiz

Quiz
•
Engineering
•
University
•
Hard
Dr. Vasanthi
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of a linear search algorithm?
O(n)
O(log n)
O(n log n)
O(1)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which asymptotic notation gives the upper bound of an algorithm's time complexity?
Big-O
Big-Ω
Big-Θ
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of a binary search algorithm?
O(n)
O(log n)
O(n log n)
O(1)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which algorithm has a time complexity of O(n^2)?
Bubble sort
Selection sort
Insertion sort
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best-case time complexity of a heap sort algorithm?
O(n)
O(log n)
O(n log n)
O(1)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure is used in a heap sort algorithm?
Array
Linked list
Stack
Queue
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the time complexity of a naive string-matching algorithm?
O(n)
O(n^2)
O(n log n)
O(1)
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Parallel Computing Quiz

Quiz
•
University
20 questions
DAA 4th Sem

Quiz
•
University
20 questions
Divide and Conquer & Dynamic Programming

Quiz
•
University
24 questions
Algorithm Analysis and Design

Quiz
•
University
15 questions
Asia's Grandest Event Prelims

Quiz
•
University
21 questions
Mastering Data Structures

Quiz
•
University
20 questions
NLP_B1_19.09

Quiz
•
University
20 questions
Computer Networks CT-4

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade