1.1 Information Representation - Exercise
1.1 Information Representation - Exercise
Q1 2015-June, P31
5 A gardener grows vegetables in a greenhouse. For the vegetables to grow well, the
temperature needs to always be within a particular range.
The gardener is not sure about the actual temperatures in the greenhouse during
the growing season.
The gardener installs some equipment. This records the temperature every hour
R
during the growing season.
(c)
KU
The equipment records temperatures in the greenhouse. It does this for seven
locations.
Each recording is stored as two successive bytes. The format is shown below:
A
TH
The location is indicated by the setting of one of the seven bits in byte 1. For example,
location 4 is indicated by setting bit 4.
Bit 0 of byte 1 acts as a flag:
• The initial value is zero
• When the reading has been processed it is set to 1
Byte 2 contains the temperature reading (two’s complement integer).
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................
........................................................................................................................................ [2]
A
R
Q2 2015-June, P13
1 (a) (i) Using two’s complement, show how the following denary numbers could be
KU
stored in an 8-bit register
A
TH
(ii) Convert the two numbers in part (a) (i) into hexadecimal.
124 ....................................................................................................................
.............................................................................................................................. [1]
HM
…………………………………………………………………………………………………
…………………………………………………………………………………………….. [2]
Q3 2015-June, P11/P12
2 (a) Sound can be represented in a computer in a digital format.
A
….................................................................................................................................
….................................................................................................................................
............................................................................................................................... [1]
(ii) Give one reason why 16-bit sampling is used in an audio compact disc (CD).
….................................................................................................................................
............................................................................................................................... [1]
R
(iii) Explain what is meant by the term sampling resolution.
KU
….................................................................................................................................
….................................................................................................................................
............................................................................................................................... [1]
A
(iv) Give one benefit and one drawback of using a higher sampling resolution.
….................................................................................................................................
TH
….................................................................................................................................
............................................................................................................................... [2]
(b) Describe two typical features found in software for editing sound files.
……….….................................................................................................................................
ED
……….….................................................................................................................................
……….…............................................................................................................................ [2]
HM
Q4 2015-June, P12, Q1
1 (i) Convert the following binary number into hexadecimal.
10111000
…............................................................................................................................ [1]
............................................................................................................................... [1]
(iii) Using two’s complement, show how the following denary numbers could be
stored in an 8-bit register:
R
KU
Q5 2014-June, P11
2. (c) Explain the difference between lossless and lossy data compression
techniques.
A
……….….................................................................................................................................
……….….................................................................................................................................
……….….................................................................................................................................
TH
……….….................................................................................................................................
……….…............................................................................................................................ [3]
Q6 2014-June, P33
5 (a) A computer system stores integers as an 8-bit two’s complement integer.
Give the denary number represented by Byte 1 and Byte 2.
ED
HM
Byte1 ……………………………………………………
(b) Two bytes together are used to represent a Binary Coded Decimal (BCD)
A
number.
State the denary number represented by Byte 3 and Byte 4.
(c) Byte 5 and Byte 6 together represent a 16-bit colour code used in a drawing
program.
R
KU
The drawing program displays a colour code as a hexadecimal number. State
the hexadecimal number for this colour code.
……………………………………………… [2]
A
(d) Many computer systems need to store and process real numbers.
A computer uses two bytes to store a real number. The first (Byte 7) stores the
TH
mantissa and the second (Byte 8) the exponent. Both mantissa and exponent
use two’s complement.
………………………………………………………………………………………………..
HM
………………………………………………………………………………………………..
………………………………………………………………………………………………..
………………………………………………………………………………………………..
…………………………………………………………………………………………….. [3]
A
(ii) How can you recognise that this 16-bit pattern (Byte 7 and Byte 8) is
normalized?
…………………………………………………………………………………………… [1]
(iv) What is the largest positive number that can be represented? Use the same
8-bit mantissa and 8-bit exponent. Show the mantissa and exponent.
R
KU
Do not attempt to evaluate this. [2]
A
TH
ED
HM
A
Q7 2014-June, P13
1 The following diagram shows five questions on the left and eight numerical values on
the right. Draw arrows to connect each question to the correct numerical value.
R
KU
A
TH
ED
HM
[5]
A
Q8 2014-June, P11
9 A vending machine dispenses drinks and has a number of drinks options.
R
KU
A
The vending machine is controlled by a microprocessor.
If a customer keys in 23 then they will receive a cup of coffee with milk and sugar.
A selected code is stored in a 7-bit register:
So, 23 will be stored as
TH
If an invalid code is keyed in, an error message is displayed.
(a) A customer selects a lemon drink.
Show how the code for this selection is stored in the 7-bit register
ED
HM
…………………………………………………………………………………………………… [1]
(c) State what would happen if the customer keys in a code which results in the
A
…………………………………………………………………………………………………………
…………………………………………………………………………………………………………
…………………………………………………………………………………………………… [1]
Q9 2014-Nov, P13
5 The table below represents a data structure. It is called Binary Number and stores:
• the place values for a binary integer, in the locations represented by the first row of
the table
the bits of a binary number, in the locations represented by the second row of the
R
•
table
KU
(a) What is the denary value of this binary number?
………………………………………………………………………………………………… [1]
A
(b) (i) What type of data structure is Binary Number?
………………………………………………………………………………………………… [1]
TH
Q10 2014-Nov, P12
5 A microprocessor-controlled alarm clock uses the 24-hour clock. The current time is
stored in two 8-bit memory locations:
The hours value is stored in memory location A
The minutes value is stored in memory location B
ED
(b) Two 8-bit memory locations, C and D, store the hours (C) and minutes (D) of the
alarm time.
The alarm has been set for 07:30. Show how 07:30 would be stored:
A
…………………………………………………………………………………………… [1]
R
…………………………………………………………………………………………… [1]
KU
…………………………………………………………………………………………………
…………………………………………………………………………………………… [1]
A
…………………………………………………………………………………………… [1]
……………………………………………………………………………………………… [1]
ED
(ii) How would the denary value 73 be represented as a positive binary integer?
……………………………………………………………………………………………… [1]
…………………………………………………………………………………………………… [2]
…………………………………………………………………………………………………… [2]
A
(i) What denary number is this if it represents a sign and magnitude integer?
………………………………………………………………………………………………… [1]
………………………………………………………………………………………………… [1]
R
…………………………………………………………………………………………………… [1]
(b) A computer system stores real numbers using a 12-bit floating point representation.
KU
The first 8 bits are the mantissa and the final 4 bits the exponent. Both the mantissa
and the exponent use two’s complement representation.
Consider the binary pattern:
A
(i) What is the mantissa in denary?
…………………………………………………………………………………………… [1]
TH
(ii) What is the exponent in denary?
………………………………………………………………………………………… [1]
…………………………………………………………………………………………… [1]
…………………………………………………………………………………………… [1]
(b) (i) A computer system needs to be able to store positive and negative integers.
Two possible representations are:
sign and magnitude
Two’s complement.
R
Describe two advantages of using two’s complement.
…………………………………………………………………………………………………
KU
…………………………………………………………………………………………………
……………………………………………………………………………………………[2]
(ii) Integers -13 and +59 are to be added using two’s complement addition.
A
Show your working.
TH
Q16 2012-June, P32
ED
2 A binary pattern can be used to represent different data used in a computer system.
…………………………………………………………………………………………………… [1]
…………………………………………………………………………………………………… [1]
…………………………………………………………………………………………………… [1]
…………………………………………………………………………………………… [1]
R
(ii) Change the binary number 01101100 into a positive denary integer.
…………………………………………………………………………………………… [1]
KU
Q18 2011-Nov, P33
2 (b) Convert the following denary numbers into 8-bit, two's complement, binary
numbers:
(i) –3
A
……………………………………………………………………………………………………
………………………………………………………………………………………………… [2]
TH
(ii) – 47
……………………………………………………………………………………………………
………………………………………………………………………………………………… [2]
…………………………………………………………………………………………………
HM
…………………………………………………………………………………………………
…………………………………………………………………………………………….. [3]
…………………………………………………………………………………………………
…………………………………………………………………………………………………
A
…………………………………………………………………………………………….. [3]
(i) +93
…………………………………………………………………………………………………………
R
…………………………………………………………………………………………………… [2]
KU
(ii) -69
…………………………………………………………………………………………………………
…………………………………………………………………………………………………… [2]
A
7. (a) Express the denary number -95 as a two’s complement integer in an eight-bit byte.
…………………………………………………………………………………………………………
TH
…………………………………………………………………………………………………… [2]
State what the data stands for if the data dictionary describes it as:
………………………………………………………………………………………………… [1]
…………………………………………………………………………………………………………
…………………………………………………………………………………………………….. [2]
…………………………………………………………………………………………………………
…………………………………………………………………………………………………….. [3]
R
…………………………………………………………………………………………………………
KU
…………………………………………………………………………………………………….. [2]
A
TH
ED
HM
A