Numbersystem Assignment PDF
Numbersystem Assignment PDF
Q1. A stopwatch uses six digits to display hours, minutes and seconds.
0 1 : 5 4 : 2 3
It uses a nibble of binary data for each digit displayed on the stopwatch. What time is the stopwatch
stopped at when the binary nibbles show the following values? [3 Marks]
0000 0010 : 0011 1000 : 0101 1001
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Q2. What is meant by the term “byte”? [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Q3. The following instruction, written in machine code, is stored in computer memory:
110000011110 [3 Marks]
Convert the code into hexadecimal notation.
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Q4. Explain why hexadecimal notation is sometimes used to represent binary numbers. [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
SAMREEN KHAN
Q5. Explain how ASCII is used to represent text so it can be processed by a computer. [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Q6. Convert the denary number 165 into: [3 Marks]
a. Binary:
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
b. Hexadecimal
Page 1
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Q8. a. How many megabytes (MB) of storage would be needed to store 800 photographs each of
which are 16 MB in size? [3 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
SAMREEN KHAN
_________________________________________________________________________________
_________________________________________________________________________________
Q9. The ASCII code for ‘A’ is 65 and for ‘a’ is 97. [4 Marks]
a. Write these denary values in 8-bit binary:
i. 65
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Page 2
c. Write the two denary values in part (b) in 8-bit binary format: [4 Marks]
i. ‘V’
_________________________________________________________________________________
_________________________________________________________________________________
ii. ‘v’
_________________________________________________________________________________
_________________________________________________________________________________
d. Using your answers to part (a) and part (b), suggest an easy way to finding the ASCII binary
code for a lower-case letter (e.g. ‘m’) if the ASCII code for the upper-case letter (e.g. ‘M’) is
known. [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
SAMREEN KHAN
_________________________________________________________________________________
_________________________________________________________________________________
iii. HTML
_________________________________________________________________________________
_________________________________________________________________________________
Page 3
_________________________________________________________________________________
%77%77%77%2E%48%26%53%73%74%75%64%79$20%62%6F%6F%6B%73%2E%636F%2E%
75%6B [3 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
Q11. a. Explain the two parts that make up a typical MAC address. [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
b. A MAC address can be termed either UAA or LAA.
Give two reasons why MAC addresses need to be changed when using LAA.
1________________________________________________________________________________
_________________________________________________________________________________
2________________________________________________________________________________
_________________________________________________________________________________
SAMREEN KHAN
_________________________________________________________________________________
ii. If the color tan requires value ‘B1’ for the red hue, value ‘89’ for the green hue and value
‘04’ for the blue hue, what is the HTML representation for tan? [1 Mark]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Page 4
_________________________________________________________________________________
_________________________________________________________________________________
i. John wishes to download a movie which is 650 megabytes (650 MB) in size. Calculate
how long it would take (in seconds) to download the movie. [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
ii. John also wishes to upload 30 photographs onto a social media website. Each photograph
is 15 megabytes (15 MB).
Calculate how long it would take to upload the 30 photographs (in seconds) [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Q13. A computer system uses binary codes for letter of the alphabet as follows:
A = 10, B= 11, C= 12, ……..X = 33, Y = 34, Z = 35.
a. Write the denary value for ‘X’ in binary using an 8-bit register: [2 Marks]
SAMREEN KHAN
b. To convert the binary code for ‘X’ to the binary code for ‘x’, all the bits in the 8-bit register in
part (a) are moved (shifted) two places to the right.
i. Write down the contents of the 8-bit register after the bits have been moved to the right. [2 Marks]
ii. Convert the binary value in part (bi) into denary. [1 Mark]
_________________________________________________________________________________
_________________________________________________________________________________
Page 5
_________________________________________________________________________________
ii. m
_________________________________________________________________________________
_________________________________________________________________________________
____________________________________________________________________ [2 Marks]
Q14.
a. Convert the denary number 44801 into hexadecimal. [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
b. Convert the hexadecimal number in part (a) into a 16-bit binary number. [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Q15. An 8-bit register is used to control a paint spray gun. Each position in the register refers to a
specific function:
SAMREEN KHAN
Paint Paint Spray gun Spray gun Red paint Green Blue paint Yellow
levels are levels are switched switched chosen paint chosen paint
OK LOW ON OFF chosen chosen
A 1 value in the register indicates that a specific function is ON: a 0 value indicates it is OFF.
For example:
1 0 1 0 1 0 1 0
Indicates:
➢ All paint levels are OK
➢ Spray gun is switched ON
➢ Red and blue paints have been selected
Page 6
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Q15. Write down a series of steps that could be used to convert a denary number into a hexadecimal
number. Your steps should allow somebody to follow them clearly to give the correct converted
value. [7 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
SAMREEN KHAN
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
Page 7
14
SAMREEN KHAN
What is the hexadecimal value of the denary 28
numbers 5 0 ?
40
Page 8
Q18. A computer uses a binary system known as Binary Coded Decimal (BCD). In this system, each
denary digit (0 to 9) is represented by a 4-bit binary value:
8 4 2 1
SAMREEN KHAN
a. Give the 4-bit binary codes for the digits 9 and 6. [2 Marks]
8 4 2 1
9
8 4 2 1
6
Page 9
8 4 2 1 8 4 2 1
8 4 2 1 8 4 2 1 8 4 2 1
0 1 1 1 0 0 0 0 0 1 0 1
c. What is the largest denary number that can be represented by two bytes using this BCD
system? [1 Mark]
d. Using normal binary notation, what is the largest denary number that could be represented by
two bytes? [2 Marks]
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
SAMREEN KHAN
e. Suggest a use for the BCD system. [1 Mark]
_________________________________________________________________________________
_________________________________________________________________________________
Page 10
SAMREEN KHAN
Page 11
ii. 73 [4 Marks]
Number X D Output
SAMREEN KHAN
Page 12