Full Marks

GCSE Computer Science · Topic 1

Algorithms and programming

Algorithms and programming is about thinking like a computer scientist and turning ideas into working code.

We will use abstraction and decomposition, and represent algorithms in pseudocode and flowcharts.

Then we cover the programming basics: variables, data types, selection, iteration, arrays and subroutines.

In this topic

  1. 1.1Computational thinking and algorithmsFree below · 31 questions
  2. 1.2Programming fundamentalsOpen in Full Marks · 27 questions

1.1 · Free notes

Computational thinking and algorithms

Diagram: Computational thinking and algorithms

Key points

In more detail

Practice

Computational thinking and algorithms: 10 questions

Pick an answer to check it, or open the answer for the explanation.

1. Which search algorithm works on an unsorted list?

  1. Binary search
  2. Linear search
  3. Merge search
  4. Both work equally
Show answer

B: Linear search. Binary search requires the data to be sorted first.

2. What is abstraction?

  1. Breaking a problem into smaller parts
  2. Removing unnecessary detail to focus on what matters
  3. Writing code in binary
  4. Testing a program
Show answer

B: Removing unnecessary detail to focus on what matters. Abstraction simplifies a problem so it can be modelled.

3. Which sort repeatedly compares and swaps adjacent values?

  1. Merge sort
  2. Insertion sort
  3. Bubble sort
  4. Binary sort
Show answer

C: Bubble sort. Bubble sort is simple to code but inefficient on large lists.

4. Which flowchart symbol represents a decision?

  1. Oval
  2. Rectangle
  3. Diamond
  4. Parallelogram
Show answer

C: Diamond. A diamond has branches for true and false.

5. What is a trace table used for?

  1. Storing data permanently
  2. Recording variable values step by step to test an algorithm
  3. Compiling code
  4. Encrypting data
Show answer

B: Recording variable values step by step to test an algorithm. It helps find logic errors by hand.

6. What is decomposition?

  1. Removing detail
  2. Breaking a problem into smaller sub-problems
  3. Testing code
  4. Sorting data
Show answer

B: Breaking a problem into smaller sub-problems. Each smaller part is easier to solve.

7. How many comparisons does binary search need at most on a sorted list of 8 items?

  1. 2
  2. 3
  3. 4
  4. 8
Show answer

B: 3. Each step halves the list: 8 → 4 → 2 → 1.

8. Which flowchart symbol shows input or output?

  1. Oval
  2. Rectangle
  3. Diamond
  4. Parallelogram
Show answer

D: Parallelogram. Rectangles show processes.

9. A list of 1,000 sorted names is searched with binary search. Roughly how many comparisons are needed at most?

  1. 100
  2. 500
  3. 10
  4. 1,000
Show answer

C: 10. Each comparison halves the list: 1,000 → 500 → ... → 1 takes about 10 steps (2^10 = 1,024). Linear search could need 1,000.

10. Which statement about merge sort is correct?

  1. It splits the list, sorts the parts and merges them
  2. It only swaps adjacent items repeatedly
  3. It needs the data to be already sorted
  4. It builds the list by checking each item in turn
Show answer

A: It splits the list, sorts the parts and merges them. Merge sort uses divide and conquer: split, sort the halves, then merge. Swapping adjacent items describes bubble sort.

Keep going in Full Marks

Full Marks has 31 questions on Computational thinking and algorithms (21 more than here), set out in practice levels. You also get notes and 3D models for all 2 subtopics of Algorithms and programming, plus games, timed exams and past papers.

On your exam board

All GCSE Computer Science topics