Skip to content

Course home

Robust and secure programming

Robust and secure programming

EasyMediumHard
12345678
Question 4

A developer implements an algorithm designed to perform Run-Length Encoding (RLE) on strings of uppercase alphabetic characters. The algorithm is meant to group consecutive identical characters and output each character followed by its count. For example, the input 'WWXXXY' should output W2X3Y1.

The developer tests their implementation with only one test case:

  • Input: 'GGGGGG'
  • Output: G6

The test was successful, but testing with only a single test case is insufficient.

Using example test data, state three further tests that the developer should use to improve the testing of their code. For each test, you must state the input data and the expected output.

[3]
Markscheme

Robust and secure programming Questions

  1. GCSE
  2. /Computer Science
  3. /Robust and secure programming

27 exam-style questions on AQA GCSE Computer Science Robust and secure programming. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank