Section 1.1 (Number Systems)
Section 1.1 (Number Systems)
A It is a base 1 system
B It is a base 2 system
C It is a base 10 system
[3]
(e) Two binary numbers are added by a computer and an overflow error occurs.
Explain why the overflow error occurred.
…..................................................................................................................................................
…..................................................................................................................................................
…..................................................................................................................................................
……............................................................................................................................................ [2]
[1]
(ii) State one effect this logical shift has on the binary number.
…………..........................................................................................................................................
.................................................................................................................................................... [1]
(c) Give two reasons why a programmer may use hexadecimal to represent binary numbers.
1.......................................................................................................................................................
.........................................................................................................................................................
2......................................................................................................................................................
.................................................................................................................................................... [2]
(d) Denary numbers can also be converted to hexadecimal.
Convert the denary number to hexadecimal.
301……...................................................................................................................................... [2]
Working space
…..................................................................................................................................................
…..................................................................................................................................................
…..................................................................................................................................................
…..................................................................................................................................................
…..................................................................................................................................................
(d) Add the two 8-bit binary numbers 11101110 and 00110001 using binary addition.
Give your answer in binary. Show all your working.
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
............................................................................................................................................ [4]
(e) The denary number 301 needs to be stored.
Calculate the least number of bits that can be used to store the denary number 301.
............................................................................................................................................ [1]
Working space
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
(f) The hexadecimal number A4D needs to be stored.
Calculate the least number of bits that can be used to store the hexadecimal number A4D.
............................................................................................................................................ [1]
Working space
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
Oct/Nov 2023 (0478/11)
2 A car park has a payment machine that allows a customer to pay for their parking.
The cost of parking is displayed as a denary number on a screen on the payment machine.
The cost of parking is stored in two 8-bit binary registers.
For the parking cost of $10.50:
Register 1 stores the denary value 10 as binary
Register 2 stores the denary value 50 as binary.
(a) Give the parking cost that would be displayed on the payment machine when the registers store:
Register 1: 00010001
Register 2: 01000110
Parking cost displayed $ ……….................................................................................... [2]
Working space
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
(c) The payment machine gives the customer a ticket when they have paid their parking cost. Each
ticket has a 4-digit hexadecimal ticket number that is stored as binary.
The binary number 1010000000111101 is stored for a customer’s ticket number.
Give the hexadecimal ticket number that would be displayed on this customer’s ticket.
Hexadecimal ticket number……................................................................................................. [4]
Working space
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
(d) Explain why data input into the payment machine needs to be converted to binary.
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
............................................................................................................................................ [2]
(c) A logical left shift of two places is performed on the binary number stored in the register.
Complete the binary register to show its contents after this logical left shift.
[1]
(d) The negative denary number −99 needs to be stored in the register.
Complete the register to show the binary number that would be stored, using two’s complement. Show all
your working.
Working space ..........................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
Register
[2]
(e) Add the binary values 00110011 and 01111000 using binary addition.
Give your answer in binary. Show all your working.
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
............................................................................................................................................ [3]