Computer components are divided into two major categories namely hardware and software.
1. Hardware is the machine itself and its connected devices such as monitor, keyboard,
mouse etc.
2. Software are the set of programs that make use of hardware for performing various
functions. Such as, multimedia player, Microsoft office, VLC etc.
A computer system operating under the control of instructions stored in its own memory and it is
consist of four basic units; they are known as, input unit, storage unit, central processing unit and
output unit. Central Processing unit further includes
Arithmetic logic unit and control unit, as shown in Figure 3.1.
Functional Units
i. Input Unit:
This unit is used for entering data and programs into the computer system by the user for
processing.
Dotted lines (– – – –) indicate
flow of instruction solid lines
(–––––) indicate flow of data
3.3 Memory
Computer’s memory can be classified into two types; primary memory and secondary memory.
Random Access Memory (RAM): It is the place in a computer where the operating
system, application programs and the data in current use are kept temporarily so that they
can be accessed by the computer’s processor. It is said to be ‘volatile’ since its contents
are accessible only as long as the computer is on. The contents of RAM are no more
available once the computer is turned off.
Read Only Memory (ROM): It is a special type of memory which can only be read and
contents of which are not lost even when the computer is switched off. It typically
contains manufacturer’s instructions. Among other things, ROM also stores an initial
program called the ‘bootstrap loader’ whose function is to start the operation of computer
system once the power is turned on.
3.3.2 Secondary Memory
Hard disk: made up of rigid material and are usually a stack of metal disks sealed in a
box. The hard disk and the hard disk drive exist together as a unit and is a permanent part
of the computer where data and programs are saved. The storage capacities ranging from
1GB to 80 GB and more. Hard disks are rewritable.
Compact Disk (CD). It is the portable disk having data storage capacity between 650-
700 MB. It can hold large amount of information such as music, full-motion videos, and
text etc. CDs can be either read only or read write type.
Digital Video Disk (DVD). It is similar to a CD but has larger storage capacity and
enormous clarity. Depending upon the disk type it can store several Gigabytes of data.
DVDs are primarily used to store music or movies and can be played back on your
television or the computer too. These are not rewritable.
I. Input Devices
An input device is any device that provides input to a computer. There are many input devices,
but the two most common ones are a keyboard and mouse. Every key you press on the keyboard
and every movement or click you make with the mouse sends a specific input signal to the
computer. Such as; key board, mouse, scanner, light pen, etc.
II. Output Devices
The processed data, stored in the memory of the computer is sent to the output unit, which then
converts it into a form that can be understood by the user. The output is usually produced in one
of the two ways – on the display device, or on paper (hard copy). Such as; monitor, printer,
Plotter, facsimile. Etc.
3.4 COMPUTER LANGUAGE
Machine language or machine code is the native language directly understood by the computer’s
central processing unit or CPU. This type of computer language is not easy to understand, as it
only uses a binary system, an element of notations containing only a series of numbers consisting
of one and zero, to produce commands.
a. Compiler
A compiler is a special program that processes statements written in a particular programming
language called as source code and converts them into machine language or “machine code” that
a computer’s processor uses.
Compiler translates high level language programs directly into machine language program. This
process is called compilation. (Fig 3.2)
b. Interpreter
An interpreter translates high-level instructions into an intermediate form, which it then executes.
Compiled programs generally run faster than interpreted programs. The advantage of an
interpreter, however, is that it does not need to go through the compilation stage during which
machine instructions are generated. This process can be time-consuming if the program is long.
(Fig 3.3)