What is a merge sort?
Show the stages in the merge sort for the following:
{38, 27, 43, 3, 9, 82, 10}
GCSE Computing Flash Quiz
Quiz
•
Computers
•
10th - 11th Grade
•
Easy
Dan Hawker
Used 5+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
What is a merge sort?
Show the stages in the merge sort for the following:
{38, 27, 43, 3, 9, 82, 10}
Divide and Conquer method suitable for large lists, or lists that are more unordered
2.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Show how an insertion sort works
You have a sorted and unsorted list, with the sorted list usually on the left. Each new item from the unsorted list is then inserted into the sorted list. Like sorting out a hand of playing cards
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is abstraction?
Getting rid of unnecessary detail and concentrating on the important parts.
You must use the word "unnecessary"
It makes things less complicated, which means its quicker and simpler to program.
.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is Decomposition?
Breaking a problem down into smaller parts the are easier to understand.
Problem >> Sub-problem >> smaller parts until each problem can be solved
.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How does Binary Search work?
The list must be sorted for this search method to work.
Split the list into two equal lists (find the midpoint)
Compare search term (target value) with midpoint.
If target value greater than midpoint, discard the first half. If lesser, discard the second half.
Repeat until item is found
NB if the list has an even number of items N, then the mid point is the N / 2 item. For odd numbers of items, the mid point is the item in the middle (N/2 rounded up)
If a question asks you to compare to Linear Search, use the word "whereas" in your answer. E.g., a binary search requires a sorted list, whereas a linear list does not
.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How does Linear Search work?
Linear search can work on unsorted lists
Each item on the list is taken in turn and compared to the target value, until it is found! Or until the entire list is checked and the item is not included
If a question asks you to compare to Binary Search, use the word "whereas" in your answer. E.g., a binary search requires a sorted list, whereas a linear list does not
.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How does bubble sort work?
Takes a list and compares the first 2 values. If the second is less than the first, do a swap.
Then continue and compare each "pair" of adjacent items along the list, and swap where needed. Continue until the end of the list is reached.
Then repeat from the start
Keep repeating until the order of the list doesn't change
Low values "bubble" to the top of the list, and large values "sink" to the bottom of the list.
The bubble sort is simple to understand, but inefficient in most cases compared to e.g., insertion sort
.
15 questions
AP CSP Exam Review: Big Idea 3
Quiz
•
8th - 10th Grade
15 questions
Code.org - Unit 6 Review
Quiz
•
9th - 12th Grade
10 questions
Searching & Sorting Algorithms
Quiz
•
11th Grade
11 questions
GCSE Computer Science Paper 2: Topic 1
Quiz
•
10th Grade
10 questions
Algorithms
Quiz
•
9th - 12th Grade
10 questions
Teknologi Informasi dan Komunikasi
Quiz
•
10th - 12th Grade
10 questions
Advanced Python Iteration Quiz
Quiz
•
10th Grade
16 questions
2.1 Linear and Binary Searching Algorithms
Quiz
•
8th - 10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University