Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

Q1 2016-SP, P1

13 When a key is pressed on the keyboard, the computer stores the ASCII representation of the character
typed into main memory.

The ASCII representation for A is 65 (denary), for B is 66 (denary), etc.

There are two letters stored in the following memory locations:

(a) (i) Show the contents of Location 1 and Location 2 as binary.

Location1 ………………………………………………………………………………………………………………………….

Location2 ………………………………………………………………………………………………………………….. [2]

(ii) Show the contents of Location 1 and Location 2 as hexadecimal.

Location 1 ……………………………………………………..………………………………………………………………….

Location …………………………………………………………………………………………………………………….. [2]

(b) The following machine code instruction is stored in a location of main memory:

Convert this binary pattern into hexadecimal.

……………………………………………………………………………………………………………………………………………… [4]

(c) Explain why a programmer would prefer to see the contents of the locations displayed as
hexadecimal rather than binary, when debugging his program that reads the key presses.

……………………………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………………………

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 1


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

……………………………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………………… [2]

Q2 2015-SP, P1

4 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.

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

……………………………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………………………

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 2


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

……………………………………………………………………………………………………………………………………………………

..…………………………………………………………………………………………………………………………………………… [2]

Q3 2016-June, P12

3 (a) Convert the following hexadecimal number into 12-bit binary:

(b) The 2016 Olympic Games will be held in Rio de Janeiro. A timer that counts down to the
opening of the Games is shown on a microprocessor-controlled display.

The number of hours, minutes and seconds until the Games open are held in three 8-bit
registers.

The present register values are:

(ii) Write the hexadecimal value of the minutes register from part (b)(i).

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 3


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

…....................................................................................................................................... [1]

Q4 2016-June, P11

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:

Q2 2015-June, P12

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 4


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

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.

(b) An encryption system works by shifting the binary value for a letter one place to the left. “A”
then becomes:

This binary value is then converted to hexadecimal; the hexadecimal value for “A” will be:
C2
For the two letters “L” and “G”, shift the binary values one place to the left and convert these
values into hexadecimal:

Q3 2014-Nov, P12

4 Six statements and six values are shown below.


Each statement will generate one possible value.
Draw a line to link each statement to its correct value.

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 5


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

Q4 2013-Nov, P12

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

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 6


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

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.

(ii) Shift this 8-bit binary number 2 place 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 place to the
left?

…………………………………………………………………………………………………………………………………………

…………………………………………………………………………………………………………………………………… [1]

(e) If any 8-bit binary number was shifted one place to the right, what would this be equivalent to?

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 7


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

……………………………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………………… [1]

Q5 2009-Nov

15 Electric guitars consist of strings and frets.

Thus, the above note would be shown as:

It is also important to indicate where the strings should be held down. This is shown on the FRET. If the
fingers are to be held down at the 20th FRET, this is shown in binary as:

(NOTE: add up the numbers in the headings where binary 1s appear, i.e. 16 + 4 = 20)

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 8


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

(ii) What FRET position corresponds to 010011?

………………,…………………………………………………………………………………………………………………………

………………………….………………………………………………………………………………………………………… [2]

(c) Describe two advantages of storing musical notes in this format.

1. …………………………………………………………………………….………………………………………………………………

…………………………………………………………………………….………………………………………………………………

………………………………………………………………………….…………………………………………………………………

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 9


ahmed_thakur@hotmail.com, 0300-8268885
CAMBRIDGE COMPUTER SCIENCE AHMED THAKUR

OL COMPUTER SCIENCE – 2210/01 TOPICAL PAST PAPERS


1.1 DATA REPRESENTATION – NUMBER SYSTEM

2. ………………………………………………………………….…………………………………………………………………………

…………………………………………………………….………………………………………………………………………………

..……………………………………………………………………………………………………………………………………… [2]

AHMED THAKUR https://www.facebook.com/groups/OAComputers/ Page 10


ahmed_thakur@hotmail.com, 0300-8268885

You might also like