
Quiz for algorithms

Quiz
•
Science
•
University
•
Medium
Ardak Artykbayeva
Used 10+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Chemistry Sol

Quiz
•
8th Grade - University
20 questions
EL#04 Chemical Reactions Review

Quiz
•
8th Grade - University
15 questions
Chemical Bonding Properties

Quiz
•
8th Grade - University
15 questions
Sorting

Quiz
•
University
15 questions
Logika Dan Algoritma P10

Quiz
•
University
12 questions
mi1_05_rnn

Quiz
•
University
15 questions
Matter Vocabulary

Quiz
•
5th Grade - University
10 questions
KONSEP MOL

Quiz
•
12th Grade - 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