Programming concepts for GCSE Computer Science
GCSE Computer Science, Programming. Usually met in years 9 to 11.
Practise the programming concepts in AQA-style pseudo-code: data types, strings, subroutines, Boolean operators, validation and testing.
What you practise
- Data types and string handling
- Subroutines, parameters and return values
- Boolean operators, validation and test data
Starts with choosing a data type and builds to loops with AND and OR. Practice moves up a level when a round goes well and down when it does not.
Sample questions
Each sample comes with the method and the reason every wrong option is wrong. Real practice rounds are ten questions at your level.
Sample question, level 2 of 5
What does this program output? (+ joins two strings.)
a ← 'book'
b ← 'note'
OUTPUT a + b
- 8
- book note
- book + note
- notebook
- booknote
Show the answer and method
Answer: E, booknote
The method: Concatenating 'book' and 'note' gives 'booknote'.
Why the other options are wrong:
- A, 8: With strings, + joins them; it does not add their lengths.
- B, book note: Concatenation adds no space between the strings.
- C, book + note: The + joins the strings; it is not printed.
- D, notebook: The strings are joined in the order they are written: a, then b.
Sample question, level 4 of 5
Which term means: testing each part of a program as it is written, and again after each change?
- Iterative testing
- Boolean
- Two-dimensional array
- Erroneous test data
- Indentation
Show the answer and method
Answer: A, Iterative testing
The method: Iterative testing means testing each part of a program as it is written, and again after each change.
Why the other options are wrong:
- B, Boolean: Boolean means a data type with only two values, True and False.
- C, Two-dimensional array: Two-dimensional array means an array of rows and columns, like a table.
- D, Erroneous test data: Erroneous test data means values of the wrong type, or nonsense, that a program should reject.
- E, Indentation: Indentation means spacing lines in from the margin to show the structure of the code.
See where this fits: every GCSE option topic and Key Stage 3.
Related topics: Tracing code, Searching and sorting.