Menu

Edexcel GCSE Computer Science (1CP2) Exam Questions

Build a practice paper from 693 exam-style questions, each with its mark scheme and example answers. Print it, or answer it on paper and then open the mark schemes. Or browse the questions by topic.

Build a paper

Topics (none ticked: all of them)
Question types (none ticked: all of them)

Practice paper

4 questions · 11 marks

Pick again
Print
1Multiple choice1 markCharacter Sets Swap Remove

Characters are encoded using 7-bit ASCII.

Identify the number of different characters that can be represented using 7-bit ASCII.

[1 mark]
  • A64
  • B127
  • C128
  • D256
Mark scheme
  • C 128 (1)
  • The only correct answer is C. The correct answer is 128.
  • A is not correct because 6 bits give only 64 different combinations
  • B is not correct because 127 is the largest 7-bit value, not the number of characters that 7 bits can represent
  • D is not correct because 256 characters need 8 bits, as used by 8-bit extended ASCII
Example answers and how they were marked
Full marks1/1

C 128

Why: Selects the only correct option (1): 7 bits give 2 to the power of 7, which is 128 different characters.

No marks0/1

D 256

Why: Near miss scoring 0: 256 is the number of characters that 8 bits give in extended ASCII, not 7-bit ASCII.

No marks0/1

B 127

Why: Misconception scoring 0, the off-by-one error the examiners' report describes: 127 is the largest 7-bit value, but 7 bits give 128 different characters.

2Describe2 marksCharacter Sets Swap Remove

A computer uses 7-bit ASCII to represent characters.

The character M has the ASCII code 77. Describe how the character M is represented in the computer.

[2 marks]
Mark scheme

Award up to two marks for a linked description such as:

  • The denary code 77 is converted to binary (1) to give the 7-bit pattern 1001101 (1)
  • The character M is represented by a unique ASCII code/number (1) that is stored as a 7-bit binary pattern (1)
  • 7 bits are used to store the code for M (1) so 128 different characters can be represented (1)
  • The binary pattern 1001101 is stored in memory (1) using one 7-bit code for each character (1)

Do not accept answers that only state the ASCII code 77, as this is given in the question.

Do not accept 01001101, as this is an 8-bit pattern.

Do not accept ASCII described as a programming language or a method of encryption.

Example answers and how they were marked
Full marks2/2

77 is converted to binary, giving 1001101. This is stored using 7 bits for the character M.

Why: Linked description: converts the code to binary (1) to give the 7-bit pattern 1001101 (1).

Some marks1/2

77 is changed into binary so it can be stored.

Why: Gives the conversion of 77 to binary (1) but does not give the 7-bit pattern 1001101 (0).

No marks0/2

ASCII is a programming language that stores letters as numbers.

Why: Describes ASCII as a programming language, which the mark scheme says is not creditworthy; no linked description of how M is represented.

3Explain2 marksCharacter Sets Swap Remove

A computer system uses a 4-bit code to represent the characters typed on its keyboard.

Explain one limitation of using 4 bits to represent characters.

[2 marks]
Mark scheme

Award up to two marks for a linked explanation such as:

  • Only 16 different characters can be represented (1) so there are not enough characters codes for every letter of the alphabet (1)
  • 4 bits give only 16 different combinations (1) which is not enough for the uppercase letters, lowercase letters, digits and symbols on a keyboard (1)
  • More than 16 characters are needed on a keyboard (1) so some letters, digits or symbols cannot be represented (1)
  • The number of character codes available is limited to 16 (1) because 4 bits give 2 to the power of 4 combinations (1)

For both marks, the expansion must follow/associate with the statement.

Calculating that 4 bits give 2 to the power of 4 = 16 combinations can earn either the point or the linked reason, provided the other half of the answer says what this means (too few characters/codes).

Allow an expansion that names only the letters of the alphabet, e.g. there are not enough character codes for the 26 letters (1).

Do not accept '4 bits can only store 4 characters' (the number of bits is not the number of characters).

Do not accept 'it can only store 16 bits' (16 is the number of character codes/combinations, not the number of bits).

Do not accept 'not enough memory/storage' (the limitation is the number of character codes, not the amount of storage).

Do not accept 'it is limited/smaller' without saying how many characters/codes are available or what cannot be represented.

Example answers and how they were marked
Full marks2/2

