Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Subject:
Topics:
Cambridge IGCSE Computer Science (Paper 1) Smart practice A mixed round aimed at your weak spots
Unit 1
Data representation
Unit 2
Data transmission
Unit 3
Hardware
Unit 4
Software
Unit 5
The internet and its uses
Unit 6
Automated and emerging technologies
Automated systems
Automated systems
0%
Artificial intelligence
Artificial intelligence
0%
Avg
score:
–
Topics
done:
0/39

Binary addition and overflow

Practise 26 exam-style questions on Binary addition and overflow for Cambridge IGCSE Computer Science (Paper 1). Write your answer as you would in the exam and get it marked in seconds against the mark scheme, point by point, with an AI tutor on hand if you get stuck.

  • 26 questions
  • 1–6 marks each
  • Instant marking
  • No sign-up needed
20 questions, marked as you go

Sample questions with model answers

Here are 4 of the questions in this topic, each with a model answer, an explanation of why it earns the marks and the mark scheme an examiner would use.

Question 1

1 mark

Add the 8-bit binary integers 00111111 and 00000001.

Give your answer as an 8-bit binary integer.

Model answer

00111111 + 00000001 = 01000000 (63 + 1 = 64)

Explanation

Adding 1 to a run of 1s turns each of them into 0 with a carry, until the carry reaches a 0, which becomes 1. So 00111111 + 1 = 01000000.

Mark scheme
  1. 1 mark

    01000000

    accept with or without spaces

Question 2

2 marks

A computer game stores each player's score in an 8-bit register. Players with high scores find that their score suddenly drops to a very small number.

Explain how the programmer could stop this happening.

Model answer

The score drops because of overflow: the total goes above 255, the largest value 8 bits can hold. The programmer could store the score in a 16-bit register instead, which can hold values up to 65 535, so high scores no longer overflow.

Explanation

Overflow happens because the register has a fixed limit. Increasing the number of bits raises the limit (16 bits: 65 535), or the program can check the size of the result before storing it.

Mark scheme
  1. 1 mark

    Store the score using more bits, e.g. a 16-bit register

    max 2

  2. 1 mark

    A 16-bit register can hold values up to 65 535, so the overflow will not happen for normal scores

  3. 1 mark

    Check before adding whether the result will be greater than 255 and stop at the maximum / show a message

Question 3

3 marks

Add the positive 8-bit binary integers 01110110 and 00011011.

Give your answer in 8-bit binary and in denary.

Model answer

01110110
+ 00011011
= 10010001
Denary: 128 + 16 + 1 = 145 (check: 118 + 27 = 145)

Explanation

Almost every column produces a carry, and in the 16s column 1 + 1 plus a carry gives 1 carry 1. Converting the result to denary and comparing it with the denary sum of the two numbers (118 + 27) is the best way to check the binary working.

Mark scheme
  1. 1 mark

    First nibble: 1001

    binary answer 10010001; one mark for each correct nibble

  2. 1 mark

    Second nibble: 0001

  3. 1 mark

    Denary: 145

    allow follow-through from an incorrect binary answer

Question 4

4 marks

Complete the description of overflow. Give the missing terms A to D, using terms from this list.

127, 255, 256, 9th, 16th, correct, incorrect, overflow, syntax

An 8-bit register can store denary values from 0 to A. When two 8-bit numbers are added, a carry out of the most significant bit creates a B bit. The register cannot store this bit, so an C error occurs and the result stored in the register is D.

Model answer

A: 255
B: 9th
C: overflow
D: incorrect

Explanation

An 8-bit register holds 0 to 255. A carry out of the 8th bit would need a 9th bit, which the register does not have, so an overflow error occurs and the stored result is wrong.

Mark scheme
  1. 1 mark

    A: 255

  2. 1 mark

    B: 9th

  3. 1 mark

    C: overflow

  4. 1 mark

    D: incorrect

Ready to try the rest? Every answer you write is marked against the mark scheme, so you can see exactly where the marks are.

AI Tutor Hints first, answers after you try

Hi! Stuck? Ask me for a hint and I’ll help you work it out. Once you’ve checked your answer I can explain exactly where the marks are.