Practice questions
A free sample of Brainlag Learn questions. Choose a course, then filter by topic and difficulty. Each question opens in Learn, where it is marked and explained.
1415 questions
| Practice questions | Topic | Difficulty |
|---|---|---|
| Variables and constants | GCSE Computer Science: Programming in exam style | 1 mark |
| Strings, numbers and casting | GCSE Computer Science: Programming in exam style | 1 mark |
| Selection: what is output? | GCSE Computer Science: Programming in exam style | 1 mark |
| A for loop | GCSE Computer Science: Programming in exam style | 2 marks |
| A while loop | GCSE Computer Science: Programming in exam style | 2 marks |
| Which kind of loop? | GCSE Computer Science: Programming in exam style | 1 mark |
| Array indexes | GCSE Computer Science: Programming in exam style | 1 mark |
| Normal, boundary or erroneous? | GCSE Computer Science: Programming in exam style | 1 mark |
| A function that returns a value | GCSE Computer Science: Writing code | 2 marks |
| A function using DIV and MOD | GCSE Computer Science: Writing code | 2 marks |
| Largest or smallest of three | GCSE Computer Science: Writing code | 3 marks |
| A function with selection | GCSE Computer Science: Writing code | 3 marks |
| A function with a loop | GCSE Computer Science: Writing code | 3 marks |
| Pseudocode into Python | GCSE Computer Science: Writing code | 4 marks |
| A function on factors | GCSE Computer Science: Writing code | 4 marks |
| Two functions, one calling the other | GCSE Computer Science: Writing code | 5 marks |
| A range check | GCSE Computer Science: Writing code | 2 marks |
| A length check | GCSE Computer Science: Writing code | 2 marks |
| A format check | GCSE Computer Science: Writing code | 4 marks |
| Validate input in a loop | GCSE Computer Science: Writing code | 4 marks |
| An authentication routine | GCSE Computer Science: Writing code | 5 marks |
| A password strength check | GCSE Computer Science: Writing code | 4 marks |
| Check a login against stored lists | GCSE Computer Science: Writing code | 3 marks |
| A type check on text | GCSE Computer Science: Writing code | 3 marks |
| Complete the return line | GCSE Computer Science: Onscreen programming | 2 marks |
| Replace a fixed value with a parameter | GCSE Computer Science: Onscreen programming | 3 marks |
| Complete a main program that calls subroutines | GCSE Computer Science: Onscreen programming | 3 marks |
| Complete the lines inside a loop | GCSE Computer Science: Onscreen programming | 4 marks |
| Complete a procedure that prints a line | GCSE Computer Science: Onscreen programming | 3 marks |
| Complete a function with the math library | GCSE Computer Science: Onscreen programming | 3 marks |
Questions are shared by every board that teaches the topic.