Only 16 different characters can be represented, so there are not enough character codes for all 26 letters.

Why: Gives the point that only 16 characters can be represented (1) and links it to the reason that this is fewer than the letters needed (1).

Some marks1/2

Only 16 different characters can be represented.

Why: Gives the point that only 16 characters can be represented (1) but does not explain what cannot be represented.

No marks0/2

It can only store 4 characters because there are 4 bits.

Why: Misconception that the number of bits equals the number of characters, which the mark scheme says not to accept; no creditworthy point.

4Discuss6 marksImages Swap Remove

A handheld games console displays sprites. The console stores each pixel of a sprite using 4 bits. Designers want sprites that contain many shades of green and blue.

Discuss the limitations of using 4 bits to store each pixel of a sprite on the console.

Your answer should include:

  • the number of colours that can be represented
  • the effect on the appearance of the sprite
  • how the limitation could be managed.
[6 marks]
Mark scheme

Indicative content

Number of colours

  • 4 bits give 2^4 = 16 different binary values, so at most 16 colours can be stored for each pixel.
  • The console cannot store every shade that the designers want; colours outside the 16 must be approximated or left out.
  • Adding more bits per pixel would allow more colours, but this may not be possible on the console's hardware.

Effect on appearance

  • The sprite may show banding where a smooth change from green to blue should be.
  • A sprite that needs many shades, such as a detailed landscape, will look unrealistic or have blocks of colour.
  • Simple sprites with flat colours, such as a retro character, can still look acceptable.
  • The limitation is in the number of colours, not the number of pixels; resolution is a separate issue.

Managing the limitation

  • Designers can choose a palette of 16 colours that includes the most important greens and blues for the game.
  • They can design sprites with flat colours rather than smooth gradients.
  • They can use more bits per pixel for important sprites if the console allows it.
  • They can accept that some shades will be approximated and check that the sprite still looks clear on the console's screen.

Levels

  • Level 0 (0 marks): No rewardable content.
  • Level 1 (1–2 marks): Basic, independent points are made, showing elements of understanding of key concepts/principles of computer science. (AO1) The discussion will contain basic information with little linkage between points made or application to the context. (AO2)
  • Level 2 (3–4 marks): Demonstrates adequate understanding of key concepts/principles of computer science. (AO1) The discussion shows some linkages and lines of reasoning with some structure and application to the context. (AO2)
  • Level 3 (5–6 marks): Demonstrates comprehensive understanding of key concepts/principles of computer science to support the discussion being presented. (AO1) The discussion is well developed, with sustained lines of reasoning that are coherent and logically structured, and which clearly apply to the context. (AO2)

Level 3 responses must cover the number of colours and the effect on appearance.

Do not accept 4 bits give 4 colours or 8 colours.

Example answers and how they were marked
Full marks6/6

4 bits per pixel gives 2^4 = 16 different binary values, so each pixel can be only one of 16 colours. The designers want many shades of green and blue, but most of these cannot be stored exactly and must be approximated or left out. This can cause banding where a smooth change from green to blue should be, so a detailed sprite may look unrealistic. A simple sprite with flat colours could still look acceptable. The designers could choose a palette of 16 colours that includes the most important greens and blues, and design sprites with flat colours instead of gradients. Using more bits per pixel would allow more colours, but the console's hardware may not support this.

Why: Explains 2^4 = 16 colours and the limitation on shades, links this to banding and realism, and gives suitable ways to manage it in the console context. Sustained reasoning, so Level 3.

Some marks4/6

4 bits can store 16 colours. This means the sprite cannot have many colours. It might look bad if it needs lots of shades of green and blue. The designers could use fewer colours in the sprite.

Why: Correctly gives 16 colours and makes a simple link to the sprite's appearance and a way to manage it. There is little development of the effect or the management, so Level 2.

Some marks1/6

4 bits can store 16 colours. This means the sprite will have a low resolution, so it will look blocky. The designers should use a higher resolution to get more shades of green and blue.

Why: One correct point: 4 bits give 16 colours. The answer then confuses colour depth with resolution; increasing resolution would not provide more shades.

Questions by topic

More ways to revise Edexcel GCSE Computer Science (1CP2)

Teachers: build a paper, print it with the mark schemes at the end, and sign your school up to set your classes activities on every topic.

Fetch Decode Explain isn't affiliated with or endorsed by Pearson Edexcel.