1.1.1 Binary Systems
1.1.1 Binary Systems
4. Convert the following binary numbers into decimal number & hexadecimal number:
(i) (00001100) 2
R
(ii) (01011001) 2
R
(iii) (00000111) 2
R
5. Is there a short cut to working out a binary number that is made of solid ones, such as:
(01111111) 2?
R R
Page 1 of 18
Computer Science 2210 UZZAM
Topical Past Papers ABBASI
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 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
Page 3 of 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
Page 4 of 18
Computer Science 2210 UZZAM
Topical Past Papers ABBASI
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 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
(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 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
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 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
(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 18
Computer Science 2210 UZZAM
Topical Past Papers ABBASI
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 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
(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 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
(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 that order.
The length of time each light is on is set by a binary value in another register, R2:
Page 11 of 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
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 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
Thus,
Page 13 of 18
Computer Science 2210 UZZAM
Topical Past Papers ABBASI
(b) Three options (A, B, C) are shown on the touch screen below:
Page 14 of 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
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 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI
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 18
Computer Science 2210 UZZAM
Topical Past Papers ABBASI
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 18
Computer Science 2210 UZZAM
Topical Past Papers ABBASI
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.
Page 18 of 18