ASCII and its bits per character
A character set that gives each character a 7-bit code (128 characters), usually stored in 8 bits. Extended ASCII uses 8 bits for 256 characters.
Understanding ASCII and its bits per character in IGCSE Computer Science Paper 1
What it does: The code for A is 65, which is 1000001 in 7 bits. Stored in 8 bits it becomes 01000001 with an extra 0 at the front. ASCII only has 128 characters for English letters, digits and punctuation, so other alphabets need a bigger set like Unicode. 2^7 = 128. The value 256 is for extended ASCII, which uses 8 bits (2^8). ASCII stands for American Standard Code for Information Interchange. 8 bits make 1 byte, so each stored ASCII character usually takes one byte. With 7 bits there are 2^7 = 128 different codes, so standard ASCII has 128 characters.
Common mistakes: The number of different codes is 2 to the power of the bits, so it must be 2 ** bits. 2 ** 7 = 128 characters. 2 * bits gives 14, which is wrong. To get the ASCII number for a character you use ord(). chr() goes the other way (number to character) and would cause an error here. It should be code = ord(char).
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 28–41) and word search (Modules 28–58).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
ASCIIFill in the Blanks
Spot the Error
Student with a class code? Join your class →