
DS Quizz

Quiz
•
Education
•
University
•
Medium
Auzoom four
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the time complexity of Binary Search in the worst case?
O(n)
O(log n)
O(n log n)
O(n^2)
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a stable sorting algorithm?
Quick Sort
Merge Sort
Heap Sort
Selection Sort
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In which case does Linear Search outperform Binary Search?
When the array is sorted
When the array has duplicate elements
When the array is small and unsorted
When the array is large and sorted
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is true about the time complexity of Selection Sort?
It is O(n) in the worst case.
It is O(n log n) in the best case.
It is O(n^2) in both the worst and best cases.
It is O(log n) in the worst case.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Consider the following pseudocode:
for i = 1 to n:
for j = 1 to i:
print(i, j)
O(n)
O(n log n)
O(n^2)
O(n^3)
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Consider the following pseudocode:
for i = 0 to n-1:
minIndex = i
for j = i+1 to n:
if arr[j] < arr[minIndex]:
minIndex = j
swap arr[i] with arr[minIndex]
What is the time complexity of this algorithm?
A) O(n)
B) O(n log n)
C) O(n^2)
D) O(n^3)
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Consider the following pseudocode:
for i = 1 to n:
for j = 1 to n:
for k = 1 to n:
print(i, j, k)
What is the time complexity of this algorithm?
O(n)
O(n^2)
O(n^3)
O(n log n)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Evaluación B2C Septiembre

Quiz
•
1st Grade - Professio...
10 questions
Ensaio de dureza

Quiz
•
University
15 questions
Data Structures Training Quiz2

Quiz
•
University
10 questions
DIDÁCTICA 2 PARCIAL

Quiz
•
University
14 questions
Uike Lea Faka-Tonga 1

Quiz
•
KG - Professional Dev...
10 questions
Sílaba Tónica: Agudas y Graves

Quiz
•
2nd Grade - University
8 questions
Mittelhochdeutsch Lautentwicklung

Quiz
•
University
11 questions
Educação Inclusiva 1

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Education
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University