1.1.1 Binary Systems
1.1.1 Binary Systems
1.1.1 Binary Systems
4. Convert the following binary numbers into decimal number & hexadecimal number:
(i) (00001100)2
(ii) (01011001)2
(iii) (00000111)2
5. Is there a short cut to working out a binary number that is made of solid ones, such as:
(01111111)2?
Page 1 of 22
Computer Science 2210
Topical Past Papers
9 .A 7-segment display is used to indicate which floor a lift is on. Each segment is numbered as
shown:
A byte is used to hold the data needed to light the correct segments. Bit 0 is always zero. For
example, 3 is represented by
(a) If the lift is to stop at more than one floor, the data is held in successive bytes. For example:
Page 2 of 22
Computer Science 2210
Topical Past Papers
Page 3 of 22
Computer Science 2210
Topical Past Papers
Page 4 of 22
Computer Science 2210
Topical Past Papers
11 A digital alarm clock is controlled by a microprocessor. It uses the 24-hour clock system
(i.e. 6 pm is 18:00).
Each digit in a typical display is represented by a 4-digit binary code:
What time is shown on the clock display if the 4-digit binary codes are:
(b)
What would be stored in the 4-digit binary codes if the clock display time was:
Page 5 of 22
Computer Science 2210
Topical Past Papers
(c)
The clock alarm has been set at 08:00.
Describe the actions of the microprocessor which enable the alarm to sound at 08:00 [2]
Page 6 of 22
Computer Science 2210
Topical Past Papers
A customer uses a keypad to make their choice. Each number entered is represented in a 6-bit
binary register.
For example, key press 33 (hot chocolate with extra milk and extra sugar) is represented by:
(a) (i) If a customer chooses coffee with milk and sugar what is the key press?
Page 7 of 22
Computer Science 2210
Topical Past Papers
(c) A customer using the vending machine gets an error message after keying in their
selection.
What could have caused this error message?
(d) It was decided to split the register so that each digit was represented by its own 3-bit
register:
For example, 42 would now be represented as:
(i) What drink has been chosen if the 3-bit registers contain:
(ii) How would the lemon option be shown on both types of register?
(iii) What is the advantage of using two 3-bit registers rather than one 6-bit register?
Page 8 of 22
Computer Science 2210
Topical Past Papers
13 A large hotel uses eight lifts (elevators) to carry passengers between its sixty floors.
A computer is used to control and monitor the lifts. Each lift has three registers to represent
its state.
(c) (i) A customer is on the 14th floor and wants to go to the 50th floor. She presses the
button to call the lift.
What two pieces of information would the computer check to identify which of the
eight lifts should be made available? [2]
(ii) Using your answers to part (i), which of the following lifts would be made available
to the customer?
Page 9 of 22
Computer Science 2210
Topical Past Papers
(d) An engineer wishes to test that this computer system detects incorrect data.
Describe what input the engineer might use to check that the computer can correctly
identify a fault condition. [2]
11 Letters from the Greek alphabet are to be transferred to a computer system. Each letter canbe
represented on an 8 by 8 grid. Each column has a value from 1 to 128.
The value of each row is stored in a table. The values in the column headings are used to
work out the value for each row (e.g. in our example, row 8 has the value 64 + 32 + 4 + 2 =
102).
Thus, in the example below, the letter (π) is stored as:
(a) What values would be stored in the table for the Greek character (Σ)? [4]
Page 10 of 22
Computer Science 2210
Topical Past Papers
(b) Draw the character formed from the following value table: [4]
this means the blue, yellow and black colour sequence is stored and displayed in thatorder.
The length of time each light is on is set by a binary value in another register, R2:
Page 11 of 22
Computer Science 2210
Topical Past Papers
sequence of colours
timing [2]
(b) What will the two registers contain if the coloured light sequence is red, green and
black and the timing is 5 seconds?
(c) What is the problem with trying to display green, blue, red in that order? [2]
Oct/Nov 2013. P12
All the bits in the binary number have now been shifted (moved) one place to the left.
(a) What denary number does this now represent? [1]
(b) What effect did the shift have on the original denary number? [1]
(c) If the above binary number was shifted another one place to the left, what denary
number would it be equivalent to? [1]
(d) (i) Represent the denary number 46 as an 8-bit binary number. [1]
Page 12 of 22
Computer Science 2210
Topical Past Papers
Thus,
Page 13 of 22
Computer Science 2210
Topical Past Papers
(b) Three options (A, B, C) are shown on the touch screen below:
Page 14 of 22
Computer Science 2210
Topical Past Papers
12 A digital light meter has a 3-digit LCD. The value of each digit on the instrument display is
storedas a 4-bit binary number in a register.
For example:
(a) What value is shown on the display if the 4-bit binary registers contain:
(b) What would be stored in the 4-bit binary registers if the display shows:
(c) If any of the 4-bit binary registers X, Y or Z contain the value 1 1 1 1 this indicates an error.
(i) How could this error be shown on the instrument display? [1]
(ii) What could cause an error to occur? [1]
Page 15 of 22
Computer Science 2210
Topical Past Papers
A 4-bit register is used to store the encryption key. This register shows how many places the bitsare
shifted to the left in the 12-bit register when it is encrypted. So,
means each bit in the 12-bit register is shifted 5 places to the left and the register now becomes:
Therefore, the letter “S” would be transmitted with the 4-bit register and the 12-bit register
asfollows:
Show how the letter “W” is now stored in the 12-bit register in encrypted form:
(b) Find which letter of the alphabet has been encrypted here. (Show all your working.)
Page 16 of 22
Computer Science 2210
Topical Past Papers
8 An alarm clock is controlled by a microprocessor. It uses the 24 hour clock. The hour is
represented
by an 8-bit register, A, and the number of minutes is represented by another 8-bit register, B.
(a) Identify what time is represented by the following two 8-bit registers.
(b) An alarm has been set for 07:30. Two 8-bit registers, C and D, are used to represent the
hours and minutes of the alarm time.
Show how 07:30 would be represented by these two registers:
(c) Describe how the microprocessor can determine when to sound the clock alarm.
[3]
Page 17 of 22
Computer Science 2210
Topical Past Papers
10 Letters from the alphabet are represented in a computer by the following denary (base 10)
values:
A = 97
G = 103
I = 105
L = 108
N = 110
The word “A L I G N” is stored as: 97 108 105 103 110
(a) Convert each of the five values to binary. The first one has been done for you.
2 Sensors and a microprocessor monitor a car exhaust for high temperature and high carbon
monoxide (CO) levels.
(b) The information from seven sensors is sent to an engine management system in the car. The
status of each sensor is stored in an 8-bit register; a value of 1 indicates a fault condition:
Page 18 of 22
Computer Science 2210
Topical Past Papers
(i) Identify the fault condition(s) that the following register indicates:
[2]
[2]
(iii) A car has a faulty airbag and the CO level is too high.
Write what should be contained in the 8-bit register.
[2]
(iv) Give the hexadecimal value of the binary number shown in part (iii). [1]
7 Each seat on a flight is uniquely identified on an LCD above the seat. For example, seat 035C is
shown as:
The first three characters are digits that represent the row.
The fourth character is the seat position in that row. This is a single letter, A to F, that is stored as a
hexadecimal value.
Each of the four display characters can be stored in a 4-bit register. For example, 0 and C would
be represented as:
(a) Show how the 4-bit registers would store the remaining two characters, 3 and 5.
Page 19 of 22
Computer Science 2210
Topical Past Papers
[2]
[2]
[1]
(b) All the bits in the register are shifted one place to the right as shown below.
Write the denary number that is represented after this shift. [1]
(c) State the effect the shift to the right had on the original denary number from part (a). [1]
(d) The original number in part (a) is shifted three places to the right.
(i) Show the new binary number:
[1]
Page 20 of 22
Computer Science 2210
Topical Past Papers
10 (a) A manufacturer of aeroplane engines assigns a denary identification number (ID) to each
engine.
One engine has the ID: 0431
(i) Convert this denary number to a 12-bit binary format.
[2]
3 (a) Explain the differences between the binary number system and the denary number system.
[4]
(b) Explain the process of converting the binary number 1010 into a denary number. [5]
Complete the sentences in Jane’s answer, using the list given. Not all items in the list need to be
used.
•2
• 10
• 16
• analogue
• binary
• denary
• digital
• hexadecimal
Page 21 of 22
Computer Science 2210
Topical Past Papers
Page 22 of 22