0 ratings0% found this document useful (0 votes) 109 views28 pagesChapter 01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
5
5
(a) The denary number 57 is to be stored in two different computer registers.
Convert 57 from denary to binary and show your working.
oe 2)
{b) Show the binary number from part (a) as it would be stored in the following registers.
Register 1
Register 2
fl
(c) Abinary number stored in a register can have many different uses, for example an address in
main memory.
Give two other uses for a binary number stored in a register.
Use 1
Use 2
(2)
(a) Aregister in a computer contains binary digits.
0O 0 1 1 1 0 1 0
The contents of the register represent a binary integer.
Convert the binary integer to hexadecimal.
[1]Question Answer Marks
5(a) | 1 mark for correct method, 1 mark for correct answer 2
32+16+8+1
(00)111001
5(b) | registers must have leading zeros, allow follow through from 5(a) for an 2
incorrect value
4 mark for each correct register.
o oO 1 1 1 oO o 1
o/o;olojolojojojo}oj1)1/1]}o]}o
5(c) | Two from: 2
+ data
+ ASCII value / Unicode value / character
+ number
+ part of image / small image
+ asound/ sound sample / small sound track
+ instruction
5(d) 3A 112
8 —Analarmclockis 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.
2
0/0/0/1/0/0/1/0):|0/0)1)1)0)1)0)1
Minutes ....
2]
(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:
Hours Minutes8 (a) hours 18
minutes: 53
(b)
hours (“C”)
minutes (“D”)
2)
0
ojo
o i141 1 1
2)Question
What is the denary (base 10)
equivalent to the hexadecimal
digit E?
If 1GB = 2* then what is the
value of X?
How many bits are there in one
byte?
If the broadband data download
rate is 40 megabits per second,
how many seconds will it take to
download a 60 MB file?
What is the denary (base 10)
value of the binary number
00100100?
What hexadecimal value
is obtained when the two
hexadecimal digits C and D
are added together?
14
9 Draw a line to connect each question to the correct answer.
Answer
12
14
19
30
36
(5)What is the denary (base 10)
‘equivalent to the hexadecimal
digit *E"?
x
If GByte=2 then what is the
value of X?
‘The number of bits in one byte
Ifthe broadband data download
rate is 40 megabits) second; how
ong will it take to download a 60
MByte file?
12
14
What is the denary (base 10)
value of the binary number:
001001007
What hexadecimal value is
obtained when the two
hexadecimal digits, ¢ and D, are
added together?
5/6 matches — 5 marks
4 matches — 4 marks
3 matches — 3 marks
2 matches — 2 marks
4 match — 1 mark
19
30
36
(5)4
10 Letters from the alphabet are represented in a computer by the following denary (base 10) values:
A 97
G 103
' 105
te 108
N = 110
The word "ALIGN"isstoredas: 97 108 105 103 110
(a) Convert each of the five values to binary. The first one has been done for you.
Letter Denary value
age7:/0 1 1)/0)/0'0/0)1
L (108):
1(105):
G (103):
N (110):
(2)
(b) An encryption system works by shifting the binary value for a letter one place to the left. “A”
then becomes:
1/1,0° 0;0/0|1°>0
This binary value is then converted to hexadecimal; the hexadecimal value for “A” will be:
c 2
For the two letters “L’ and “G’, shift the binary values one place to the left and convert these
values into hexadecimal:
hexadecimal10 (a) 1 mark for two correct lines, 2 marks for four correct lines
L (108): o}1]4fojf1f4)o0)]o0
1 (105): o}/1]af]ojf/1f{o/o0]4
G (103): o}1]afojojf14 4)
N (110): o}a]afojf1f4)41)]o
(2)
(b) 1 mark for each correct binary value
1 mark for each correct hexadecimal value
hexidecimal
ui: | 4 1/0 1 1 o;o}]o bs
G@l1}/1)/o;o;1+}a}afo cE
(4)4
(@) (Convert the following two hexadecimal numbers into binary:
FAT
D3E
FAT
D3E
(ii) Now perform the AND (logic)
two numbers fro!
m part (i)
operation on eaci
+h corresponding pai
ir of binary
(4)
bits in the
Convert your answer in part (ii) into hexadecimal.
2]
24
(a) (i) For each hex number, 2 marks if all correct, 1 mark for 2 correct conversions
car [4 [4] 4 [4 [1 0 1/0 fofs)1]1
ose [11 fo] 1 foo 1/1141) 1/0
(ii) 2 marks if all correct, 1 mark for 2 correct conversions — Follow through
t|1]o]1 [Jojo sjoffjoi1 1 0
(iii) 2 marks if all correct, 1 mark for 2 correct conversions — Follow through
D26
(4)
2
2)Each seat on a flight is uniquely identified on an LCD above the seat. For example, seat 035C is
|
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:
8 4 2 4
o |0/|0/0|0
c{1}/1{/0]0
{a) Show how the 4-bit registers would store the remaining two characters, 3 and 5.
7 8/16
(2)
{b) Identify which seat is stored in the following 4-bit registers.
0
0
1
1
-|ololo
0
1
0
1
1
1
o |—~
0
(2)7
(a) 4 mark for each correct binary value
(b)
1c)
1 mark
Ros
E > tmak
23
3
(a) Convert the following hexadecimal number into 12-bit binary:
4AF
(3)
(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:
Oo;1;1};0/1}0)0]1 105 hours
0/;0)/1/0/0)0);0/]/0 32 minutes
0;0/0/1/0}1);)0/0 20 seconds
The timer will count down in seconds.
(Show the values in each 8-bit register 30 seconds after the time shown above:
hours
minutes
seconds
(il) Write the hexadecimal value of the minutes register from part (b)(i).3
{a) 1 mark for each nibble
0100 1010 1111
(b) @) 01101004
00011111
00110010
(i) 1F
105 hours
31 minutes
50 seconds
1 mark
4 mark
4 mark
(3)
8)
(1)9 Inthe following barcode, each binary number is made up of seven bars.
Each bar is black or grey.
A black bar is interpreted as a"1” and a grey bar is interpreted as a0
(a) Write the binary numbers that would be produced from this barcode:
Binary number A Binary number B
Binary number A:
Binary number B:
(2)9
(a)
Binary number A:
Binary number B:
2)5 Acomouter uses an 6-bit register
‘The @-bi register contains binary integers.
(8), Wete the denary (hase 10) value represented by:
0
(&) Alte bits in the registor are shied one place to the right as shown below.
o/1}1/ 1/0] o0)0 0
a
ojo} 4
Write the Genary number that is represented after this shit
i)
(©) State the ettact he shit to he right nad on the original denary number trom part (a)
n
(@) the orginal number in part (a) ie shited three places tothe right,
) Show the new binary number:
i
(H) Wit the equivatent denary number.
1
cts ane zzeraowe Turn over
(6) Dasenbe the problems that could be cased i the orginal binary number in part (a) is shittod
five places to the right
a(a)
(b)
(c)
(d)
(e)
12
56
divided by 2 // value 112 was halved // multiplied by 0.5
Ww
qi) 14
Any two from:
= tun out of places to the right of register / at the end of register
— _right-most 1 would be lost
— number would become 3 instead of 3.5
= loss of precision
(1
1)
(1)
(1
a)
ie)12
10 (a) A manufacturer of aeroplane engines assigns a denary identification number (ID) to each
engine.
One engine has the ID: 0431
(Convert this denary number to a 12-bit binary format.
fl
(ii) Show how this number would be represented in hexadecimal.
8]40 (a) (i) 2marks for 3 correct binary conversions, 1 mark for 2 correct binary conversions [2]
0;0/;/0/;/4474)0;),1;),071)1)1)1
(ii) 1 mark for each correct hex value converted
1AF BI2
1 Arobot arm in a factory is programmed to move products.
The binary instructions to operate the robot arm are:
Operation Binary Instruction
uP. afa]ada
DOWN o}ojo]4
LEFT 1}/o}o}4
RIGHT o}i}1fo
OPEN 1/1]o0]0
CLOSE o}/oj}1]4
The instructions are entered as hexadecimal values.
An operator enters the values:
9 1 © 3 F
Convert the values and write down the operation (e.g. RIGHT) carried out by the robot arm.
9
[5]Question
“1 mark per correct instruction:
9-LerT
1 DOWN,
(C-OPEN
3—CLOSE
Fup3 (a) Explain the differences between the binary number system and the denary number system.
(5)
ucts 2017 221010NA7 [Turn overQuestion Answer Marks
3(@) | Any tour trom (Max 2 per number system) 4
‘A binary number system is a base-2 system
‘A denary number system is a base-10 system
+ Abinary number system uses 0 and 1 values
‘A denary number system uses 0 to 9 values
‘A inary number system has units/placeholders/column headings that increase by the power of 2
+ A denary number system has unite/placeholders/column headings that increase by the power of 10
Binary has more digit forthe same value// Denary has less digs for the same value
22012 (Cambridge O Level ~ Mark Scheme (ctoberNovember
PUBLISHED 2017
Question Answer Marks
300) | Five fom: 5
+ Correct column headings ! place holders by example
+ Correctly place a 1 or 0 for each column
Identity the columns to be added
+ Add together the (denary) values identified
+. this wil ve a total whichis the denary numberanswer
+ _Anower's 10(b) The display screen shows a hexadecimal error code:
E04
This error code means that the water will not empty out of the washing machine.
Convert this error code to binary.
8)
(c) State why hexadecimal is used to display the error code.
(1)‘1{b) | 1 mark for each correct conversion
10) | Any one trom:
"= Hexadecimal codes can fit in a smaller display rather than a full text based massage
= Smaller amount of memory needed to store the hex error messages than text based1
2
‘The memory of a computer contains data and instructions in binary.
‘The following instruction is stored in a location of the memory.
(@) Convert the instruction into hexadecimal.
[2]
(b) Explain why a programmer might preter to read the instruction in hexadecimal rather than in
binary.
2)
(c)_ Give two other uses of hexadecimal.
Use 1...
Use 2 ....
“elQuestion Answer Marks
1(a)__| 1 mark for any two correct values, 2 marks for all 4 correct values 2
29FC
1(b) | Two from: 2
+ Easier/quicker to understandiread
Easier to debug/identify errors
Fewer digits are used / shorter /! takes up less space on screen // more
can be shown on screen / page
(6) | Two from 2
Notations for colour in HTML // HTML colour (codes)
+ Error messages
+ MAC address // IP address
+ Locations in memory
Memory dump