Skip to content
Brainlag

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 questionsTopicDifficulty
Variables and constants GCSE Computer Science: Programming in exam style1 mark
Strings, numbers and casting GCSE Computer Science: Programming in exam style1 mark
Selection: what is output? GCSE Computer Science: Programming in exam style1 mark
A for loop GCSE Computer Science: Programming in exam style2 marks
A while loop GCSE Computer Science: Programming in exam style2 marks
Which kind of loop? GCSE Computer Science: Programming in exam style1 mark
Array indexes GCSE Computer Science: Programming in exam style1 mark
Normal, boundary or erroneous? GCSE Computer Science: Programming in exam style1 mark
A function that returns a value GCSE Computer Science: Writing code2 marks
A function using DIV and MOD GCSE Computer Science: Writing code2 marks
Largest or smallest of three GCSE Computer Science: Writing code3 marks
A function with selection GCSE Computer Science: Writing code3 marks
A function with a loop GCSE Computer Science: Writing code3 marks
Pseudocode into Python GCSE Computer Science: Writing code4 marks
A function on factors GCSE Computer Science: Writing code4 marks
Two functions, one calling the other GCSE Computer Science: Writing code5 marks
A range check GCSE Computer Science: Writing code2 marks
A length check GCSE Computer Science: Writing code2 marks
A format check GCSE Computer Science: Writing code4 marks
Validate input in a loop GCSE Computer Science: Writing code4 marks
An authentication routine GCSE Computer Science: Writing code5 marks
A password strength check GCSE Computer Science: Writing code4 marks
Check a login against stored lists GCSE Computer Science: Writing code3 marks
A type check on text GCSE Computer Science: Writing code3 marks
Complete the return line GCSE Computer Science: Onscreen programming2 marks
Replace a fixed value with a parameter GCSE Computer Science: Onscreen programming3 marks
Complete a main program that calls subroutines GCSE Computer Science: Onscreen programming3 marks
Complete the lines inside a loop GCSE Computer Science: Onscreen programming4 marks
Complete a procedure that prints a line GCSE Computer Science: Onscreen programming3 marks
Complete a function with the math library GCSE Computer Science: Onscreen programming3 marks

Questions are shared by every board that teaches the topic.