Tutorial 1
Tutorial 1
TUTORIAL 1
4. List the component inside the central processing unit. How they work together
and interact with computer memory?
Control unit and arithmetic logic unit (ALU). Memory stores program instructions
and data for processing. The control unit fetches program instructions from the
main memory, then decodes and executes them. Data is passed to the arithmetic
logic unit to perform mathematical operations such as addition, subtraction,
multiplication, division and also performs logical functions by comparing the
numbers, letters or special characters. After the instruction and data is processed,
the information obtained is sent to memory for storage and ready to be released as
an output unit.
5. Explain how data is represented and how program is executed in computer.
Data is represented in the form of binary numbers made up of only two possible
digits, 0 and 1. The program instruction in the form of binary numbers is loaded
into the CPU which is built to respond to this pattern by running a fetch-execute
cycle. The CPU executes the first instruction encoded and carries on to the next
instruction. When CPU receives an instruction, the instruction is placed in
memory. After that, the CPU decodes the instruction and inform the related
device to take action. Then, control is transferred to related device then the task is
executed. Control returns to CPU and the cycle repeats.
6. List the unit to measure the computer processing speed and briefly explain the
factor that can influence the speed.
Unit of computer processing:
1. Clock speed - Megahertz (MHz) and gigahertz (GHz).
2. Number of instructions per second
3. Million instruction per second (MIPS)
4. Complex mathematic operation – one million operation floating point per
second (Megaflop)