How many different characters can 7-bit ASCII represent?
- 128
- 64
- 256
- 7
Mark scheme: 1 mark for 128, because 7 bits give 2⁷ = 128 possible values, from 0 to 127.
Everything a computer stores is a pattern of ones and zeros. This topic is about how the same binary building blocks are arranged to hold numbers, text, pictures, sound and compressed data, and how you work backwards from what is stored to what it means. It is the most calculation-heavy part of Paper 2, and the calculations are all variations on the same two ideas: count the bits, and read the pattern.
What a character set is
Understand what a character set is and be able to describe the following character encoding methods: 7-bit ASCII and Unicode. A character set is the agreed list of characters that a system can represent, and an encoding is the scheme that gives each one a number. ASCII was designed for English; Unicode was designed to represent the characters of the world's alphabets.
Key fact: A character set is the agreed list of characters; the encoding assigns each one a number.
Using an encoding table
Students should be able to use a given character encoding table to convert characters to character codes and convert character codes to characters. The table is the authority — you do not need to memorise it, but you should be able to read one. Check whether the table is for uppercase, lowercase or both before you start.
Key fact: Use the given table to convert in both directions; check whether it is upper or lower case.
Codes run in sequence
Character codes are commonly grouped and run in sequence within encoding tables. In ASCII 'A' is coded as 65, 'B' as 66, and so on, meaning that the codes for the other capital letters can be calculated once the code for 'A' is known. The same pattern applies to other groupings such as lower case letters and digits, and that is why you can often work out a code without the table.
Key fact: Codes run in sequence within a group, so once you know one you can calculate the rest.
What ASCII can and cannot do
7-bit ASCII uses 7 bits, so it can represent 2⁷ = 128 different values, from 0 to 127. That covers the upper case letters, the lower case letters, the digits, and a set of punctuation and control characters. It is enough for English and nothing more — there is no room for the accented letters used in French, Spanish or German, let alone a whole other alphabet.
Key fact: 7-bit ASCII gives 128 values, enough for English but not for other alphabets.
What Unicode adds
Describe the purpose of Unicode and the advantages of Unicode over ASCII. Unicode exists so that characters from every alphabet, plus special symbols, can all be represented. Unicode uses the same codes as ASCII up to 127, so every ASCII character keeps the same number and old files still work. It is not necessary to be familiar with UTF-8, UTF-16 or other versions of Unicode.
Key fact: Unicode covers every alphabet and special symbol, and keeps the ASCII codes unchanged for the first 128 characters.
Why it matters in the exam
The exam gives you a table and expects you to use it, and it also expects the reasoning: why one encoding cannot store what another can, and what happens to a file when a system assumes the wrong encoding. The classic example is a document written in one language opened on a system that does not have the characters, so the file is intact but unreadable — the data is fine, the interpretation is wrong.
Key fact: A file can be undamaged and still unreadable if the encoding does not match.
What is the character code for 'A' in ASCII?
65.
How many different values can 7-bit ASCII represent?
128, from 0 to 127, because there are 2⁷ combinations.
What is the main advantage of Unicode over ASCII?
It can represent the characters of many alphabets and a far greater range of special symbols.
What relationship does Unicode have to ASCII?
Unicode uses the same codes as ASCII up to 127, so the first 128 characters are unchanged.
Do you need to know about UTF-8 and UTF-16?
No, it is not necessary to be familiar with UTF-8, UTF-16 or other versions of Unicode.
Why do codes run in sequence?
So that once one code in a group is known, the rest of the group can be calculated, which is why 'A' being 65 means 'B' is 66.
Written in the style of AQA Computer Science, with a mark scheme for each one. No question here is a real past paper question.
How many different characters can 7-bit ASCII represent?
Mark scheme: 1 mark for 128, because 7 bits give 2⁷ = 128 possible values, from 0 to 127.
Explain in English why character codes run in sequence within a group, and how this helps you use an encoding table.
Mark scheme: 1 mark for explaining that codes in a group are assigned consecutively, so 'A' is 65 and 'B' is 66. 1 mark for explaining that this means the rest of a group can be calculated once one code in it is known. 1 mark for giving a correct example, such as working out the code for 'C' as 67 without looking it up.
Explain in English the difference between ASCII and Unicode, and what happens when a document is opened on a system with the wrong character set.
Mark scheme: Level 1 (1-2 marks): A short answer saying ASCII covers 128 English characters and Unicode covers far more. Level 2 (3-4 marks): A structured answer covering both encodings and the sequence property. Level 3 (5-6 marks): A detailed answer explaining that 7-bit ASCII gives 128 values which cover English but no other alphabet, that Unicode was created to represent many alphabets and special symbols and keeps the ASCII codes unchanged for the first 128 values, that codes run in sequence within a group so they can be calculated, and explaining that a file can be perfectly intact and still unreadable when the system interpreting it does not have the characters, so the data is fine but the interpretation is wrong.
Answer them in the interactive view and they get marked against the same mark scheme, one mark at a time, with the reason for each mark.
Open the interactive topic →