Array Search & Sort Quiz

Array Search & Sort Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Binary and Linear Search

Binary and Linear Search

9th - 12th Grade

18 Qs

Big O Notation Revision

Big O Notation Revision

12th Grade

12 Qs

AP CS ArrayLists

AP CS ArrayLists

12th Grade

17 Qs

APCSA Unit 7

APCSA Unit 7

9th - 12th Grade

12 Qs

Unit 8 - Searching and Sorting

Unit 8 - Searching and Sorting

9th - 12th Grade

15 Qs

SDD HSC Quiz 4Review Q1-10

SDD HSC Quiz 4Review Q1-10

12th Grade

10 Qs

Unit 6/7 B  Quiz #2  Objects in lists and arrays, searching , so

Unit 6/7 B Quiz #2 Objects in lists and arrays, searching , so

9th - 12th Grade

12 Qs

Struktur Data

Struktur Data

9th - 12th Grade

20 Qs

Array Search & Sort Quiz

Array Search & Sort Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Tony Banning

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of the best case for linear search in an array?

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In binary search, the array must be:

Unsorted

Sorted in descending order

Sorted in ascending order

Sorted or unsorted

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case time complexity of bubble sort?

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

During selection sort, what happens in each iteration?

The smallest element is moved to the end of the array.

The largest element is moved to the beginning of the array.

The smallest element is moved to its correct position.

The array is divided into two parts.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about insertion sort?

It is more efficient on large lists than selection sort.

It builds the final sorted array one item at a time.

It is not suitable for small data sets.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does array traversal mean?

Sorting the array

Accessing each element of the array once

Deleting elements from the array

Increasing the size of the array

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a characteristic of binary search?

It is a divide and conquer algorithm.

It can be used on unsorted arrays.

It repeatedly divides the search interval in half.

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?