Worksheet library · GCSE
Component 2: Computational Thinking, Algorithms and Programming GCSE Computer Science Worksheets, Questions and Revision
11 original Component 2: Computational Thinking, Algorithms and Programming worksheet packs - 170 printable pages with full mark schemes. Algorithms, programming fundamentals, Boolean logic, data representation and SQL. View any pack in the browser or open the print-ready PDF.
See the method: Algorithms
An array called nums contains the values [4, 1, 7, 3], to be sorted into ascending order using a bubble sort that compares and swaps adjacent items. Show the state of the array after each comparison in the first full pass.
- Compare index 0 and 1 (4 and 1): 4 is greater than 1, so swap, giving [1, 4, 7, 3].
- Compare index 1 and 2 (4 and 7): 4 is not greater than 7, so no swap, array stays [1, 4, 7, 3].
- Compare index 2 and 3 (7 and 3): 7 is greater than 3, so swap, giving [1, 4, 3, 7].
- Final answer: after the first pass, the array is [1, 4, 3, 7].
2.1 Algorithms9p + answers · 92 marks · PDF
2.2 Programming Fundamentals9p + answers · 103 marks · PDF
2.3 Producing Robust Programs11p + answers · 93 marks · PDF
2.4 Boolean Logic12p + answers · 83 marks · PDF
2.5 Data Representation: Number Systems9p + answers · 83 marks · PDF
2.6 Data Representation: Images, Sound and Compression11p + answers · 106 marks · PDF
2.7 Programming Practice: Writing and Refining Programs14p + answers · 92 marks · PDF
2.8 SQL and Data Handling9p + answers · 70 marks · PDF
2.9 Trace Tables and Binary/Hex Conversions12p + answers · 103 marks · PDF
2.10 Translators and Integrated Development Environments (IDEs)7p + answers · 72 marks · PDF
2.11 1D and 2D Array Processing: Writing and Tracing Programs9p + answers · 78 marks · PDF
Free for personal and classroom use - see copyright & terms. Every pack ends with its full mark scheme.
Other GCSE Computer Science strands
Build these into a personalised pack.
Pick topics in the Pack Builder and we'll stitch them into one printable book with the student's name on the cover.