Computer Science 3
Computer Science 3
Computer Science 3
The quantity of a particular product in stock is stored as a binary number usingtwo bytes.
There are 312 tins of beans left in stock.
[2]
(b) The name of a product is stored using characters from the computer's character set.
[2]
[3]
© OCR 2023. You may photocopy this page. 1 of 123 Created in ExamBuilder
2(a) Convert the denary number 43 into an 8 bit binary number.
[1]
(b) Using binary subtraction, calculate your answer to the following. You must show your working.
[2]
(c) Using two’s complement convert the denary number −43 into an 8 bit binary number. You must show your
working.
[2]
(d)
(i) Using normalised floating point binary representation using 4 bits for the mantissa and 4 for the exponent,
represent the denary value 1.75. You must show your working.
[2]
(ii) Using normalised floating point binary representation using 4 bits for the mantissa and 4 for the exponent,
represent the denary value −1.75. You must show your working.
[2]
© OCR 2023. You may photocopy this page. 2 of 123 Created in ExamBuilder
3(a) State which bitwise manipulation on 00010101 would have achieved the same result as the calculation on part
(a).
[1]
(b) Two equal (unsigned) integers, shown below, are added together. Calculate the result, showing your working.
[2]
(c) Convert the denary number -52 into an 8-bit binary number using two’s complement.
[2]
(d) Describe why two’s complement may be preferable to sign and magnitude.
[2]
(e) Using floating point representation with 4 bits for the exponent and 4 bits for the mantissa, add together the
following floating point binary numbers and write the answer as a normalised floating point number with 4 bits
mantissa and 4 bit exponent.
[3]
© OCR 2023. You may photocopy this page. 3 of 123 Created in ExamBuilder
(f) Demonstrate subtraction in binary using 8-bit two’s complement using the equivalent of the denary calculation
47-23. You must show all working.
[4]
(i) Denary:
[1]
(ii) Hexadecimal:
[1]
(b) An AND operation with the mask 10101010 is applied to the binary number 01010101. Show the result.
[1]
© OCR 2023. You may photocopy this page. 4 of 123 Created in ExamBuilder
(c) An OR operation with the mask 10101010 is applied to the binary number 01010101. Show the result.
[1]
(d) 00001100 is shifted two places to the left.
[1]
[1]
© OCR 2023. You may photocopy this page. 5 of 123 Created in ExamBuilder
(e) Convert the denary number –8 to:
[1]
[1]
© OCR 2023. You may photocopy this page. 6 of 123 Created in ExamBuilder
(f) A computer represents floating point binary numbers using a 6-bit mantissa and 4-bit exponent, both using two's
complement.
Add the following three numbers together and give the answer in the format described. You must show your
working.
[6]
© OCR 2023. You may photocopy this page. 7 of 123 Created in ExamBuilder
5 Below are extracts from the ASCII and EBCDIC character sets.
ASCII
EBCDIC
Explain, referring to ASCII and EBCDIC, what would happen if computers were to use different character sets
when communicating.
[2]
© OCR 2023. You may photocopy this page. 8 of 123 Created in ExamBuilder
6(a) Change the denary number 89 into the following representations.
[1]
[1]
[1]
(b) Using the denary number 89 as an example, explain the relationship between binary and hexadecimal
representations.
[3]
© OCR 2023. You may photocopy this page. 9 of 123 Created in ExamBuilder
(c)
(i) Change the denary number -89 into a two's complement, 8 bit binary number.
[1]
(ii) Change the denary number -72 into a two's complement, 8 bit binary number.
[1]
(d)
(i) Add the two binary answers which you obtained, using 8 bit arithmetic.
[2]
[2]
© OCR 2023. You may photocopy this page. 10 of 123 Created in ExamBuilder
7(a) The organisers of an international football competition are planning to use a large electronic score board to
display information to spectators in the stadium. The board can display three lines of text of 15 characters each.
The program stores the text to be displayed in an array called Board, so that
Board(1,1) contains the letter in the top left corner of the display board
Board(3,15) contains the letter in the bottom right corner of the display board.
A module in the program updates the display every time the contents of this array are changed.
State the identifier, number of dimensions and most appropriate data type of the array Board.
Identifier _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Number of dimensions _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[3]
© OCR 2023. You may photocopy this page. 11 of 123 Created in ExamBuilder
(b) The program contains a module which clears the display using a routine to insert a space in each element of the
array using the following algorithm.
[3]
The program contains a module which displays a message at a given position using the algorithm below. For
example, DisplayString(“HELLO”,2,1) should display the message “HELLO” on the second row, starting from the
first column.
© OCR 2023. You may photocopy this page. 12 of 123 Created in ExamBuilder
8(a) A Huffman code is a type of binary code where characters are represented by binary numbers of different
lengths. A possible Huffman code for a character set of four characters is:
[1]
The following algorithm takes a message as binary digits, one at a time, from a source and outputs the message
that is being transmitted.
[2]
© OCR 2023. You may photocopy this page. 13 of 123 Created in ExamBuilder
(c) State what the operation + does on line 04. State the name of this operation.
[2]
© OCR 2023. You may photocopy this page. 14 of 123 Created in ExamBuilder
(d)
The source of the message needs a routine to encode messages into the Huffman code. The routine should
allow the user to enter a message and output the encoded message.
Write this routine in a high level language you have studied, stating the name of the language you have used.
Yo u should use good program writing techniques to ensure that your routine is easy to understand.
You can assume that the message consists only of the characters A, B, C and D.
Name of language
Routine
[7]
© OCR 2023. You may photocopy this page. 15 of 123 Created in ExamBuilder
(e) Programming language environments provide several facilities for editing and debugging programs.
Name two of these facilities. Describe how each can be used when writing the routine in part (e).
[6]
For each item of data, state the most appropriate data type and the size in bytes.
© OCR 2023. You may photocopy this page. 16 of 123 Created in ExamBuilder
(b) The school has 100 pupils.
[3]
When a pupil tops up a card, the following algorithm is used to update the amount of credit on the card. The
algorithm is written in pseudocode.
© OCR 2023. You may photocopy this page. 17 of 123 Created in ExamBuilder
(c) Explain the difference in the use of = in lines 06 and 07, identifying the type of operator being used in each case.
[4]
(d) At the start of each day, a routine is executed which tops up the cards of all pupils who are entitled to free school
meals with £3.50.
© OCR 2023. You may photocopy this page. 18 of 123 Created in ExamBuilder
Complete the algorithm for this routine by filling in the spaces.
[3]
© OCR 2023. You may photocopy this page. 19 of 123 Created in ExamBuilder
(e) When a new pupil is given a card, the record for the card needs to be inserted into the file.
Allows the user to input the six-digit identification number, the initial amount of credit and whether the pupil
has free school meals
Produces a new sequential file with the record for the new card inserted.
The quality of written communication will be assessed in your answer to this question.
© OCR 2023. You may photocopy this page. 20 of 123 Created in ExamBuilder
[8]
© OCR 2023. You may photocopy this page. 21 of 123 Created in ExamBuilder
10(a) A real binary number may be represented in normalised floating point binary notation using 4 bits for the
mantissa followed by 4 bits for the exponent, both in two's complement binary.
(i) 01010110
[3]
(ii) 01001110
[3]
© OCR 2023. You may photocopy this page. 22 of 123 Created in ExamBuilder
(b) A real binary number may be represented in floating point binary notation using 7 bits for the mantissa followed
by 5 bits for the exponent, both in two's complement binary.
(i) State which of the binary numbers P and Q is normalised. Give a reason for your answer.
P = 101100110001
Q = 110100110011
[2]
(ii) The binary number R is not normalised. Write the normalised form of R.
R = 000110100101
[3]
© OCR 2023. You may photocopy this page. 23 of 123 Created in ExamBuilder
11(a) A real binary number may be represented in normalised floating point binary notation using 5 bits for the
mantissa followed by 3 bits for the exponent, both in two's complement binary.
(i) 01100011
[3]
(ii) 10100111
[3]
© OCR 2023. You may photocopy this page. 24 of 123 Created in ExamBuilder
(b) Write the denary number +3.5 as a normalised binary number in the format described in (a).
[3]
© OCR 2023. You may photocopy this page. 25 of 123 Created in ExamBuilder
(c) Using only 6 bits, the normalised binary numbers X and Y are in different formats.
X = 010111
Y = 011101
X and Y are the maximum possible values for each of their formats.
[1]
[1]
(iii) Explain the trade-off between accuracy and range when representing numbers, using the denary values of X
and Y in your answer.
[4]
© OCR 2023. You may photocopy this page. 26 of 123 Created in ExamBuilder
12(a)
(i) Convert the denary number 231 to an unsigned 8-bit binary number.
[1]
[1]
(b) The floating point number 001101 0100 is stored using 6 bits for the mantissa and 4 bits for the exponent, both in
two’s complement. This number is not normalised.
(i) Give the normalised version of this number, showing your working.
© OCR 2023. You may photocopy this page. 27 of 123 Created in ExamBuilder
[4]
(ii) Convert your answer to part (i) to denary, showing your working.
[3]
© OCR 2023. You may photocopy this page. 28 of 123 Created in ExamBuilder
(c) 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 which are both in two’s complement. Show the result in the same
format and show your working.
0110000110 +
0101000100
[5]
© OCR 2023. You may photocopy this page. 29 of 123 Created in ExamBuilder
13 A company releases an Internet connected fridge. Users can email messages to the fridge and it puts them on
its display.
The fridge uses the ASCII character set. Give one disadvantage of the fridge using ASCII rather than Unicode.
[1]
[1]
© OCR 2023. You may photocopy this page. 30 of 123 Created in ExamBuilder
(b)
[1]
[1]
(iii) Convert the denary number –97 into an 8-bit binary number using two’s complement.
[1]
(iv) Convert the denary number –17 into an 8-bit binary number using sign and magnitude.
[1]
© OCR 2023. You may photocopy this page. 31 of 123 Created in ExamBuilder
(c) State one advantage of using two’s complement instead of sign and magnitude.
[2]
(d) Calculate the addition of these two 8-bit (unsigned) binary numbers.
[2]
© OCR 2023. You may photocopy this page. 32 of 123 Created in ExamBuilder
15 George owns a small book shop. He wants a program to work out the daily sales figures.
He uses a text file called “Sales.txt” shown in Fig. 1. Each line represents the sales total for a different day of the
week. The program can run at any point during the week and therefore the text file may not have seven lines.
2367.34
1986.92
2251.49
1882.40
2412.83
3411.32
2721.76
The program needs to read the text file and then calculate:
At the end of the text file, it should then print the results of these calculations to the screen.
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. converted) to a different data type.
Explain what data type the values in “Sales.txt” should be converted to.
[2]
© OCR 2023. You may photocopy this page. 33 of 123 Created in ExamBuilder
16(a)
[1]
(ii) 110010101 is a binary number that is represented using sign and magnitude.
[1]
(iii) 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 working.
[3]
© OCR 2023. You may photocopy this page. 34 of 123 Created in ExamBuilder
(b) 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.
[4]
(c) 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 in each row to state whether each number is normalised or not normalised.
Table 3
[4]
17 A programmer creates another function to count and return how many capital letters are in a string that is passed
into the function as a parameter.
The asc() function takes in a character and returns its ASCII value. For example asc("A") returns 65. Capital
letters have ASCII values between 65 and 90 inclusive.
© OCR 2023. You may photocopy this page. 35 of 123 Created in ExamBuilder
(i) Complete the function below.
function countCapitals(text)
// initialise counter to 0
capCount = 0
// loop through each character in the string passed in
for x = 0 to text.length-1
c = text.subString(x, 1)
// check if character is a capital
if asc(c) >= 65 ……………………………………………………………
// if so, increment counter
…………………………………………………………………………
endif
next x
……………………………………………………………………
endfunction
[3]
[1]
Difference 1
Difference 2
[2]
© OCR 2023. You may photocopy this page. 36 of 123 Created in ExamBuilder
18 A bubble sort will sort an array of 50 integer values called numberArray.
State why the integer values are stored in an array instead of separate variables.
[1]
19(a) ChillDel Limited distributes chilled food from food manufacturers to supermarket distribution depots, using
refrigerated vehicles. During transit, the temperature of chilled food must be maintained in the temperature range
0.0 °C to +4.5 °C.
There are five temperature sensors located within the body of the vehicle, which are sampled every second, and
their values are recorded during the transportation of the foods.
In the vehicle is a display that shows information gathered from the five temperature sensors during
transportation. This display is 16 characters wide by 8 characters high.
the lowest and highest values recorded during transportation from any of the sensors
the current sampled lowest and highest values from the sensors
the current average value.
© OCR 2023. You may photocopy this page. 37 of 123 Created in ExamBuilder
[5]
© OCR 2023. You may photocopy this page. 38 of 123 Created in ExamBuilder
(b)
(i) All the sampled data from the sensors is stored on a memory card for analysis at the receiving distribution
depot. Complete the data table below.
[4]
(ii) If the samples are taken every second, and the length of the journey is three hours, calculate an estimate of
the file size in kilobytes (KB). Show your working.
[4]
© OCR 2023. You may photocopy this page. 39 of 123 Created in ExamBuilder
(c) The software code written to sample and record the sensor data carries out the following actions:
The order (left to right) of the boxes on each level to represent sequence
☆ to show iteration
○ to show selection.
Using the module numbers fill in the diagram below.
© OCR 2023. You may photocopy this page. 40 of 123 Created in ExamBuilder
[6]
[6]
© OCR 2023. You may photocopy this page. 41 of 123 Created in ExamBuilder
20 A computer uses a Von Neumann processor.
[4]
© OCR 2023. You may photocopy this page. 42 of 123 Created in ExamBuilder
21(a) A real binary number may be represented in normalised floating point binary notation, using 4 bitsb for the
mantissa followed by 3 bits for the exponent, both in two's complement binary.
(i) Convert the denary value 1.75 to normalised two's complement binary in the format described.
[4]
0 1 1 0 1 1 1
[3]
© OCR 2023. You may photocopy this page. 43 of 123 Created in ExamBuilder
(b) A programmer has 16 bits to use to store a real binary number.
Describe the trade-off between accuracy and range when deciding how many bits to use for the mantissa and
exponent.
[4]
[2]
(b) Represent the number 55 in normalised floating point binary notation, using 8 bits for the mantissa followed by 8
bits for the exponent, both in two's complement binary.
[2]
(c) Represent the number 55 in normalised floating point binary notation, with the mantissa and exponent both in
two's complement binary, using as few bits as possible.
[2]
© OCR 2023. You may photocopy this page. 44 of 123 Created in ExamBuilder
(d) State why a programmer might choose to declare a variable as a floating point number.
[1]
© OCR 2023. You may photocopy this page. 45 of 123 Created in ExamBuilder
23 Asim is the head of a chess club. One of his jobs is to send out a monthly newsletter.
For the newsletter, club members send in descriptions of games they play using chess notation, which consist of
a sequence of symbols, letters and numbers. It is important that these descriptions are accurate.
One member sends in the description as a plain text file. The text file is saved using Unicode, an extract of which
is shown below.
[3]
When Asim opens this file on the text editor on his computer it looks as below.
[2]
© OCR 2023. You may photocopy this page. 46 of 123 Created in ExamBuilder
24 Express the denary number –43 in binary using 8-bit two's complement representation.
[4]
Show the effect of applying XOR on Text and Key, by completing the last row of the table below.
[2]
© OCR 2023. You may photocopy this page. 47 of 123 Created in ExamBuilder
(b) Show the effect of applying XOR on your answer to part (a) and Key, by completing the first and last rows of the
table below.
[2]
(c) Explain whether the type of encryption described above is symmetric or asymmetric.
[2]
(d) Explain why asymmetric encryption is more suited to transactions over the internet than symmetric encryption.
[4]
© OCR 2023. You may photocopy this page. 48 of 123 Created in ExamBuilder
26(a) Show a representation of the hexadecimal number AB in:
(i) Binary
[1]
(ii) Denary
[1]
[1]
[1]
© OCR 2023. You may photocopy this page. 49 of 123 Created in ExamBuilder
(c) A floating point number is represented with a mantissa of 8-bits followed by an exponent of 4-bits, both in two's
complement.
00011010 0010
[1]
[1]
(d) Two floating point numbers are shown below. Calculate the answer of the second number subtracted from the
first. You must show your working and ensure your answer is normalised.
[5]
[1]
© OCR 2023. You may photocopy this page. 50 of 123 Created in ExamBuilder
(b) Convert the denary number –19 to an 8-bit number using:
[1]
[1]
(c) The two below are stored using unsigned binary. Calculate the subtraction of 01110010 from 11000011. Show
your working.
[2]
(d) Convert the denary number 1⅝ (i.e. 1.625) to a normalised floating point binary number using 5 bits for the
mantissa and 3 bits for the bits for the exponent. Show your working.
[3]
© OCR 2023. You may photocopy this page. 51 of 123 Created in ExamBuilder
28(a)
(i) Convert the denary number 188 to an unsigned 8-bit binary number.
[1]
[1]
© OCR 2023. You may photocopy this page. 52 of 123 Created in ExamBuilder
(b)
(i) Convert the denary number −44 to an 8-bit binary number with sign and magnitude representation.
[1]
(ii) Convert the denary number −44 to an 8-bit binary number with two’s complement representation.
[1]
(c) Explain how, using bit shift, the unsigned binary number 00101100 can be divided by 4.
[2]
© OCR 2023. You may photocopy this page. 53 of 123 Created in ExamBuilder
(d) Demonstrate subtraction on the two numbers below, both stored in normalised floating point format, using 6 bits
for their mantissa and 4 for their exponent. Show the result in the same format. Show your working.
[6]
© OCR 2023. You may photocopy this page. 54 of 123 Created in ExamBuilder
29 A company releases an Internet connected fridge. Users can email messages to the fridge and it puts them on
its display.
The fridge uses the ASCII character set. Give one disadvantage of the fridge using ASCII rather than Unicode.
[1]
30(a)
Convert the denary number 72 to an unsigned 8-bit integer.
[1]
[1]
© OCR 2023. You may photocopy this page. 55 of 123 Created in ExamBuilder
(c) Convert the denary number 104 to hexadecimal.
[1]
(d) The following floating point binary number is represented using 7 bits for the mantissa and 4 bits for the
exponent, both using two’s complement.
Mantissa Exponent
0100101 0100
[3]
© OCR 2023. You may photocopy this page. 56 of 123 Created in ExamBuilder
(e) Given that computers store everything in binary, explain how they are able to represent text.
[2]
31(a) A Boolean expression is entered into a Karnaugh Map.
Give a simplified version of the expression using the Karnaugh Map. You must show your working.
© OCR 2023. You may photocopy this page. 57 of 123 Created in ExamBuilder
(b) Draw a logic gate diagram to represent the expression below. [4]
(¬A ∧ B) ∨ (¬C ∧ D)
© OCR 2023. You may photocopy this page. 58 of 123 Created in ExamBuilder
32 A student writes a program to apply a symmetric encryption algorithm to work on messages of up to 25 ASCII
characters.
[2]
I L O V E
C O M P U
T E R S U
I E N C E
T O W R M
E I L O V
P U C O M
R S C T E
E N C E I
T O W R M
The next 5 digits state how many spaces down the columns 0 to 4 should be rotated.
© OCR 2023. You may photocopy this page. 59 of 123 Created in ExamBuilder
T N C O V
E O C T M
P I W E E
R U L R I
E S C O M
for i = 0 to 4
x = getNextDigitInKey()
shiftRow(i,x)
next i
for i = 0 to 4
x = getNextDigitInKey()
shiftColumn(i,x)
next i
33(a)
Demonstrate how the bytes below are added together. Show your working.
[2]
© OCR 2023. You may photocopy this page. 60 of 123 Created in ExamBuilder
(b) Demonstrate how the bottom byte below is subtracted from the top byte. Show your working.
[2]
(c) Convert the binary number shown below to hexadecimal.
0011011100001111
[2]
© OCR 2023. You may photocopy this page. 61 of 123 Created in ExamBuilder
(d) The number below is represented in floating point format with a 5-bit mantissa in two’s complement followed by a
3-bit exponent in two’s complement. Calculate the denary value of the number, showing your working.
01001 010
[3]
(e) The numbers below are represented in floating point format with a 5-bit mantissa in two’s complement followed
by a 4-bit exponent in two’s complement. Normalise the numbers shown below, showing your working.
00011 0010
[2]
11100 0110
[2]
© OCR 2023. You may photocopy this page. 62 of 123 Created in ExamBuilder
(f) Show the byte below after having an AND applied with the masking byte.
Byte 1 0 1 1 1 0 0 1
AND 1 1 1 1 1 1 1 1
Result
[1]
(g) Show the byte below after having an OR applied with the masking byte.
Byte 1 0 1 1 1 0 0 1
OR 1 1 1 1 1 1 1 1
Result
[1]
Complete the table below to suggest a suitable data type for each piece of data.
[1]
© OCR 2023. You may photocopy this page. 63 of 123 Created in ExamBuilder
(c) The character ‘A’ in the ASCII character set is represented by the denary value 65. Write the binary
representation for the ASCII character ‘H’. Show your working.
[2]
(d) Show the denary number –2⅝ as a floating-point binary number with a 6-bit mantissa and 4-bit exponent, both
stored using two’s complement representation.
[3]
© OCR 2023. You may photocopy this page. 64 of 123 Created in ExamBuilder
35 RestaurantReview is a website that allows users to leave reviews and ratings for different restaurants.
The database previously stored reviews using the ASCII character set. ASCII uses 1 byte per character. It is
decided to switch to the Unicode UTF-32 character set which uses 4 bytes per character.
Give an advantage and disadvantage of changing character sets from ASCII to Unicode UTF-32.
Advantage
Disadvantage
[2]
© OCR 2023. You may photocopy this page. 65 of 123 Created in ExamBuilder
36(a) A simple program is shown below.
Fig. 8.1
State the most suitable data type of the variable count
[1]
(b) State the data type of the result of the expression (count*num)<=100
[1]
[1]
© OCR 2023. You may photocopy this page. 66 of 123 Created in ExamBuilder
37(a) Show how the binary number 01011110 is represented in hexadecimal.
[1]
[2]
(c) Show how the denary number –87 is represented in sign and magnitude binary.
[2]
01001001-
00101111
[2]
© OCR 2023. You may photocopy this page. 67 of 123 Created in ExamBuilder
(e) The floating point binary number 010011 011 consists of a 6-bit mantissa and 3-bit exponent, both represented
in two’s complement. Convert the number to denary, showing your working.
[3]
(f) Show the denary number –5.25 in floating point binary form representing the mantissa and exponent in two’s
complement, using as few bits as possible. Show your working.
[4]
© OCR 2023. You may photocopy this page. 68 of 123 Created in ExamBuilder
38(a) Convert the binary number 11101100 into a denary number.
[1]
[1]
(c) Convert the two’s complement binary number 10011011 into a denary number.
[1]
(d) Calculate the subtraction of the following two 8-bit binary numbers.
[2]
© OCR 2023. You may photocopy this page. 69 of 123 Created in ExamBuilder
39(a)
(i) Convert the denary number –119 to an 8-bit binary number with two’s complement representation.
[1]
[1]
[1]
[2]
© OCR 2023. You may photocopy this page. 70 of 123 Created in ExamBuilder
(b) Show how the denary value –9.125 can be represented in normalised floating point format, using 8 bits for the
mantissa and 4 bits for the exponent, both in two’s complement.
[5]
© OCR 2023. You may photocopy this page. 71 of 123 Created in ExamBuilder
(c)
(i) Show the result of applying an XOR mask of 1100 0111 to the byte 0101 1101.
[2]
(ii) Describe a mask that could be applied to an 8-bit number to ensure that:
[2]
© OCR 2023. You may photocopy this page. 72 of 123 Created in ExamBuilder
Mark Scheme
Examiner's Comments
Total 7
© OCR 2023. You may photocopy this page. 73 of 123 Created in ExamBuilder
Mark Scheme
Total 9
© OCR 2023. You may photocopy this page. 74 of 123 Created in ExamBuilder
Mark Scheme
Total 14
© OCR 2023. You may photocopy this page. 75 of 123 Created in ExamBuilder
Mark Scheme
4 a i 240 1
ii F0 1
b 00000000 1
c 11111111 1
d i 00110000 1
ii Multiplying by 4 1
e i 10001000 1
ii 11111000 1
(1 per –)
Total 14
5 – Characters from a 2
computer using ASCII will
be interpreted as different
characters by a computer
using EBCDIC.
– Text will be
incomprehensible.
(1 per –)
Total 2
© OCR 2023. You may photocopy this page. 76 of 123 Created in ExamBuilder
Mark Scheme
6 a i 01011001 1
Examiner's Comments
ii 10001001 1
Examiner's Comments
iii 131 1
Examiner's Comments
(1 per –, max 3)
c i 10100111 1
Examiner's Comments
ii 10111000 1
Examiner's Comments
© OCR 2023. You may photocopy this page. 77 of 123 Created in ExamBuilder
Mark Scheme
If ft answer generates no
(1 for 8 bit correct answer, 1
carries – max. 1 mark
for showing appropriate
correct carries)
Examiner's Comments
Total 12
© OCR 2023. You may photocopy this page. 78 of 123 Created in ExamBuilder
Mark Scheme
b In order 3 cao
Examiner's Comments
15
Column This question was well
Row answered with most
candidates gaining full
marks
Total 6
© OCR 2023. You may photocopy this page. 79 of 123 Created in ExamBuilder
Mark Scheme
8 a 100011 1
Examiner's Comments
© OCR 2023. You may photocopy this page. 80 of 123 Created in ExamBuilder
Mark Scheme
Examiner's Comments
Meaningful identifiers
Commenting
Indenting
© OCR 2023. You may photocopy this page. 81 of 123 Created in ExamBuilder
Mark Scheme
Translator Diagnostics
reports when syntax Steping
errors are made and Executes each line in
suggests solutions / turn
example from code
Breakpoints
Allows the code to stop To allow checking of
at chosen point path(s)/values
To check variables /
example from code (Variable) watch
To monitor the status of
Award one mark for each variables (and
correctly named facility, and objects)…
up to two marks for the … as you step through
description. code / as they change
Examiner's Comments
Translator Diagnostics,
Breakpoints and watches
were generally well known
but not always expressed
clearly. With breakpoints,
for example, most got the
point of stopping execution
at a statement but then just
said “to find the error” rather
than checking variable
values to see if they
matched expected values.
In the case stepping it was
not always clear if they
were describing dry running
or stepping.
Total 18
© OCR 2023. You may photocopy this page. 82 of 123 Created in ExamBuilder
Mark Scheme
Amount of credit:
Examiner's Comments
© OCR 2023. You may photocopy this page. 83 of 123 Created in ExamBuilder
Mark Scheme
Examiner's Comments
© OCR 2023. You may photocopy this page. 84 of 123 Created in ExamBuilder
Mark Scheme
© OCR 2023. You may photocopy this page. 85 of 123 Created in ExamBuilder
Mark Scheme
Total 24
b i P normalised… 2
… as mantissa starts 10 Examiner's Comments
Examiner's Comments
Total 11
© OCR 2023. You may photocopy this page. 86 of 123 Created in ExamBuilder
Mark Scheme
c i 2 1
Examiner's Comments
ii 2 1
Examiner's Comments
© OCR 2023. You may photocopy this page. 87 of 123 Created in ExamBuilder
Mark Scheme
Total 15
© OCR 2023. You may photocopy this page. 88 of 123 Created in ExamBuilder
Mark Scheme
12 a i 11100111 1 AO1.2
© OCR 2023. You may photocopy this page. 89 of 123 Created in ExamBuilder
Mark Scheme
Total 14
Total 1
© OCR 2023. You may photocopy this page. 90 of 123 Created in ExamBuilder
Mark Scheme
Examiner’s Comments
To gain the mark, the
candidate was required to
use all 8 bits. Some used 7
bits and therefore did not
achieve the mark.
Candidates should be
reminded to read through
each question carefully.
Examiner’s Comments
This question was
answered well with most
errors relating to a
miscalculation.
Examiner’s Comments
This was generally
answered well although
some candidates were
confused between two’s
complement and sign and
magnitude.
© OCR 2023. You may photocopy this page. 91 of 123 Created in ExamBuilder
Mark Scheme
Examiner’s Comments
As with Question 4 (b) (iii),
this was answered well
although some candidates
gave an answer using two’s
complement.
Total 9
© OCR 2023. You may photocopy this page. 92 of 123 Created in ExamBuilder
Mark Scheme
Total 2
© OCR 2023. You may photocopy this page. 93 of 123 Created in ExamBuilder
Mark Scheme
ii -149 1 CAO
Examiner’s Comments
Most candidates were able
to gain some marks, with
many gaining full marks. A
popular method was to do
two’s complement addition.
Candidates should be
encouraged to show their
working in binary and not
do the subtraction in denary
and then just give the
answer in binary. The
question asks them to
complete a binary
subtraction.
© OCR 2023. You may photocopy this page. 94 of 123 Created in ExamBuilder
Mark Scheme
Examiner’s Comments
Most candidates correctly
identified the exponent and
that the point needed to be
moved to the left. Any valid
method of working was
given marks here, where
candidates got the correct
answer.
Total 13
© OCR 2023. You may photocopy this page. 95 of 123 Created in ExamBuilder
Mark Scheme
c = text.subString(x,
(Returning via assigning to
function identifier is used in
1)
// check if character
VB / Pascal)
is a capital
return capCount
endfunction
Total 6
© OCR 2023. You may photocopy this page. 96 of 123 Created in ExamBuilder
Mark Scheme
Total 1
© OCR 2023. You may photocopy this page. 97 of 123 Created in ExamBuilder
Mark Scheme
© OCR 2023. You may photocopy this page. 98 of 123 Created in ExamBuilder
Mark Scheme
© OCR 2023. You may photocopy this page. 99 of 123 Created in ExamBuilder
Mark Scheme
Examiner's Comments
Total 25
© OCR 2023. You may photocopy this page. 100 of 123 Created in ExamBuilder
Mark Scheme
Total 4
© OCR 2023. You may photocopy this page. 101 of 123 Created in ExamBuilder
Mark Scheme
21 a i 1.75 Converted to 4
binary 1.11 Examiner's Comments
Move decimal point
0.111 Candidates are getting
Exponent is 001 expert at these and there
Correct answer were very few wrong
0111001 answers.
Total 11
© OCR 2023. You may photocopy this page. 102 of 123 Created in ExamBuilder
Mark Scheme
22 a 00110111 2
(1 mark per nibble) Examiner's Comments
b 01101110 00000110 2
Examiner's Comments
(1 mark for mantissa, 1 for
exponent) Few candidates achieved
full marks on this question.
Many represented a
normalised floating point
mantissa with two of the
same bit at the start.
c 0110111 0110 2
Examiner's Comments
(1 mark for mantissa, 1 for
exponent) Few candidates achieved
full marks on this question.
Many reduced the number
of bits by deleting the
leading zero's, rendering
the result negative.
Total 7
© OCR 2023. You may photocopy this page. 103 of 123 Created in ExamBuilder
Mark Scheme
Total 5
© OCR 2023. You may photocopy this page. 104 of 123 Created in ExamBuilder
Mark Scheme
24 Method [3 marks] 4
Examiner's Comments
OR
Answer [1 mark]
11010101 [1]
Total 4
© OCR 2023. You may photocopy this page. 105 of 123 Created in ExamBuilder
Mark Scheme
25 a 2
One byte correct (1) all
three bytes correct. (1)
Total 10
© OCR 2023. You may photocopy this page. 106 of 123 Created in ExamBuilder
Mark Scheme
26 a i 10101011 1
ii 171 1
b i 11110111 1
ii 10001001 1
c i Not Normalised 1
Total 11
Making it 010.01010 (1)
© OCR 2023. You may photocopy this page. 107 of 123 Created in ExamBuilder
Mark Scheme
Examiner’s Comments
Total 8
© OCR 2023. You may photocopy this page. 108 of 123 Created in ExamBuilder
Mark Scheme
28 a i 10111100 1
(AO1.2)
Examiner’s Comments
Again, these questions
were very well received by
candidates with most
scoring full marks.
ii BC 1
(AO1.2)
b i 10101100 1
(AO1.2)
Examiner’s Comments
Again, these questions
were very well received by
candidates with most
scoring full marks.
ii 11010100 1
(AO1.2)
Examiner’s Comments
Generally most candidates
stated that two bit shifts
were required but some
went on to state the
incorrect direction i.e. left.
© OCR 2023. You may photocopy this page. 109 of 123 Created in ExamBuilder
Mark Scheme
…’Borrowing’ (1)
shown…
…Answer: (1)
0110.110
Normalised to: 01101
Mantissa 1 (1)
Exponent 0011
(1)
Examiner’s Comments
Candidates whose solution
was presented in a logical
manner tended to score at
least 4 marks on this
question. Candidates used
different methods to find the
solution, all of which were
accepted (provided the
logic of the calculation
could be followed).
Centres should advise
candidates to present the
layout of their responses to
this type of question in a
logical manner.
Total 12
© OCR 2023. You may photocopy this page. 110 of 123 Created in ExamBuilder
Mark Scheme
Total 1
© OCR 2023. You may photocopy this page. 111 of 123 Created in ExamBuilder
Mark Scheme
30 a 01001000 1
AO1.2
(1)
b 133 1
AO1.2
(1)
c 68 1
AO1.2 Examiner’s Comments
(1)
A significant number of
candidates achieved all
three available marks
across the first three parts
of this question.
e - Computers use a 2
character set/ASCII/
UNICODE AO1.1
- To map binary values to (2)
characters
- Each character is Examiner’s Comments
represented by a unique
value Most candidates achieved
(1 per -, max 2) both available marks. With
the majority describing
ASCII.
Total 8
© OCR 2023. You may photocopy this page. 112 of 123 Created in ExamBuilder
Mark Scheme
31 a 3 Also accept: ¬C vB
Accept alternative symbols.
AO2.1
(1, 1st
Mark)
AO2.2
Gives: Bv¬C (2, Last 2 Examiner’s Comments
Marks)
- Correct two groups The question required
identified. candidates to find the
- Bv Boolean expression
- ¬ represented in the
(1 per -, max 3) Karnaugh Map. Most
candidates achieved a mark
for showing the correct
groupings on the map.
Many went on to achieve
the marks for the resultant
expression. Alternative
notations were accepted
and credited.
Total 7
© OCR 2023. You may photocopy this page. 113 of 123 Created in ExamBuilder
Mark Scheme
Total 2
© OCR 2023. You may photocopy this page. 114 of 123 Created in ExamBuilder
Mark Scheme
c 370F 2 (AO1.2)
1 Mark for the first two
digits (i.e. 37)
1 Mark for the last two digit Examiner’s Comments
(i.e. 0F)
Most candidates achieved
both marks on this
question.
d - Exponent is 2 3 (AO1.2)
- Mantissa becomes Examiner’s Comments
010.01
- Value is 2.25 Most candidates achieved
(1 Mark per -, Max 3) full marks on this question.
Those who did not,
invariably scored zero
marks.
© OCR 2023. You may photocopy this page. 115 of 123 Created in ExamBuilder
Mark Scheme
Examiner’s Comments
Examiner’s Comments
Total 15
© OCR 2023. You may photocopy this page. 116 of 123 Created in ExamBuilder
Mark Scheme
Examiner’s Comments
© OCR 2023. You may photocopy this page. 117 of 123 Created in ExamBuilder
Mark Scheme
Total 9
35 Advantage 2
More characters can be AO1.2 Examiner’s Comments
represented
Some candidates’
advantages/disadvantages
may include foreign were not clear enough to
alphabets gain credit e.g.
‘disadvantage – reviews
take up more space’ is not
may include emojis sufficient at this level of
study. Candidates should
clearly demonstrate
understanding that ‘reviews
take up more storage’.
Disadvantage
Reviews take up more
storage (4 times their
previous storage size).
Total 2
© OCR 2023. You may photocopy this page. 118 of 123 Created in ExamBuilder
Mark Scheme
36 a integer 1
AO1.2
b Boolean 1
AO1.2
c String 1
AO1.2
Total 3
© OCR 2023. You may photocopy this page. 119 of 123 Created in ExamBuilder
Mark Scheme
37 a 5E 1
AO1.2 Examiner’s Comments
b 155 2
(1 mark for first two digits, 1 AO1.2 Examiner’s Comments
mark for final digit)
A relatively high proportion
of candidates presented
their answer to this question
in binary as opposed to
denary, hence, losing
credit. Candidates should
be reminded to read the
question carefully.
c 11010111 2
(1 Mark for the left most 1, AO1.2 Examiner’s Comments
1 mark for the remaining 7
bits) Some candidates
demonstrated confusion
between sign and
magnitude and two’s
complement binary
representation of negative
number.
d 1121 2
022022 AO1.2 Examiner’s Comments
01001001-
00101111 Many candidates achieved
00011010 full marks on this question.
1 mark for correct answer Those who did not,
1 mark for valid method generally did not show
evidence of binary
subtraction. Converting the
binary numbers to denary,
carrying out the subtraction
and converting the result
back to binary does not
evidence binary subtraction.
© OCR 2023. You may photocopy this page. 120 of 123 Created in ExamBuilder
Mark Scheme
e Exponent is 3 3
AO1.2 Examiner’s Comments
(1 per -, max 3)
(1 per -, max 4)
Total 14
© OCR 2023. You may photocopy this page. 121 of 123 Created in ExamBuilder
Mark Scheme
38 a 236 1
AO2.1
(1)
b B3 1
AO2.1
(1)
c –101 1
AO2.1
(1)
Total 5
© OCR 2023. You may photocopy this page. 122 of 123 Created in ExamBuilder
Mark Scheme
AO1.2
AO1.2
AO1.2
ii 1000 0000 2
OR
AO2.2
Total 14
© OCR 2023. You may photocopy this page. 123 of 123 Created in ExamBuilder