Menu

Binary and Hexadecimal Basics Exam Questions

10 Edexcel GCSE Computer Science (1CP2) exam-style questions on Binary and Hexadecimal Basics (2.1 Binary), 17 marks in all. Answer them on paper or print them, then open the mark schemes and example answers to see how each is marked.

Revise Binary and Hexadecimal Basics first

Build a paper on 2.1 Binary
Print
1Multiple choice1 mark

A computer stores data using binary patterns.

Identify the number of unique states that can be represented by a 4-bit binary pattern.

[1 mark]
  • A4
  • B8
  • C16
  • D32
Mark scheme
  • C 16 (1)
  • The only correct answer is C. The correct answer is 16.
  • A is not correct because 4 is the number of bits in the pattern, not the number of states it can represent
  • B is not correct because 8 is the number of states a 3-bit pattern can represent
  • D is not correct because 32 is the number of states a 5-bit pattern can represent
Example answers and how they were marked
Full marks1/1

C 16

Why: Correct option: a 4-bit pattern can represent 2^4 = 16 unique states (1).

No marks0/1

B 8

Why: Near-miss: 8 is the number of states a 3-bit pattern can represent, not a 4-bit pattern (0).

No marks0/1

A 4

Why: Misconception: 4 is the number of bits in the pattern, not the number of unique states it can represent (0).

2Multiple choice1 mark

Programmers often use hexadecimal notation.

Identify why programmers use hexadecimal notation.

[1 mark]
  • AIt uses fewer digits than binary to represent the same value
  • BIt can represent a wider range of values than binary
  • CIt is processed directly by the computer without conversion
  • DIt uses only the digits 0 to 9
Mark scheme
  • A It uses fewer digits than binary to represent the same value (1)
  • The only correct answer is A. The correct answer is that hexadecimal uses fewer digits than binary to represent the same value.
  • B is not correct because binary can represent the same range of values for a given number of bits
  • C is not correct because a computer processes binary data and instructions, so hexadecimal must be converted before it is processed
  • D is not correct because hexadecimal uses the digits 0 to 9 and the letters A to F
Example answers and how they were marked
Full marks1/1

A It uses fewer digits than binary to represent the same value

Why: Correct option: one hexadecimal digit represents four bits, so fewer digits are needed than binary (1).

No marks0/1

B It can represent a wider range of values than binary

Why: Near-miss: for a given number of bits, binary and hexadecimal represent the same range of values, so this is not the reason (0).

No marks0/1

D It uses only the digits 0 to 9

Why: Misconception: hexadecimal also uses A to F; using only 0 to 9 describes denary (0).

3Short recall1 mark

Computers use binary patterns to represent data.

State the number of different values that can be represented by a 4-bit binary pattern.

[1 mark]
Mark scheme

Award one mark for:

  • 16 (1)

Allow 2^4, 2 × 2 × 2 × 2 or any expression that evaluates to 16.

Allow sixteen (in words).

Do not accept 15.

Example answers and how they were marked
Full marks1/1

16

Why: Correct number of different values for a 4-bit binary pattern (1).

No marks0/1

32

Why: Gives the number of values for a 5-bit pattern, not a 4-bit pattern, so no creditworthy point is present.

No marks0/1

15

Why: Gives the largest value a 4-bit pattern can hold, not the number of different values; the mark scheme does not accept 15.

4Short recall2 marks

A computer stores a photograph as a binary pattern.

State two reasons why computers use binary to represent data.

[2 marks]
Mark scheme

Award one mark for any of the following up to a maximum of two marks:

  • Computer components/hardware have two states, on and off (1)
  • Digital circuits/switches/transistors have two stable states (1)
  • Two states are easy to distinguish/detect reliably (1)
  • Fewer errors occur because only two voltage levels need to be recognised (1)
  • Binary is simple to implement in hardware because only two states/two voltage levels are needed (1)
  • Binary is cheaper to build than a system with more states, as fewer components/levels are needed (1)

Award a maximum of one mark for reasons about reliability/errors, however they are phrased (e.g. 'two states are easy to distinguish' and 'less chance of error' are the same reason).

Do not accept 'it is simple' or 'it is cheap' without a justification.

Do not accept 'computers only understand 1s and 0s' on its own.

Do not accept a restatement of the stem or of the question, e.g. 'computers use binary to store data' or 'because that is how data is stored', with no reason given.

Example answers and how they were marked
Full marks2/2

Computer components are switches that have two states, on and off. Two states are easy to tell apart, so there is less chance of error.

Why: Gives two creditworthy reasons: components have two on/off states (1) and two states are easy to distinguish (1). The 'less chance of error' comment is the same reliability reason, so it does not earn a third mark but the first two stand.

Some marks1/2

Computers use switches that are either on or off.

Why: Gives one creditworthy reason: hardware/components have two on/off states (1). No second reason.

No marks0/2

Computers only understand 1s and 0s.

Why: This is a vague statement, not a reason why binary is used; the mark scheme does not accept it on its own.

5Short recall2 marks

Hexadecimal is often used by programmers.

Give two reasons why programmers use hexadecimal.

[2 marks]
Mark scheme

Award one mark for any of the following up to a maximum of two marks:

  • Hexadecimal is shorter than binary/uses fewer digits (1)
  • It is quicker/easier to read/write (than binary) (1)
  • It is easier to remember (than binary) (1)
  • Fewer digits mean less chance of error when reading or typing (1)
  • It is easy to convert between hexadecimal and binary (1)

Do not accept 'easier'/'better' on its own without saying what is easier/better, e.g. easier to read/write.

For the less chance of error point, accept reading or typing on its own.

Do not award the less chance of error point for a response that only says hexadecimal is shorter/uses fewer digits.

Do not award two marks for the same reason repeated in different words; a second, different reason is needed for the second mark.

Do not accept hexadecimal takes less storage space/uses less memory than binary.

Example answers and how they were marked
Full marks2/2

Hexadecimal is shorter than binary, so it is quicker to read and write. Having fewer digits also means there is less chance of making an error when typing a value.

Why: First sentence gives two creditworthy reasons: hexadecimal is shorter/uses fewer digits (1) and it is quicker to read/write (1). The second sentence gives a further valid reason but is beyond the two-mark cap.

Some marks1/2

Hexadecimal is shorter than binary.

Why: Gives one creditworthy reason: hexadecimal is shorter/uses fewer digits than binary (1). No second, different reason is given.

No marks0/2

Hexadecimal takes less storage space than binary.

Why: This is a misconception; hexadecimal does not take less storage space than binary, and the mark scheme does not accept it.

6Describe2 marks

Computers are built from electronic circuits.

Describe the purpose of using binary to represent data in a computer.

[2 marks]
Mark scheme

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

  • The circuits/switches inside a computer can only be in one of two states, on or off (1) so a bit with the values 1 and 0 can represent each of these states (1)
  • Electronic components have two states, such as a high or low voltage (1) so only two symbols can be stored reliably (1)
  • A binary digit has only two possible values, 0 and 1 (1) so all data (numbers, text, sound, graphics, instructions) can be stored as a pattern of these two values (1)
  • The two states are clearly different, e.g. a high voltage and a low voltage (1) so data is less likely to be misread (1)
  • Data is stored and processed by components that can only hold two states (1) so all data must be converted into 1s and 0s before it can be processed (1)

Do not accept responses that only state that computers use/understand 0s and 1s, e.g. 'computers only understand binary', or that repeat the question.

For the 'misread' point, accept a description of the clear difference between the two states, such as high/low voltage or on/off. Do not accept a claim that binary is 'more accurate' on its own.

Do not accept reasons about hexadecimal being shorter or easier to read, as these do not explain why binary is used.

Example answers and how they were marked
Full marks2/2

The circuits in a computer can only be in one of two states, on or off. A bit has two possible values, 1 and 0, so each bit can represent one of these two states.

Why: Circuits have two states (1) linked to a bit having the values 1 and 0 to represent them (1).

Some marks1/2

A binary digit has only two possible values, 0 and 1.

Why: Gives the point that a bit has two values (1) but does not develop it by linking it to the two states of a circuit or switch.

No marks0/2

Computers use binary because hexadecimal numbers are too large for a computer to store.

Why: Misconception about hexadecimal and storage size; no creditworthy point about the two states of a computer's circuits.

7Describe2 marks

An electronic lock stores each of its codes as a 4-bit binary pattern.

Describe how the number of different codes that can be stored can be calculated.

[2 marks]
Mark scheme

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

  • Each bit has two possible values/states (0 or 1) (1) so the number of codes is 2 × 2 × 2 × 2 = 16 (1)
  • The number of bits is used as the power of 2 (1) so for 4 bits the number of codes is 2^4 = 16 (1)
  • Each extra bit doubles the number of possible codes (1) so 4 bits give 2 × 2 × 2 × 2 = 16 codes (1)

Do not accept 15 (or 2^4 − 1): this is the largest value a 4-bit pattern can hold, not the number of different codes.

Do not award a response that only states 16 or '2^4 = 16' without a linked description.

Do not award '2 to the power of 4' on its own without a linked description, such as two values per bit or the number of bits used as the power of 2.

Example answers and how they were marked
Full marks2/2

Each bit can be either 0 or 1, so there are two possibilities for every bit. For a 4-bit code this is 2 × 2 × 2 × 2 = 16 different codes.

Why: Two possible values for each bit (1) linked to multiplying for 4 bits to get 16 (1).

Some marks1/2

Each bit has two possible values.

Why: Gives the first point (1) but does not link it to calculating the number of codes.

No marks0/2

The largest number a 4-bit pattern can hold is 15, so 15 different codes can be stored.

Why: Classic misconception: 15 is the largest value a 4-bit pattern can hold, not the number of different codes; the mark scheme says not to accept 15.

8Explain2 marks

Computers represent all data using binary.

Explain one reason why computers use binary to represent data.

[2 marks]
Mark scheme

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

  • (Computers) are made of electronic components/switches/transistors that have two states, on/off (1) so binary's two values 0 and 1 can represent these states (1)
  • Data stored as binary is more resistant to errors (1) because only two voltage levels/states need to be distinguished, so electrical noise/interference is less likely to be misread as a different value (1)
  • Circuits that only need to distinguish two states are simpler/cheaper to manufacture (1) because each component only needs to hold one of two stable states (1)

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

Do not accept 'computers only understand 0s and 1s' as a reason on its own without saying what the two states are or why binary matches them.

Do not accept 'computers are digital' or 'that is how computers work' without expansion.

Do not accept 'binary is easier to read/write' or 'binary is easier to understand' as a reason for using binary.

Do not award the same point twice if it is repeated in different words, e.g. two answers that both say circuits/components are on or off.

Example answers and how they were marked
Full marks2/2

Computers use binary because their electronic circuits have two states, on and off. Binary also has only two values, 0 and 1, so these can represent the states of the circuit.

Why: Links the two circuit states (1) to binary's two values representing them (1).

Some marks1/2

Computers use binary because their circuits are either on or off.

Why: Identifies the two circuit states (1) but does not link them to binary's two values, so the second mark is not awarded.

No marks0/2

Computers use binary because it is easier to read than denary.

Why: 'Easier to read' is a reason for using hexadecimal, not a correct reason for using binary; the mark scheme tells markers not to accept it, so no mark.

9Explain2 marks

A traffic light controller uses a 5-bit binary pattern to store the state of its lights.

Explain why this pattern can represent a maximum of 32 different states.

[2 marks]
Mark scheme

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

  • Each bit has two possible values, 0 and 1 (1) so the five bits give 2 × 2 × 2 × 2 × 2/2^5 = 32 different combinations/states (1)
  • Because each of the five bits can be either 0 or 1 (1) there are 2^5/2 × 2 × 2 × 2 × 2 = 32 different combinations/states (1)
  • Each extra bit doubles the number of combinations/states (1) so five bits give 2^5 = 32 states (1)

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

Do not award a response that only repeats the 32 states given in the question, such as 'it can represent 32 states' or '2^5 = 32', without a reason about each bit having two possible values.

Do not accept 2 × 5 = 10 as the calculation; the number of states doubles with each extra bit.

Do not accept 31/0 to 31 as the number of states; 31 is the largest value five bits can store, not the number of states.

Example answers and how they were marked
Full marks2/2

There are 32 different states because each of the 5 bits has two possible values, 0 and 1, so the number of combinations is 2 × 2 × 2 × 2 × 2 = 32.

Why: Point that each bit has two possible values, 0 and 1 (1), linked to the calculation 2 × 2 × 2 × 2 × 2 = 32 states (1).

Some marks1/2

Each bit has two possible values, 0 and 1.

Why: Gives the point that each bit has two possible values (1) but does not link it to 2^5 = 32, so the second mark is not earned.

No marks0/2

It can represent 32 states because the highest number it can store is 31.

Why: Only repeats the 32 states from the question and gives the common misconception that 31 is the number of states; there is no reason about each bit having two possible values, so no marks.

10Explain2 marks

A computer stores a colour as a 24-bit binary pattern.

The programmer writes the colour in hexadecimal rather than in binary. Explain one reason why.

[2 marks]
Mark scheme

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

  • Hexadecimal is shorter/has fewer digits than binary (1) because each hexadecimal digit represents 4 bits/a nibble (1)
  • Hexadecimal is easier to read/write (1) because there are fewer characters/digits to enter (1)
  • Hexadecimal is easier to convert to and from binary (1) because four binary bits map to one hexadecimal digit (1)

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

Allow the 24-bit colour as the linked reason, e.g. a 24-bit value can be written as only 6 hexadecimal digits (1).

Do not accept 'easier'/'simpler' on its own: naming what is easier, such as easier to read/write, is the first mark, but the second mark needs a linked reason.

Only credit 'fewer digits/characters' once, as the reason for one point; do not award it again as the reason for a second point.

Do not accept that hexadecimal uses less storage space/memory than binary, or that it is more compact to store; the same number of bits is stored.

Example answers and how they were marked
Full marks2/2

Hexadecimal is shorter than binary because each hexadecimal digit represents 4 bits, so the 24-bit colour needs only 6 hexadecimal digits.

Why: Gives the point that hexadecimal is shorter (1) and links it to each hexadecimal digit representing 4 bits, using the 24-bit colour as the linked reason (1).

Some marks1/2

Hexadecimal is easier to read than binary.

Why: Names what is easier to read (1) but gives no linked reason such as fewer digits to enter, so only one mark.

No marks0/2

Hexadecimal is used because it takes up less storage space than binary.

Why: The same number of bits is stored in either notation, so this is a misconception and earns no mark.

Keep practising Binary and Hexadecimal Basics

More exam questions on 2.1 Binary

Teachers: print these as a worksheet with the mark schemes at the end, and sign your school up to set your classes activities on Binary and Hexadecimal Basics.

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