Tutorial 1 - Answer
Tutorial 1 - Answer
Computer Organization
Semester 1, 2020/2021
Tutorial 1
2. In your own words, explain what is the distinction between computer structure
and computer function
Computer structure is about the hardware and software components that build the
whole computer system. Computer function is about how each of the components
operate based on their capabilities.
1
3. List down the four main functions of a computer.
1. Data movement
2. Control
3. Data storage
4. Data processing
CPU - CPU consists of register, Arithmetic and Logic Unit (ALU) and control
unit which computes all the operation provided by the system
Memory - Memory is component which involving RAM and ROM that stored
information either permanent or temporary storage
Interconnection System - Component that provide communication between CPU,
memory and input/output
Input and Output - Input/output devices provide interface between the
computer and the user
2
6. In your opinion how can the knowledge of computer architecture benefits a
programmer
i. 548 to base 5
548 5
109 5 3
21 5 4
4 5 1
0 5 4 = 4143 base 5
5206 7
743 7 5
106 7 1
15 7 1
2 7 1
0 7 2 = 21115 base 7
3
iii. 122123 to base 9
12212
9
3
13569 9 2
1507 9 6
167 9 4
18 9 5
2 9 0
0 9 2 = 205462 base 9
i. 001100
ii. 011100
i. 11100.011
4
ii. 1010101010.1
i. 64
64 2
32 2 0
16 2 0
8 2 0
4 2 0
2 2 0
1 2 0
0 2 1 = 1000000
ii. 145
145 2
72 2 1
36 2 0
18 2 0
9 2 0
4 2 1
2 2 0
1 2 0
0 2 1 = 10010001
5
e) Convert the following decimal numbers to their binary equivalents
i. 34.75
34 2
17 2 0
8 2 1
4 2 0
2 2 0
1 2 0
0 2 1 = 100010
** Answer = 100010.11
ii. 27.1875
27 2
13 2 1
6 2 1
3 2 0
1 2 1
0 2 1 = 11011
** Answer = 11011.0011
6
f) Express the following octal numbers (number with radix 8) in hexadecimal
notation
i. 12
= (1 * 81) + (2 * 80)
=8+2
= 10
10 16
0 2 10 =A
ii. 2550276
708798 16
44294 16 14
2764 16 11
173 16 0
10 16 13
0 16 10 = AD0BE
i. C
C = 12
= (12 *160)
= 12
7
ii. D52
D52 = 13 5 2
= (13 *162) + (5 *161) + (2 *160)
= 3328 + 80 + 2
= 3410
i. F.4
F.4 = 15 0.4
= (15 * 160) + (0.4 * 16-1)
= 15 + 0.025
= 15.025
ii. EB
EB = 14 11
= (14 * 161) + (11 * 160)
= 224 + 11
= 235
i. 16
16 16
1 16 0
0 16 1 = 10
** Answer = A
ii. 3000
3000 16
187 16 8
11 16 11
0 16 11 = BB8
8
j) Convert the following decimal numbers to their hexadecimal equivalents
i. 204.125
204 2
102 2 0
51 2 0
25 2 1
12 2 1
6 2 0
3 2 0
1 2 1
0 2 1 = 11001100
** Answer = CC.2
9
ii. 631.25
631 2
315 2 1
157 2 1
78 2 1
39 2 0
19 2 1
9 2 1
4 2 1
2 2 0
1 2 0
0 2 1 = 1001110111
** Answer = 277.4
i. E
Hexadecima
14
l
Binary 1110
ii. A64
Hexadecima
10 6 4
l
Binary 1010 0110 0100
10
l) Convert the following binary numbers to their hexadecimal equivalents
i. 1001.1111
** Answer = 9.F
ii. 10100111.111011
** Answer = A7.EC
11