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

  1. Pythagoras Triangle
  2. Rectangle Answers
  3. Temperature Sensor
  4. Fizz Buzz
  5. Looping Song
  6. Train Tickets
  7. Painkiller Dosage
  8. Pocket Money Totals
  9. Calculate journey time
  10. Maths Quiz
  11. Swap two variables
  12. Convert a decimal number into a 2 digit hexadecimal number
  13. Betting on a Coin Toss Game
  14. Return the Day of the Week 1
  15. Return the Day of the Week 2
  16. Add up all the numbers in an array
  17. Generate squared numbers
  18. Leftover apples function
  19. Word guesser
  20. Bubble Sort
  21. checkDiscount() function

A Level Pseudocode examples

  1. Pet Class
  2. Dog Class (inheriting from Pet)
  3. Hangman

Javascript Examples (More TBC)

  1. Login Function