0% found this document useful (0 votes)
53 views

Tutorial 1 - Answer

This document provides a tutorial on computer organization and covers topics such as: - The distinction between computer organization and architecture - The distinction between computer structure and function - The main functions and structural components of a computer - The structural components of a processor - How computer architecture benefits programmers - Converting between different number systems including binary, decimal, octal, and hexadecimal.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Tutorial 1 - Answer

This document provides a tutorial on computer organization and covers topics such as: - The distinction between computer organization and architecture - The distinction between computer structure and function - The main functions and structural components of a computer - The structural components of a processor - How computer architecture benefits programmers - Converting between different number systems including binary, decimal, octal, and hexadecimal.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

CSNB123 / CSNB2123

Computer Organization
 
Semester 1, 2020/2021
 
Tutorial 1

1. In your own words, explain what is the distinction between computer


organization and computer architecture

Computer architecture is a part that connects the hardware components to the


computer system which visible mainly to the programmers while computer
organization is a part that build ups features of computer system which mainly for
users’ usage.

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

4. List and briefly define the main structural components of a computer

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

5. List and briefly define the main structural components of a processor

Register - Temporary storage inside CPU


ALU - Performs arithmetic and logical operations
Control Unit - Controls the action of the other computer components so that
instructions are executed in the correct sequence

2
6. In your opinion how can the knowledge of computer architecture benefits a
programmer

A programmer with the knowledge of computer architecture have full control on


the computer system , can modify and adjust the system as he/she wants to. Plus, a
programmer with computer architecture knowledge can enhance the performance
and efficiency of computer system.

7. Answer the following question about the number system

a) Perform the indicated base conversions for the decimal numbers

i. 548 to base 5

548 5
109 5 3
21 5 4
4 5 1
0 5 4 = 4143 base 5

ii. 5206 to base 7

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

b) Convert the following binary numbers to their decimal equivalents:

i. 001100

(0 * 20) + (0 * 21) + (1 * 22) + (1 * 23) + (0 * 24) + (0 * 25)


=0+0+4+8+0+0
= 12

ii. 011100

(0 * 20) + (0 * 21) + (1 * 22) + (1 * 23) + (1 * 24) + (0 * 25)


= 0 + 0 + 4 + 8 + 16 + 0
= 28

c) Convert the following binary numbers to their decimal equivalents

i. 11100.011

(1 * 24) + (1 * 23) + (1 * 22) + (0 * 21) + (0 * 20) + (0 * 2-1) + (1 * 2-2) + (1 * 2-3)


= 16 + 8 + 4 + 0 + 0 + 0 + 0.25 + 0.125
= 28.375

4
ii. 1010101010.1

(1 * 29) + (0 * 28) + (1 * 27) + (0 * 26) + (1 * 25) + (0 * 24) + (1 * 23) + (0* 22) +


(1* 21) + (0 * 20) + (1 * 2-1)
= 512 + 0 + 128 + 0 + 32 + 0 + 8 + 0 + 2 + 0 + 0.5
= 682.5

d) Convert the following decimal numbers to their binary equivalents

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

0.75 * 2 = 1.50 > 1


0.5 * 2 = 1.00 > 1

** Answer = 100010.11

ii. 27.1875

27 2
13 2 1
6 2 1
3 2 0
1 2 1
0 2 1 = 11011

0.1875 * 2 = 0.375 > 0


0.375 * 2 = 0.75 > 0
0.75 * 2= 1.50 > 1
0.5 * 2 = 1.00 > 1

** 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

= (6 * 80) + (7 * 81) + (2 * 82) + (0 * 83) + (5 * 84) + (5 * 85) + (2 * 86)


= 6 + 56 + 128 + 0 + 20480 + 163840 + 524288
= 708798

708798 16
44294 16 14
2764 16 11
173 16 0
10 16 13
0 16 10 = AD0BE

g) Convert the following hexadecimal numbers to their decimal equivalents

i. C

C = 12
= (12 *160)
= 12

7
ii. D52
D52 = 13 5 2
= (13 *162) + (5 *161) + (2 *160)
= 3328 + 80 + 2
= 3410

h) Convert the following hexadecimal numbers to their decimal equivalents

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) Convert the following decimal numbers to their hexadecimal equivalents

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

0.125 * 2 = 0.25 > 0


0.25 * 2 = 0.50 > 0
0.50 * 2 = 1.00 > 1 = 11001100.001

Binary 1100 1100 .0010


Hexadecima
C C .2
l

** 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

0.25 * 2 = 0.50 > 0


0.50 * 2 = 1.00 > 1 = 1001110111.01

Binary 0010 0111 0111 .0100


Hexadecima
2 7 7 .4
l

** Answer = 277.4

k) Convert the following hexadecimal numbers to their binary equivalents

i. E
Hexadecima
14
l
Binary 1110

ii. A64

Hexadecima
10 6 4
l
Binary 1010 0110 0100

** Answer = 1010 0110 0100

10
l) Convert the following binary numbers to their hexadecimal equivalents

i. 1001.1111

Binary 1001 .1111


Hexadecima
9 .15
l

** Answer = 9.F

ii. 10100111.111011

Binary 1010 0111 .1110 1100


Hexadecima
10 7 14 12
l

** Answer = A7.EC

11

You might also like