0% found this document useful (0 votes)
30 views18 pages

1.1.1 Binary Systems

Uploaded by

pubgmaan7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views18 pages

1.1.1 Binary Systems

Uploaded by

pubgmaan7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

UZZAM

Computer Science 2210


Topical Past Papers (Work Sheet #1)
ABBASI

Topic: 1.1.1 Binary systems


1. Express the denary value 109 as
(i) a binary number using an 8-bit byte;

2. Express the denary number 78 as


(i) a binary number stored in an 8 bit byte,

3. 01011101 and 11010010 are two numbers stored in the computer.


(i) Write down the decimal equivalent of 11010010.

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

Topic: 1.1.1 Binary systems


May/June 2007

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:

Which floor numbers are stored in each byte?


First byte floor
number………………………………………………………………………………………………………
Second byte floor number
…………………………………………………………………………………………………

(b) What bit pattern is used to indicate Floor 2?

Page 2 of 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI

Topic: 1.1.1 Binary systems


Oct/Nov 2009: 15 Electric guitars consist of strings and frets.

Page 3 of 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI

Topic: 1.1.1 Binary systems

Page 4 of 18
Computer Science 2210 UZZAM
Topical Past Papers ABBASI

Topic: 1.1.1 Binary systems


Oct/Nov 2011. P13

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

Topic: 1.1.1 Binary systems

(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

Topic: 1.1.1 Binary systems


May/June 2012. P11

2. A vending machine has the choices shown below.

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?

(ii) How is it represented in the 6-bit register?

(b) If the 6-bit register shows

what drink has the customer chosen?

Page 7 of 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI

Topic: 1.1.1 Binary systems

(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

Topic: 1.1.1 Binary systems


Oct/Nov 201. P13

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.

what information about the lift is shown? [2]


(b) How would the following information be shown in the three registers:
lift 6 presently on the 45th floor and going down

(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

Topic: 1.1.1 Binary systems

(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]

May/June 2013. P11

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

Topic: 1.1.1 Binary systems

(b) Draw the character formed from the following value table: [4]

May/June 2013. P12


14 Some decorative lights are made up from a cluster of red, blue, green, yellow and white
LEDs.
Each colour is represented by a binary code:

A 6-bit register, R1, stores the 1-values to represent a sequence of colours.


Thus, if R1 contains:

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

Topic: 1.1.1 Binary systems


Thus

means each colour is on for 2 seconds.


(a) The two registers contain the following values.
What is the sequence of coloured lights and the timing for each colour?

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

11 A denary number can be represented as an 8-bit binary number. For example:


27 would be represented as:

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

Topic: 1.1.1 Binary systems


(ii) Shift this 8-bit binary number 2 places to the left.
What is the denary equivalent? [1]
(iii) What problem would arise if you tried to shift this 8-bit binary number 3 places to
the left? [1]
(e) If any 8-bit binary number was shifted one place to the right, what would this be
equivalent to? [1]

Oct/Nov 2013. P13

13. A touch screen is divided up into a number of locations:

Each x-position is shown in a 6-bit register:

and each y-position is shown in a 5-bit register:

Thus,

refers to screen position: (30, 21)

Page 13 of 18
Computer Science 2210 UZZAM
Topical Past Papers ABBASI

Topic: 1.1.1 Binary systems


(a) Give the screen position referred to if the two registers contain:

(b) Three options (A, B, C) are shown on the touch screen below:

If the two registers contain:

what option (A, B or C) has been chosen?

(c) Each box A, B, C is made up of 128 x 64 pixels.


(i) What is meant by the term pixel?

(ii) The value of each pixel is stored in 1 byte of memory.


How much memory is needed to store one of these boxes?
Give your answer in kilobytes.

Page 14 of 18
Computer Science 2210 UZZAM
Topical Past Papers
ABBASI

Topic: 1.1.1 Binary systems


May/June 2014. P11

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

Topic: 1.1.1 Binary systems


May/June 2014. P12
16 An encryption system gives each letter of the alphabet a value:
A = 1, B = 2, C = 3, ……… , Y = 25, Z = 26.
Each letter is stored in a 12-bit binary register. The letter “S” (19th letter) is stored as:

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:

(a) “W” is the 23rd letter of the alphabet.


(i) Show how this letter would be stored in the 12-bit register before encryption:

(ii) The 4-bit register contains the following value:

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

Topic: 1.1.1 Binary systems


(c) (i) What is the largest encryption key that can be stored in the 4-bit register?

(ii) Convert this into denary (base 10).


(iii) If this encryption key were used, what problem would it cause? [3]

May/June 2015 P11 (2210)

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

Topic: 1.1.1 Binary systems


May/June 2015 P11 (2210)

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

You might also like