Level:
Correct: 0
Incorrect: 0
Marks: 0/0
Exam Practice
Course:
Topics:
OCR GCSE Computer Science (Paper 1) Smart practice A mixed round aimed at your weak spots
Unit 1
Systems architecture
Unit 2
Memory and storage
Unit 3
Computer networks, connections and protocols
Unit 4
Network security
Unit 5
Systems software
Unit 6
Ethical, legal, cultural and environmental impacts of digital technology
Avg
score:
–
Topics
done:
0/34

Converting between denary and binary

Practise 28 exam-style questions on Converting between denary and binary for OCR GCSE 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 the Study Helper on hand if you get stuck.

  • 28 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

A traffic light controller uses 5-bit binary codes.

In a 5-bit binary number, what is the place value of the most significant bit?

Choose your answer.

  • 1
  • 5
  • 16
  • 32

Model answer

16

Explanation

The place values of a 5-bit number, from left to right, are 16 8 4 2 1. The most significant bit is the left-most one, so its place value is 16 (2⁴). A common mistake is to answer 32 (2⁵): the left-most bit of an n-bit number has place value 2 to the power n − 1, because the right-most bit is 2⁰ = 1.

Mark scheme
  1. 1 mark

    16

    The place values of 5 bits are 16 8 4 2 1. 32 would be a sixth bit (2⁵); 1 is the place value of the least significant bit; 5 is the number of bits. If more than one option is given, 0 marks.

Question 2

2 marks

Sam says that 1101 and 00001101 are different numbers because one has more bits than the other.

Explain whether Sam is correct.

Model answer

Sam is not correct. 1101 = 8 + 4 + 1 = 13 and 00001101 = 8 + 4 + 1 = 13. The extra zeros at the front are in the 128, 64, 32 and 16 columns, and 0 × any place value is 0, so they do not change the value.

Explanation

Leading zeros only fill up the register: 1101 written in 8 bits is 00001101, and both are 13. This is how a computer stores a short binary number in an 8-bit register. Zeros added on the right are different: 11010000 is 208, because every bit moves into a larger place value.

Mark scheme
  1. 1 mark

    Sam is not correct because both numbers are (denary) 13

    'Not correct' on its own scores 0. Award this mark for both numbers being shown to equal 13.

  2. 1 mark

    the extra zeros on the left (leading zeros) have no value // each leading 0 is 0 × its place value (128, 64, 32, 16) // adding zeros in front of a binary number does not change its value

    Do not accept 'zeros can be added or removed anywhere' - adding zeros on the right changes the value.

Question 3

3 marks

Ravi says that you can tell whether a binary number is odd or even just by looking at its least significant bit.

Explain why Ravi is correct. Use the binary number 10011010 in your answer.

Model answer

The least significant bit is the right-most bit and has a place value of 1. Every other place value (2, 4, 8 ... 128) is even, so the other bits always add up to an even number. Adding 1 makes the number odd, so the number is odd if the least significant bit is 1 and even if it is 0. 10011010 has 0 as its least significant bit, so it is even: 128 + 16 + 8 + 2 = 154.

Explanation

Only the right-most (least significant) bit has an odd place value, 1. Any total of even place values is even, so the least significant bit alone decides whether the number is odd or even. Do not confuse it with the most significant bit, the left-most bit, which shows whether the number is 128 or more in an 8-bit number.

Mark scheme
  1. 1 mark

    the least significant bit is the right-most bit // it is the bit with place value 1

  2. 1 mark

    all the other place values (2, 4, 8, 16, 32, 64, 128) are even // the other bits always add up to an even number

  3. 1 mark

    so the number is odd when the least significant bit is 1 and even when it is 0

  4. 1 mark

    10011010 ends in 0 so it is even // 10011010 = 154, which is even

    Max 3. Must use the given number for this mark point.

Question 4

4 marks

A multi-storey car park has an electronic sign. A sensor on each level stores the number of free spaces on that level as an 8-bit binary number.

Level 1: 01100100
Level 2: 00111001

The sign shows the total number of free spaces in the car park.

Calculate the total number of free spaces in denary. Then write the total as an 8-bit binary number. Show your working.

Model answer

Level 1: 01100100 = 64 + 32 + 4 = 100
Level 2: 00111001 = 32 + 16 + 8 + 1 = 57
Total = 100 + 57 = 157
157 = 128 + 16 + 8 + 4 + 1 = 10011101

Explanation

Convert each reading by adding the place values of its 1s, add the two denary values, then convert the total back with the subtraction method: 157 − 128 = 29, 29 − 16 = 13, 13 − 8 = 5, 5 − 4 = 1, 1 − 1 = 0. 157 is less than 255, so the total still fits in 8 bits.

Mark scheme
  1. 1 mark

    Level 1 = 100

    64 + 32 + 4

  2. 1 mark

    Level 2 = 57

    32 + 16 + 8 + 1

  3. 1 mark

    total = 157

    Follow through from the student's own conversions.

  4. 1 mark

    157 = 10011101

    Must be 8 bits. Follow through: award for a correct 8-bit conversion of the student's own total. Also accept the binary total found by binary addition (01100100 + 00111001 = 10011101) for this mark. Correct answer with no working scores full marks.

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

Study Helper Hints first, answers after you try

Stuck on this one? Ask for a hint and I’ll point you in the right direction, without giving the answer away. Once you’ve checked your answer, I’ll show you how the marks are awarded.