Chapter 6 : Sorting and Searching

Chapter 6 : Sorting and Searching

University

25 Qs

quiz-placeholder

Similar activities

Year 6 Computing Summer End-Term Assessment

Year 6 Computing Summer End-Term Assessment

6th Grade - University

24 Qs

Search_N_Sort

Search_N_Sort

University

23 Qs

Algorithm Design

Algorithm Design

University

25 Qs

DATABASE

DATABASE

University

20 Qs

EC8393_FDS_MODEL EXAM_3_PART A

EC8393_FDS_MODEL EXAM_3_PART A

University

30 Qs

Exploring Trees and Graph Algorithms

Exploring Trees and Graph Algorithms

University

20 Qs

CSC 202 (Comp Prog II) - Comp. Sci

CSC 202 (Comp Prog II) - Comp. Sci

University

20 Qs

DATA STRUCTURE AND ALGORITHM

DATA STRUCTURE AND ALGORITHM

University

20 Qs

Chapter 6 : Sorting and Searching

Chapter 6 : Sorting and Searching

Assessment

Quiz

Computers

University

Hard

Created by

Azilah Rahim

Used 3+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of sorting in computer science?

To perform arithmetic operations

To store data in memory

To arrange data in a specific order

To compress data

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sorting algorithms repeatedly finds the smallest element from an unsorted part of the list and places it at the beginning?

Insertion Sort

Selection Sort

Merge Sort

Quick Sort

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which sorting algorithm is the data divided into smaller sub-arrays that are sorted individually and then merged?

Bubble Sort

Selection Sort

Insertion Sort

Merge Sort

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting method is most efficient for a small, nearly sorted array?

Bubble Sort

Insertion Sort

Selection Sort

Quick Sort

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Quick Sort, what is the process of selecting an element and rearranging the array around it called?

Merging

Partitioning

Insertion

Swapping

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm works by repeatedly swapping adjacent elements if they are in the wrong order?

Bubble Sort

Selection Sort

Quick Sort

Merge Sort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When should Merge Sort be preferred over Quick Sort?

When the list is large and requires guaranteed O(nlog⁡n)O(n \log n)O(nlogn) performance

When the list is small and nearly sorted

When in-place sorting is required

When the list contains duplicate values

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?