ข้ามไปยังเนื้อหา

Labs · 9618 AS 1.1 · A2 13.3

Bits and Bytes

Flip the switches of one byte. See it as binary, denary, two's complement, hex, BCD and floating point, and watch the place values add up.

33 levelsFree bench

In the exam

9618/11 May/June 2022 · Question 1(b) · 1 marks

Convert the signed denary value −100 into an 8-bit two's complement binary integer.

Points that gain marks

  • 1001 1100.

In this lab: Level 'Two's complement: −100' builds it bit by bit; 'Flip and add 1' shows the method.

9618/11 May/June 2021 · Question 1(c)(iii) · 3 marks

Hexadecimal 23 in two's complement representation is 00100011. The denary number 10 needs to be subtracted from this value. Subtract the denary number 10 from 00100011, using two's complement. Show your working.

Points that gain marks

  • Convert −10 to two's complement: 1111 0110 (10 is 0000 1010; flip and add 1).
  • Add the two values: 0010 0011 + 1111 0110.
  • Answer 0001 1001 (the carry out of the 8th bit is ignored).

In this lab: 'Flip and add 1' makes −10; 'Binary addition' adds bytes with the carries shown.

9618/11 May/June 2023 · Question 3(d)(ii) · 1 marks

Convert the denary number 964 into Binary Coded Decimal (BCD).

Points that gain marks

  • 1001 0110 0100: each denary digit becomes its own 4-bit group.

In this lab: Level 'Binary-coded decimal'.

9618/31 May/June 2021 · Question 1(a) · 3 marks

10-bit mantissa, 6-bit exponent, two's complement. Calculate the normalised floating-point representation of −7.25. Show your working.

Points that gain marks

  • +7.25 = 111.01 = 0.11101 × 2³ (exponent 3).
  • +7.25 mantissa 0111010000; two's complement for −7.25: 1000110000.
  • Answer: mantissa 1000110000, exponent 000011.

In this lab: Level 'Exam: −7.25 in 10 + 6 bits'.

9618/31 October/November 2022 · Question 1(a)–(b) · 6 marks

8-bit mantissa, 8-bit exponent, two's complement. Write the normalised floating-point representation of +202, then of −202. Show your working.

Points that gain marks

  • +202 = 11001010 = 0.1100101 × 2⁸ (exponent = 8).
  • +202: 01100101 00001000.
  • −202: one's complement 10011010, two's complement 10011011; the exponent does not change.
  • −202: 10011011 00001000.

In this lab: Level 'Exam: −202 in 8 + 8 bits'.

9618/31 October/November 2023 · Question 1(a) · 3 marks

12-bit mantissa, 4-bit exponent, two's complement. Write the normalised floating-point representation of +65.25. Show your working.

Points that gain marks

  • 65.25 = 1000001.01; move the point 7 places (exponent 7).
  • Answer: mantissa 010000010100, exponent 0111.

In this lab: Level 'Exam: 65.25 in 12 + 4 bits'.

9618/31 May/June 2024 · Question 1(b) · 3 marks

10-bit mantissa, 6-bit exponent, two's complement. Calculate the normalised floating-point representation of −102.75. Show your working.

Points that gain marks

  • +102.75 = 1100110.11 = 0.110011011 × 2⁷ (exponent 7).
  • Flip and add 1 for the negative mantissa.
  • Answer: mantissa 1001100101, exponent 000111.

In this lab: Level 'Exam: −102.75 in 10 + 6 bits'.

9618/31 May/June 2024 · Question 1(a) · 3 marks

10-bit mantissa, 6-bit exponent. Calculate the denary value of the given normalised floating-point number 0100111100 001001. Show your working.

Points that gain marks

  • The exponent 001001 is 9.
  • 0.100111100 becomes 100111100: 256 + 32 + 16 + 8 + 4.
  • Answer: 316.

In this lab: Level 'Exam: read a float (316)'.

9618/31 May/June 2021 · Question 1(b) · 3 marks

Calculate the denary value of the binary floating-point number 1011000111 000111. Show your working.

Points that gain marks

  • The exponent is 7: 1.011000111 × 2⁷.
  • 10110001.11 = −128 + 32 + 16 + 1 + 0.5 + 0.25.
  • Answer: −78.25.

In this lab: Level 'Exam: read a negative float'.

9618/32 October/November 2022 · Question 1(a)–(b) · 4 marks

11-bit mantissa, 5-bit exponent. (a) Write the largest positive number that can be stored. (b) Calculate the denary value of 10110010011 01001. Show your working.

Points that gain marks

  • (a) Mantissa 01111111111, exponent 01111.
  • (b) The exponent is 9; 1011001001.1 = −512 + 128 + 64 + 8 + 1 + 0.5.
  • (b) Answer: −310.5.

