Unit bundle · Written for OCR J277

Characters, Images, Sound, Strings and Arrays – OCR GCSE Computer Science lessons (J277)

11 OCR J277 lessons on ASCII and Unicode, images, sound, compression and file size calculations, with strings and arrays.

Also in a bundle Year 10 GCSE Computer Science – a full year of OCR J277 lessons 71 lessons for £169 · save 40% on buying separately

The fourth GCSE unit keeps both papers side by side. On the Paper 1 track pupils learn how every kind of data becomes binary: characters through ASCII and Unicode, images as pixels with a colour depth and resolution, and sound as samples with a sample rate and bit depth – then calculate how big each file will be, and why lossy and lossless compression make files smaller. On the Paper 2 track pupils program with text and lists: string manipulation, then 1D and 2D arrays processed with the FOR loops from 10.3. Every lesson is set in one summer music festival's app – its act names, wristband codes, photos, live recordings, stage line-ups and campsite map – so the file sizes and programs pupils work out are the ones a real app has to handle.

Unit 10.4 is taught in Year 10, Spring 2, and answers one big question: How does a computer store text, pictures and sound? Every lesson uses the same real-world context (one summer music festival's app runs through the unit: act names from around the world, fans' wristband codes, festival photos, live-set recordings, the stage line-ups and the campsite map), and pupils make wristband-code and line-up programs, a campsite booking program, and the app's file-size and compression decisions. The careers link is a mobile app developer: a mobile app developer decides how an app stores text, photos and audio, keeps files small enough to download quickly, and writes the code that handles lists of data – the skills in this unit.

What happens in each lesson:

Lesson 1, Character sets: ASCII and Unicode: How does a computer store the letters we type?

Lesson 2, String manipulation: How can a program take apart and join up text?

Lesson 3, Images: pixels, colour depth, resolution, metadata: How does a computer store a picture as binary? Main task: complete the binary encoding of the 6 × 6 stage icon using the 2-bit colour key: write the 12 bits for each of the six rows. Then explain how the icon's quality and file size would change if its colour depth were cut to 1 bit.

Lesson 4, Image file size calculations: How big will an image file be before we save it? Main task: calculate the file size of each festival photo in bytes and in kilobytes, showing every step: A) 400 × 300 pixels, 24-bit colour depth; B) 800 × 600 pixels, 8-bit; C) 640 × 480 pixels, 24-bit. Then state which photos fit the app's 500 KB upload limit.

Lesson 5, 1D arrays: How can one variable hold a whole list of values? Main task: write a program that stores the day's sales for five food stalls in an array: 120, 85, 40, 210 and 95. Use a FOR loop to print each stall's position and sales and to add up the total, then print the total. Finally, let the user enter a stall's position and its new sales, change that array element, and print the array.

Lesson 6, Sound: sample rate and bit depth: How can a computer record a sound wave as numbers? Main task: complete a 3-bit sampling of the festival clip's sound wave: read its height at each second from 0 s to 7 s and write each sample in binary. Then explain how increasing the sample rate, and increasing the bit depth, would each change the recording's quality and file size.

Lesson 7, Sound file size calculations: How much storage does a recorded sound need? Main task: calculate the file size in MB of each festival recording, showing every step: A) a 30-second voice note at 8,000 Hz, 8-bit; B) a 2-minute clip at 44,100 Hz, 16-bit; C) a 5-minute live set at 22,050 Hz, 8-bit. State which recordings fit the app's 10 MB limit, and suggest one setting change that would let the others fit.

Lesson 8, 2D arrays: How can a program store a table of data? Main task: write a program that stores the campsite map as a 2D array of 3 rows × 4 pitches ("F" = free, "T" = taken), using the map shown. It should input a row index and a pitch index, book that pitch by changing it to "T", then use nested FOR loops to count and print how many pitches are still free.

Lesson 9, Lossy and lossless compression: How can we make files smaller, and what do we lose? Main task: complete the decision table for the four files the festival app sends – a fan's photo, a ticket QR code, a live-set clip and the app's update: choose lossy or lossless compression for each, and explain each choice by its effect on quality and file size.

Lesson 10, Data capacity calculations, mixed: How many files will fit on a storage device? Main task: calculate the storage needed for one day of festival media, showing your working: 400 photos (4,000 × 3,000 pixels, 24-bit colour depth), 20 live clips (3 minutes each, 44,100 Hz, 16-bit) and the line-up text file (5,000 characters, 8 bits per character). Decide whether it all fits within the data capacity of a 32 GB memory card, then calculate how many more photos would fit in the space left.

Lesson 11, Progress Check: 25 multiple-choice questions (the teacher assigns them to the class as homework or at the start of the next lesson) + a 40-minute written paper of 40 marks (Section A 26 marks, Section B 14 marks), printed with its Mark Scheme.

Misconceptions it tackles include
“Upper case and lower case letters share the same code, so 'A' and 'a' are both 65”; “A slice includes its end position, so word[0:3] gives four characters”; “Doubling the colour depth doubles the number of colours (4 bits → 8 colours, 8 bits → 16)”. Each is planned into a hinge question before the main task or an exit question, so you find out who still holds it.
OCR J277 specification coverage
1.2.3, units: converting between bits, bytes, kilobytes and megabytes; calculating the file size of text, image and sound files, and data capacity requirements; 1.2.4, data storage – characters: character sets, ASCII and Unicode, bits per character and the number of characters represented. Images: pixels, colour depth, resolution and metadata. Sound: sampling, sample rate, duration and bit depth, and their effect on quality and file size; 1.2.5, compression: the need for compression; lossy and lossless compression; 2.2.3, additional programming techniques: string manipulation (length, case, substrings, concatenation, ASCII conversion) and 1D and 2D arrays.

It builds on 10.3 Binary, Boolean Logic and Iteration (units of data, binary and denary, FOR loops), 10.2 secondary storage and capacity, 10.1 data types and casting, and KS3 7.5 Images, Sound and Digital Media and 9.1 Python: Lists and Functions. It leads on to 10.5 Networks and Searching (linear and binary search work through arrays; file sizes decide how long downloads take), 10.6 sorting algorithms on arrays, 11.1 input validation with string functions, 11.2 file handling and records, 11.4 revision.

Adapting it for your school
Lessons 1, 3, 4, 6, 7, 9 and 10 need no computers. The programming lessons (2, 5, 8) work in any Python 3 editor; each has a paper version for when the computer room is not available. Python and OCR Exam Reference Language differ: Python slices with [start:end] but OCR's substring(start, length) takes a length; OCR declares arrays with a size (array stalls[5]) and writes 2D indexes as camp[2,1]. OCR accepts 1,000 or 1,024 for unit conversions; these lessons use 1,000, as 10.3 does. Change the worked examples if your department prefers 1,024. Swap the festival app for any app pupils know, such as a school events app or a sports club's app, keeping the same numbers.

Two versions in one download. The "With quiz" folder is for schools with a Code & Commerce Quizzes subscription: wherever the lessons use a Progress Check, its multiple-choice questions are ready-made on the quiz site for you to set, with a printed version as the backup. The "Without quiz" folder is the same teaching for standalone use, with no mention of the quiz site and every check on paper. You don't need a quiz subscription to use it.

What's included

  • 11 lesson slide decks (PowerPoint)
  • 11 lesson plans (Word)
  • 11 worksheets, plus 10 support versions with scaffolds (Word)
  • 1 exam-style paper with mark scheme (Word)
  • Medium term plan with intent, key words, misconceptions and adaptive teaching notes (Word)
  • Progress Check lesson to assess the unit
  • Data capacity calculations mixed - Quiz Quiz Trade Cards
  • Department licence: every teacher in your department can use and adapt it
  • Two versions of the files: one for Code & Commerce Quizzes subscribers and one for standalone teaching, no quiz site needed

In this bundle

Worth £44 bought separately at £4 a lesson. The bundle saves you 11%.

More for GCSE Computer Science (OCR)

See all

Written for the specifications named. Not endorsed by or affiliated with any exam board.