Year 9 Computer Science: Sorting Algorithms and Logic Gates
Computer Science
Year 9
10 questions
~20 mins
0 views0 downloads
About This Worksheet
This worksheet assesses your understanding of sorting methods and basic logic gates. Read each question carefully and provide clear, concise answers.
Worksheet Preview
Full preview • 10 questions
Year 9 Computer Science: Sorting Algorithms and Logic Gates
Subject: Computer ScienceGrade: Year 9
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz
Untitled Worksheet
Grade Year 9
A
Questions
This worksheet assesses your understanding of sorting methods and basic logic gates. Read each question carefully and provide clear, concise answers.
Answer all questions in the spaces provided.
1.
Describe in your own words how a bubble sort algorithm works to sort a list of numbers.
[4 marks]2.
Given the list of numbers: 8, 3, 5, 1, 4, show the list after the first pass of the bubble sort algorithm.
[3 marks]3.
Explain the difference between a merge sort and a quick sort algorithm.
[4 marks]4.
Describe a scenario where insertion sort might be preferable over other sorting algorithms.
[3 marks]5.
Complete the truth table for the AND gate with inputs A and B and output C:
[4 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
6.
Complete the truth table for the OR gate with inputs A and B and output C:
[4 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
7.
Draw a logic circuit using AND, OR, and NOT gates that represents the logical expression: (A AND B) OR (NOT C).
[6 marks]Drawing / Sketch space
8.
Sketch a flowchart that describes the process of sorting a list of numbers using bubble sort.
[8 marks]Drawing / Sketch space
9.
Explain why merge sort has a better worst-case time complexity than bubble sort.
[3 marks]10.
Describe how you could modify a bubble sort algorithm to make it more efficient when the list is already nearly sorted.
[3 marks]Quick Actions
What is Remix?
Create a new worksheet based on this one. Change the grade level, topic, number of questions, or difficulty - then generate a fresh version.
- • Change grade level (Grade 6 → Grade 7)
- • Swap topics (Harry Potter → Macbeth)
- • Add more questions (10 → 15)
- • Adjust difficulty
Details
- Created
- 1/2/2026
- Updated
- 1/2/2026
- Type
- worksheet