In this lab: Levels 'Exam: read 11 + 5 bits' and 'Exam: the largest in 11 + 5 bits'.

9618/32 May/June 2026 · Question 3(a) · 3 marks

12-bit mantissa, 4-bit exponent, two's complement. Calculate the denary value of the normalised floating-point number 101101000110 0110. Show your working.

Points that gain marks

  • The exponent 0110 is 6: move the binary point 6 places right, 1011010.00110.
  • −64 + 16 + 8 + 2 + 0.125 + 0.0625.
  • Answer: −37.8125.

In this lab: Level 'Exam: read 12 + 4 bits'.

IGCSE 0478/12 February/March 2024 · Question 8(b)–(c) · 5 marks

(b)(i) Convert the two's complement integer 10110111 into denary. Show all your working. (ii) Convert the denary number 45 into an 8-bit two's complement integer. (c) State the mathematical effect of a right shift of four places on a positive binary integer.

Points that gain marks

  • (b)(i) Flip and add 1: 10110111 becomes 01001001 = 73, so the answer is −73.
  • (b)(ii) 00101101.
  • (c) It divides the number by 16 (2⁴).

In this lab: Levels 'Flip and add 1', 'Two's complement: −100' and 'Shift right: ÷ 2'.

IGCSE 0478/11 May/June 2023 · Question 1(e) · 2 marks

Two binary numbers are added by a computer and an overflow error occurs. Explain why the overflow error occurred.

Points that gain marks

  • The result is greater than 255: larger than the register can store.
  • The result needs more than 8 bits, and a register has a fixed number of bits.

In this lab: Level 'Binary addition': a carry out of the left bit has nowhere to go.

IGCSE 0478/12 October/November 2025 · Question 1(a)–(d) · 6 marks

A toy store gives each toy a 3-digit hexadecimal code. The computer has 12-bit registers. (a) Give the largest hexadecimal number that can be stored in a 12-bit register. (b) Give the largest denary number. (c) Convert the hexadecimal codes 429 and 1A3 to 12-bit binary. (d) Convert 100010100001 and 011100001011 to hexadecimal.

Points that gain marks

  • (a) FFF. (b) 4095.
  • (c) 0100 0010 1001 and 0001 1010 0011.
  • (d) 8A1 and 70B.

In this lab: Levels 'Hexadecimal' and 'Hex with letters': each hex digit is its own group of 4 bits, so 12 bits are 3 hex digits. 'The biggest byte' shows why all 1s is the largest (FF = 255 in 8 bits; FFF = 4095 in 12).

IGCSE 0478/13 October/November 2025 · Question 1(b)–(d) · 9 marks

An air-conditioning system stores numbers in an 8-bit register. (b) Give the binary for 24 and for 101; give the denary for 00010011 and 00100010. (c) Error codes are shown in hexadecimal: give the binary for 51 and E3, and the hexadecimal for 10000010. (d) Give the 8-bit two's complement integer for −5. Show all your working.

Points that gain marks

  • (b) 00011000; 01100101; 19; 34.
  • (c) 0101 0001; 1110 0011; 82.
  • (d) Working, for example flip and add 1 (00000101 → 11111010 → 11111011); answer 11111011.

In this lab: Levels 'Make 13', 'Hexadecimal' and 'Hex with letters' for (b) and (c); 'Exam: −5 for the air-con' for (d).

IGCSE 0478/11 October/November 2025 · Question 1(a)–(f) · 9 marks

A calculator has 8-bit registers. (a) State the highest denary number in one 8-bit register. (b) Give the 8-bit binary for 23 and 168. (c), (d) Give the denary for 00001011 and 01000010. (e) Add 01110110 and 00110000 using binary addition, with working. (f) State how a negative denary number could be represented in binary.

Points that gain marks

  • (a) 255. (b) 00010111; 10101000. (c) 11. (d) 66.
  • (e) 10100110, one mark for each correct nibble and one for the working (the carries).
  • (f) Using two's complement.

In this lab: Levels 'The biggest byte' for (a), 'Make 13' and 'Make 200' for (b)–(d), 'Exam: add in a calculator' for (e), and 'Two's complement: −1' for (f).

IGCSE 0478/12 October/November 2025 · Question 2 · 7 marks

Two binary numbers are stored in a computer. (a) Add 11110101 and 00111001 using binary addition, with working. (b) A logical right shift of three places is performed on 11110101. Give the denary number stored after the shift, with working.

Points that gain marks

  • (a) 1 0010 1110: one mark for each correct nibble, one for the carries, and one for showing the overflow error (the 9th bit does not fit).
  • (b) 00011110 → 16 + 8 + 4 + 2 = 30.

In this lab: Levels 'Exam: a sum that overflows' for (a) and 'Exam: shift right by 3' for (b).

More real experiments

All labs →

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP