Skip to content

Data types: OCR A‑Level Computer Science questions

Every OCR A-Level Computer Science exam question on 1.4.1 Data types, 2021–2025, with its mark scheme and examiner’s report.

Find questions593
Calculations

593 questions

  1. Q3(a)(i)

    June 2025 · Paper 1

    The whole paper ↗
    June 2025 Paper 1, question 3(a)(i): Convert the denary number 189 into an 8-bit binary number. [1]
  2. Q3(a)(ii)

    June 2025 · Paper 1

    The whole paper ↗
    June 2025 Paper 1, question 3(a)(ii): Convert the denary number 189 into a hexadecimal value. [1]
  3. Q3(a)(iii)

    June 2025 · Paper 1

    The whole paper ↗
    June 2025 Paper 1, question 3(a)(iii): Convert the hexadecimal value E4 into a denary number. [1]
  4. Q3(b)

    June 2025 · Paper 1

    The whole paper ↗
    June 2025 Paper 1, question 3(b): Explain the effect that a right shift of three places will have on a positive binary number. [2]
  5. Q3(c)

    June 2025 · Paper 1

    The whole paper ↗
    June 2025 Paper 1, question 3(c): Show the subtraction of these two floating point binary numbers. Both numbers are stored in a normalised floating point format, using 6 bits for the mantissa an
  6. Q3(d)(i)

    June 2025 · Paper 1

    The whole paper ↗
    June 2025 Paper 1, question 3(d)(i): Show the result of applying a bitwise AND mask of 1010 1110 to the byte 1010 0011. Byte 1010 0011 AND Mask 1010 1110 Result [2]
  7. Q3(d)(ii)

    June 2025 · Paper 1

    The whole paper ↗
    June 2025 Paper 1, question 3(d)(ii): State the purpose of the bitwise AND mask. [1]
  8. Q5(a)

    June 2025 · AS Paper 1

    The whole paper ↗
    June 2025 AS Paper 1, question 5(a): Convert the denary number 183 into a hexadecimal number. [1]
  9. Q5(b)

    June 2025 · AS Paper 1

    The whole paper ↗
    June 2025 AS Paper 1, question 5(b): Calculate the binary addition of these two 8-bit (unsigned) binary numbers. Show your working. 01010011 +11101011 [2]
  10. Q5(c)

    June 2025 · AS Paper 1

    The whole paper ↗
    June 2025 AS Paper 1, question 5(c): Calculate the binary subtraction of these two 8-bit (unsigned) binary numbers. Show your working. 11011001 –00100101 [2]
  11. Q5(d)

    June 2025 · AS Paper 1

    The whole paper ↗
    June 2025 AS Paper 1, question 5(d): Tick () one box for each piece of data to show if it is an example of a String, Float or Character data type. String Float Character 3.14 “j” “Hello World” [3]
  12. Q6(a)

    June 2025 · AS Paper 1

    The whole paper ↗
    June 2025 AS Paper 1, question 6(a): Beth has realised that she will need to convert the data from the text file to another data type. State the data type the values will need to be converted to an
  13. Q7(a)

    June 2025 · AS Paper 1

    The whole paper ↗
    June 2025 AS Paper 1, question 7(a): Explain one benefit of using Unicode instead of ASCII. [2]
  14. Q7(b)

    June 2025 · AS Paper 1

    The whole paper ↗
    June 2025 AS Paper 1, question 7(b): Explain one drawback of using Unicode instead of ASCII. [2]
  15. Q2(b)(i)

    June 2025 · AS Paper 2

    The whole paper ↗
    June 2025 AS Paper 2, question 2(b)(i): State why empty is in speech marks on lines 04 and 05. [1]
  16. Q4(a)(i)

    June 2024 · Paper 1

    The whole paper ↗
    June 2024 Paper 1, question 4(a)(i): Convert the denary number -124 into an 8-bit two’s complement binary number. [1]
  17. Q4(a)(ii)

    June 2024 · Paper 1

    The whole paper ↗
    June 2024 Paper 1, question 4(a)(ii): State one other way to represent negative binary numbers. [1]
  18. Q4(b)

    June 2024 · Paper 1

    The whole paper ↗
    June 2024 Paper 1, question 4(b): Convert the denary number 298 into hexadecimal. [2]
  19. Q4(c)

    June 2024 · Paper 1

    The whole paper ↗
    June 2024 Paper 1, question 4(c): The binary number 10011101 0110 is stored in normalised floating point form with an 8-bit mantissa and a 4-bit exponent both written in two’s complement. Conver
  20. Q4(d)

    June 2024 · Paper 1

    The whole paper ↗
    June 2024 Paper 1, question 4(d): The binary number 00001011 0111 is represented in unnormalised floating point form with an 8-bit mantissa and a 4-bit exponent both written in two’s complement.
