Quiz on Searching and Sorting Algorithms

Quiz on Searching and Sorting Algorithms

University

24 Qs

quiz-placeholder

Similar activities

Digital Asset Review

Digital Asset Review

10th Grade - University

26 Qs

Analisis Data dengan Excel

Analisis Data dengan Excel

University

20 Qs

HO - 06 Preguntas sobre recursos en Android

HO - 06 Preguntas sobre recursos en Android

University

20 Qs

Java Programming Quiz

Java Programming Quiz

University

20 Qs

Quiz sobre Gerenciamento de Estoque e Custos

Quiz sobre Gerenciamento de Estoque e Custos

University

21 Qs

SI vesus TI

SI vesus TI

University

20 Qs

Quiz Komputasional-Struktur Data kelas 9

Quiz Komputasional-Struktur Data kelas 9

9th Grade - University

20 Qs

Ujian Akhir Semester Teori Struktur Data

Ujian Akhir Semester Teori Struktur Data

University

26 Qs

Quiz on Searching and Sorting Algorithms

Quiz on Searching and Sorting Algorithms

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Ms. Angel Godson

Used 3+ times

FREE Resource

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the time complexity of Linear Search?

O(1)

O(log n)

O(n)

O(n²)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the best-case time complexity of Binary Search?

O(1)

O(n)

O(log n)

O(n²)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the requirement for performing Binary Search on a list?

The list must be sorted

The list must be unsorted

The list should be a linked list

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the primary disadvantage of Linear Search?

It works on sorted data

It has a worst-case time complexity of O(n)

It requires additional space

It is not efficient for small lists

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of Bubble Sort in the worst case?

O(n)

O(n log n)

O(n²)

O(1)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes the operation of the Insertion Sort algorithm?

It divides the array into two halves and recursively sorts each half

It repeatedly selects the smallest element and places it at the end of the sorted part

It repeatedly moves the unsorted element to its correct position in the sorted part

It uses a divide-and-conquer strategy to sort the elements

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm has the best average-case time complexity?

Bubble Sort

Insertion Sort

Merge Sort

Quick Sort

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?