
Quiz for algorithms
Quiz
•
Science
•
University
•
Practice Problem
•
Medium
Ardak Artykbayeva
Used 10+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following binary search function?
3
7
2
-1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Binary search is only applicable when:
The list is sorted
The list contains only integers
The list has an odd number of elements
The elements are unique
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the average-case time complexity of binary search?
O(n)
O(n log n)
O(1)
O(log n)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm is the most efficient for sorting large datasets?
Bubble Sort
Selection Sort
Quick Sort
Insertion Sort
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which sorting algorithm works by selecting the smallest element and swapping it with the first unsorted element?
Bubble Sort
Quick Sort
Merge Sort
Selection Sort
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary advantage of Merge Sort over Quick Sort?
Merge Sort is always faster
Merge Sort does not use recursion
Merge Sort is stable
Merge Sort is in-place
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the order of elements removed in a queue?
LIFO
FIFO
Random
Sorted Order
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Revisão - 7° Ano - Ciências
Quiz
•
7th Grade - University
15 questions
Quiz sobre Núcleo Celular
Quiz
•
8th Grade - University
10 questions
Tonometry - Implications
Quiz
•
University
12 questions
RDBG LO4 LS1-6
Quiz
•
University
11 questions
TOPICOS ESPECIAIS
Quiz
•
University
10 questions
Epitelio de revestimiento
Quiz
•
University
12 questions
IELTS Reading - History of the Steam Engine
Quiz
•
University - Professi...
13 questions
Astronomy Quiziz
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
