1.
Differentiate between the following terms and give examples where possible
Algorithm and Flowchart
An algorithm represents the logic of processing that is supposed to be performed or rather a
sequence of instructions which are designed in such a way that if they are executed in the
specified manner the desired goal is achieved whereas a Flowchart is simply a pictorial
representation of the algorithm written.
Interpreter and Compiler
An interpreter is a program which translates a high-level language program in to machine
language by translating statement by statement in the high-level language whereas a Compiler is
a program which that translate the high level language as a whole, it compiles the whole
program and runs it.
Application software and system software
Application software in a program which is written to carry out a specific function like payroll and
financial accounting for example word is an application software while a system software
controls the working of a computer controls the working of the computer system which helps
the user to communicate with the system and also control other software’s and hardware
devices like printers for example windows.
Malware and Firmware
Malware is a software specifically designed to damage, disrupt or gain unauthorized access to a
computer system while firmware is a type of software embedded into hardware devices to
control their functionality.
Analog and Digital computers
Are computers that recognize data as a continuous measurement of a physical property for
example Speed, pressure while Digital computers process data by a way of mathematical
calculations hence they accept input and produce output as discrete signals representing on or
off voltage state of electricity.
2. Write an algorithm and draw a flowchart to calculate the area of a square and only print the
output if the area is greater than or equal to 30.
I. Start
II. Input a number 6
III. Calculate area using the formular A=Side x Side
IV. Decide if A ≥ 30
V. Print, if yes and do no print if not
VI. End the process
x
Start
36 ≥30
Input 6cm as side
Calculate Area
A=6cm ×6cm
A=36 Print Area is 36 cm2
Stop
[Link] a diagram draw the control flow diagram explain the components of a CPU.
Arithmetic and Logic Unit
Input Control unit Output
Main memory