All 60 questions on Data types, as a list
  1. June 2025, Paper 1, Q3(a)(i) (1 mark): Convert the denary number 189 into an 8-bit binary number. [1]
  2. June 2025, Paper 1, Q3(a)(ii) (1 mark): Convert the denary number 189 into a hexadecimal value. [1]
  3. June 2025, Paper 1, Q3(a)(iii) (1 mark): Convert the hexadecimal value E4 into a denary number. [1]
  4. June 2025, Paper 1, Q3(b) (2 marks): Explain the effect that a right shift of three places will have on a positive binary number. [2]
  5. June 2025, Paper 1, Q3(c) (6 marks): Show the subtraction of these two floating point binary numbers. Both numbers are stored in a normalised floating point format, using 6 bits for the mantissa an
  6. June 2025, Paper 1, Q3(d)(i) (2 marks): Show the result of applying a bitwise AND mask of 1010 1110 to the byte 1010 0011. Byte 1010 0011 AND Mask 1010 1110 Result [2]
  7. June 2025, Paper 1, Q3(d)(ii) (1 mark): State the purpose of the bitwise AND mask. [1]
  8. June 2025, AS Paper 1, Q5(a) (1 mark): Convert the denary number 183 into a hexadecimal number. [1]
  9. June 2025, AS Paper 1, Q5(b) (2 marks): Calculate the binary addition of these two 8-bit (unsigned) binary numbers. Show your working. 01010011 +11101011 [2]
  10. June 2025, AS Paper 1, Q5(c) (2 marks): Calculate the binary subtraction of these two 8-bit (unsigned) binary numbers. Show your working. 11011001 –00100101 [2]
  11. June 2025, AS Paper 1, Q5(d) (3 marks): Tick () one box for each piece of data to show if it is an example of a String, Float or Character data type. String Float Character 3.14 “j” “Hello World” [3]
  12. June 2025, AS Paper 1, Q6(a) (2 marks): Beth has realised that she will need to convert the data from the text file to another data type. State the data type the values will need to be converted to an
  13. June 2025, AS Paper 1, Q7(a) (2 marks): Explain one benefit of using Unicode instead of ASCII. [2]
  14. June 2025, AS Paper 1, Q7(b) (2 marks): Explain one drawback of using Unicode instead of ASCII. [2]
  15. June 2025, AS Paper 2, Q2(b)(i) (1 mark): State why empty is in speech marks on lines 04 and 05. [1]
  16. June 2024, Paper 1, Q4(a)(i) (1 mark): Convert the denary number -124 into an 8-bit two’s complement binary number. [1]
  17. June 2024, Paper 1, Q4(a)(ii) (1 mark): State one other way to represent negative binary numbers. [1]
  18. June 2024, Paper 1, Q4(b) (2 marks): Convert the denary number 298 into hexadecimal. [2]
  19. June 2024, Paper 1, Q4(c) (3 marks): The binary number 10011101 0110 is stored in normalised floating point form with an 8-bit mantissa and a 4-bit exponent both written in two’s complement. Conver
  20. June 2024, Paper 1, Q4(d) (4 marks): The binary number 00001011 0111 is represented in unnormalised floating point form with an 8-bit mantissa and a 4-bit exponent both written in two’s complement.
  21. June 2024, Paper 1, Q4(e) (2 marks): Calculate the binary addition of these two 8-bit (unsigned) binary numbers. Show your working. 00110111 10011001 + [2]
  22. June 2024, AS Paper 1, Q6(a)(i) (1 mark): A positive denary number. [1]
  23. June 2024, AS Paper 1, Q6(a)(ii) (1 mark): A negative denary number using two’s complement. [1]
  24. June 2024, AS Paper 1, Q6(a)(iii) (1 mark): A hexadecimal value. [1]
  25. June 2024, AS Paper 1, Q6(b) (9 marks): (b)* Binary values stored by a computer can represent different types of data. Discuss the different types of data that can be stored in binary and why computer
  26. June 2023, Paper 1, Q3(a)(i) (1 mark): Convert the denary number 189 to hexadecimal. [1]
  27. June 2023, Paper 1, Q3(a)(ii) (1 mark): Convert the unsigned binary number 1010101111 to hexadecimal. [1]
  28. June 2023, Paper 1, Q3(b)(i) (1 mark): Convert the denary number -107 to an 8-bit binary number using sign and magnitude. [1]
  29. June 2023, Paper 1, Q3(b)(ii) (1 mark): Convert the denary number -107 to an 8-bit binary number using two’s complement. [1]
  30. June 2023, Paper 1, Q3(b)(iii) (1 mark): Give one advantage of storing values using two’s complement instead of sign and magnitude. [1]
  31. June 2023, Paper 1, Q3(c) (4 marks): Show how the denary value -15.75 can be represented as a normalised floating point binary number using 8 bits for the mantissa and 4 bits for the exponent. You
  32. June 2023, Paper 1, Q3(d) (3 marks): The normalised floating point binary number 0100 1110 is stored using 4 bits for the mantissa and 4 bits for the exponent, both in two’s complement. Convert thi
  33. June 2023, Paper 1, Q3(e) (2 marks): Complete each of the following sentences relating to the storage of floating point binary numbers with an appropriate word. Increasing the number of bits used f
  34. June 2023, AS Paper 1, Q3(a) (2 marks): Describe what is meant by the term ‘character set’. [2]
  35. June 2023, AS Paper 1, Q3(b)(i) (2 marks): Convert the hexadecimal number 66 into a denary number. Show your working. [2]
  36. June 2023, AS Paper 1, Q3(b)(ii) (2 marks): State two reasons why a programmer would prefer to use hexadecimal numbers rather than binary numbers. 1 2 [2]
  37. June 2023, AS Paper 1, Q3(c) (3 marks): Show the denary value 6.25 as a floating point binary number representing the mantissa and exponent. Both of these should be stored in two’s complement represen
  38. June 2023, AS Paper 1, Q3(d) (1 mark): State the benefit of using a normalised form when representing data as a floating point number. [1]
  39. June 2022, Paper 1, Q2(a)(iii) (1 mark): Identify the data type of the CostPerMonth(£) field. [1]
  40. June 2022, Paper 1, Q2(a)(iv) (1 mark): Give the name of the field that could be stored using a Boolean data type. [1]
  41. June 2022, Paper 1, Q3(a)(i) (1 mark): Convert the hexadecimal value B7E to a binary number. [1]
  42. June 2022, Paper 1, Q3(a)(ii) (1 mark): 110010101 is a binary number that is represented using sign and magnitude. Convert this binary number to a denary number. [1]
  43. June 2022, Paper 1, Q3(a)(iii) (3 marks): Complete this binary subtraction. Both numbers are 8-bit integer values represented using two’s complement. Show the result in the same format and show your wor
  44. June 2022, Paper 1, Q3(b) (4 marks): The normalised floating point number 1010 1110 is stored using 4 bits for the mantissa and 4 bits for the exponent, both in two’s complement. Give the denary ve
  45. June 2022, Paper 1, Q3(c) (4 marks): Table 3 here shows floating point numbers that are stored using 6 bits for the mantissa and 3 bits for the exponent, both in two’s complement. Tick (✓) one box
  46. June 2022, Paper 1, Q5(e)(ii) (1 mark): Give one similarity between ASCII and Unicode. [1]
  47. June 2022, Paper 1, Q5(e)(iii) (2 marks): Give two differences between ASCII and Unicode. Difference 1 Difference 2 [2]
  48. June 2022, AS Paper 1, Q4(a) (1 mark): State why computer systems store data in binary. [1]
  49. June 2022, AS Paper 1, Q4(b)(i) (1 mark): Convert the denary number 97 into an 8-bit binary number. [1]
  50. June 2022, AS Paper 1, Q4(b)(ii) (1 mark): Convert the denary number 171 into a hexadecimal number. [1]
  51. June 2022, AS Paper 1, Q4(b)(iii) (1 mark): Convert the denary number –97 into an 8-bit binary number using two’s complement. [1]
  52. June 2022, AS Paper 1, Q4(b)(iv) (1 mark): Convert the denary number –17 into an 8-bit binary number using sign and magnitude. [1]
  53. June 2022, AS Paper 1, Q4(c) (2 marks): State one advantage of using two’s complement instead of sign and magnitude. [2]
  54. June 2022, AS Paper 1, Q4(d) (2 marks): Calculate the addition of these two 8-bit (unsigned) binary numbers. Show your working. 11011011 10001001 + [2]
  55. June 2022, AS Paper 1, Q6(a) (2 marks): When the values are being read from the Sales.txt file they will be a string data type. In order for them to be processed they will need to be cast (i.e. conver
  56. November 2021, Paper 1, Q2(a)(i) (1 mark): Convert the denary number 231 to an unsigned 8-bit binary number. [1]
  57. November 2021, Paper 1, Q2(a)(ii) (1 mark): Convert the hexadecimal number 6F to an unsigned 8-bit binary number. [1]
  58. November 2021, Paper 1, Q2(b)(i) (4 marks): Give the normalised version of this number, showing your working. [4]
  59. November 2021, Paper 1, Q2(b)(ii) (3 marks): Convert your answer to part (i) to denary, showing your working. [3]
  60. November 2021, Paper 1, Q2(c) (5 marks): Add together the two numbers below. Both numbers are stored in normalised floating point format, using 6 bits for their mantissa and 4 bits for their exponent w

Questions, mark schemes and examiner’s reports are © OCR, from their published past papers. Plumi isn’t affiliated with any exam board. Want whole papers? Full past papers.

Rather write your answers by hand on iPad? Plumi marks them against the same mark schemes.