Test 1 Binary Data Representation
Test 1 Binary Data Representation
Yes No
INSTRUCTIONS
● Answer all questions.
● Use a black or dark blue pen. You may use an HB pencil for any diagrams or graphs.
● Write your name, centre number and candidate number in the boxes at the top of the page.
● Write your answer to each question in the space provided.
● Do not use an erasable pen or correction fluid.
● Do not write on any bar codes.
● Calculators must not be used in this paper.
INFORMATION
● The total mark for this paper is 50.
● The number of marks for each question or part question is shown in brackets [ ].
● No marks will be awarded for using brand names of software packages or hardware.
(a) Identify what time is represented by the following two 8-bit registers.
A B
0 0 0 1 0 0 1 0 : 0 0 1 1 0 1 0 1
(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.
C D
Hours Minutes
Workings:
...................................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... [2]
(c) Two's complement allows for the same addition circuitry to be used for both addition and
subtraction. Show what will be the result of C-D in a new register E.
Workings:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[2]
(a) Write the binary numbers that would be produced from this barcode:
Binary number A:
Binary number B:
[2]
(b) Explain the effect of Shifting Binary numbers A to the right by 3 bits.
Explanation
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
Binary number A:
[3]
(c) Explain the effect of Shifting Binary numbers B to the left by 2 bits.
Explanation
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................
Binary number B:
[3]
0 0 1 0 1 0 0 1 1 1 1 1 1 1 0 0
Workings:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.................................................................................................................................................. [2]
(b) Explain why a programmer might prefer to read the instruction in hexadecimal rather than in
binary.
Workings:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
................................................................................................................................................... [2]
Use 1 ........................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Use 2 ........................................................................................................................................
...................................................................................................................................................
......................................................................................................................................................[2]
The following list shows 16 characters with their numerical ASCII codes in denary:
Web addresses can be written using hexadecimal rather than denary. Hexadecimal codes are
preceded by a % sign. For example, the word “c a g e” is written as:
(a) Complete the conversion of the following web address into hexadecimal:
w w w . a s c o t . a c . t h
[3]
(b) Complete the following web address from the given decimal ASCII codes:
w w w
[3]
5.
(a) A manufacturer of spacecraft engines assigns a denary identification number (ID) to each
engine. One engine has the ID:0431. The current status of the engine is sent to a computer
in the spacecraft as well as to the manufacturer.
Each piece of data collected is 10 bytes in size. Data collection occurs every 10 seconds.
Calculate the number of kilobytes that would be needed to store the data collected during a 10-
hour flight. Show your work.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
(i) Explain why recording sound with a higher sampling resolution creates a more accurate
recording.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
. ........................................................................................................................................ [3]
6. Consider the following 8x8 black and white image, where each pixel is either black (represented by
1) or white (represented by 0):
0 0 1 1 1 1 1 1 0 0
0 1 0 0 0 0 0 0 1 0
1 0 1 1 0 0 1 1 0 1
1 0 1 1 0 0 1 1 0 1
1 0 0 0 0 0 0 0 0 1
1 0 1 1 0 0 1 1 0 1
1 0 1 1 1 1 1 1 0 1
0 1 0 0 0 0 0 0 1 0
0 0 1 1 1 1 1 1 0 0
0 0 0 0 0 0 0 0 0 0
Use Run-Length Encoding (RLE) to compress the above image row by row. Write the RLE format
for each row as a sequence of pairs.
Workings:
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
.................................................................................................................................................. [6]
© UCLES 2015 0478/11/M/J/15
7. (a) Mr Thomas wants to send a large file to the Cambridge Exam Center over the Internet.
Benefit 1 .........................................................................................................................
.........................................................................................................................................
.........................................................................................................................................
Benefit 2 .........................................................................................................................
.........................................................................................................................................
...........................................................................................................................................[2]
Choose the most suitable type of compression for the following and explain your choice.
Type of compression
..............................................................................................................................................
Explanation
..............................................................................................................................................
..............................................................................................................................................
..............................................................................................................................................[3]
Type of compression
..............................................................................................................................................
Explanation
.............................................................................................................................................
.............................................................................................................................................
.............................................................................................................................................[3]
Question Answer