Questions: Programming in exam style
Pick a question type. Each time you get new numbers. Free ones are marked free.
Data types and operators
- Choose a data typeState, 1 mark, free
- MOD and DIVCalculate, 2 marks, free
- Operator precedenceState, 1 mark, free
- Boolean operatorsState, 1 mark, free
- Variables and constantsIdentify, 1 mark, free
- Strings, numbers and castingState, 1 mark, free
Selection and iteration
- Selection: what is output?State, 1 mark, free
- A for loopState, 2 marks, free
- A while loopState, 2 marks, free
- Which kind of loop?Identify, 1 mark, free
- Trace table: a while loopComplete, 4 marks, Plus
- Trace table: a repeat until loopComplete, 4 marks, Plus
- How many times does it repeat?State, 1 mark, Plus
- Nested loops: the outputWrite down, 2 marks, Plus
- Find and fix a loop errorIdentify, 2 marks, Plus
Arrays and strings
- Array indexesState, 1 mark, free
- Looping through an arrayState, 2 marks, Plus
- Two-dimensional arraysState, 2 marks, Plus
- SubstringsState, 1 mark, Plus
- String lengthState, 1 mark, Plus
- Character codesState, 2 marks, Plus
- Building a stringState, 2 marks, Plus
- Looping through a stringState, 1 mark, Plus
Subroutines
- Functions: what is output?State, 2 marks, Plus
- Subroutines: factsIdentify, 1 mark, Plus
- Local and global variablesIdentify, 3 marks, Plus
- A procedure called in a loopWrite down, 2 marks, Plus
- Why use subroutines?Explain, 3 marks, Plus
- A function that calls a functionState, 2 marks, Plus
Robust programs and testing
- Normal, boundary or erroneous?Identify, 1 mark, free
- Complete a test planComplete, 2 marks, Plus
- Validation checksIdentify, 1 mark, Plus
- An input validation loopState, 2 marks, Plus
- Syntax or logic error?Identify, 1 mark, Plus
- Robust and maintainable programsIdentify, 1 mark, Plus
SQL, files and random numbers
- SQL: what does this return?Write down, 2 marks, Plus
- SQL: how many records?State, 1 mark, Plus
- SQL: choose the right queryIdentify, 1 mark, Plus
- SQL: ORDER BYWrite down, 2 marks, Plus
- FilesIdentify, 1 mark, Plus
- Random numbersIdentify, 1 mark, Plus
- Write an algorithm (6 marks)Write, 6 marks, Plus
AQA, Pearson Edexcel and OCR are registered trade marks of their owners. Brainlag Learn is independent: it is not affiliated with or endorsed by any exam board, and every question on it is original.