OCR Exam Reference Language (pseudocode) Questions
Drag and drop the lines into the right order and indentation
The order is important to check it's correct - please read the question carefully!
Watch out: Some of the easier questions have extra lines (called 'distractors') that aren't needed in the final code!
GCSE Pseudocode examples
GCSE OCR Exam Reference Language can be found from page 25 of the specification
- Pythagoras Triangle
- Rectangle Answers
- Temperature Sensor
- Fizz Buzz
- Looping Song
- Train Tickets
- Painkiller Dosage
- Pocket Money Totals
- Calculate journey time
- Maths Quiz
- Swap two variables
- Convert a decimal number into a 2 digit hexadecimal number
- Betting on a Coin Toss Game
- Return the Day of the Week 1
- Return the Day of the Week 2
- Add up all the numbers in an array
- Generate squared numbers
- Leftover apples function
- Word guesser
- Bubble Sort
- checkDiscount() function
A Level Pseudocode examples
- Pet Class
- Dog Class (inheriting from Pet)
- Hangman
Javascript Examples (More TBC)
- Login Function