CO Unit 1
CO Unit 1
Fundamentals of Computers
1.1 Introduction to Computers - Computer Definition:
• The word “Computer” comes from the /word “Compute” which means “to calculate”.
• Computer is a general purpose electronic device that is used to perform arithmetic and logical
operations automatically.
• A computer consists of a central processing unit and some form of Memory.
• Computer is an electronic device which is capable of receiving information or data and perform a
series of operations in accordance with a set of operations.
• This produces results in the form of data or information. Computer is a machine capable of solving
problems and manipulating data. It accepts and processes the data by doing some mathematical and
logical operations and gives us the desired output.
• Computer Full form:
C - Common
O - Operating
M - Machine
P - Purposely
U - Used for
T - Technological and
E - Educational
R – Research
o A computer is reliable as it gives consistent result for similar set of data i.e., if we give same
set of input any number of times, we will get the same result.
• Automation o Computer performs all the tasks automatically i.e. it performs tasks without manual
intervention.
• Memory o A computer has built-in memory called primary memory where it stores data.
Secondary storage are removable devices such as CDs, pen drives, etc., which are also used to
store data.
• NO IQ:
o A Computer is not a magical device. It possesses no intelligence of its own. Its I.Q is zero, at
least until today. It has to be told what to do and in what sequence.
• No Feelings:
o Computers are devoid of emotions. They have no feelings and no instincts because they are
machines.
• Input Unit: It accepts (or reads) instructions and data from outside. It converts these instructions
and data in computer acceptable form It supplies the converted instructions and data to the
computer system for further processing. Central Processing Unit (CPU)
• Control Processing Unit: fetching instructions from memory, decoding the instructions, executing
the instructions, performing arithmetic and logic operations, and storing the results back in
memory.
• Control unit(CU):control unit of a computer system manages and coordinates the operations
of all other components of the computer system.
• Arithmetic Logic Unit (ALU): Arithmetic logic unit of a computer system is the place, where
the actual executions of instruction, takes place during processing operation.
• Storage Unit: Storage Units are responsible for storing all kinds of data and information. Primary
Storage Unit: It loses data on power dissipation(failures). It is used to hold running program
instruction, data, intermediate results, and results of ongoing processing of jobs. Secondary
Storage Unit : It is non-volatile (retains data even without power).It is used to hold stored program
instructions and a large volume of information
• Output Unit: · It accepts the results produced by the CPU. It converts these coded results to
human acceptable form. It supplies the converted results to outside world.
Napier's Bones
• It was a manually-operated calculating device which was invented by John Napier (1550-1617) . In
this calculating tool, he used 9 different ivory strips or bones marked with numbers to multiply and
divide. So, the tool became known as "Napier's Bones. It was also the first machine to use the decimal
point.
Pascaline
• Pascaline is also known as Arithmetic Machine or Adding Machine. It was invented between 1642
and 1644 by a French mathematician-philosopher Blaise Pascal. It is believed that it was the first
mechanical and automatic calculator.
• Pascal invented this machine to help his father, a tax accountant. It could only perform addition and
subtraction. It was a wooden box with a series of gears and wheels. When a wheel is rotated one
revolution, it rotates the neighboring wheel. A series of windows is given on the top of the wheels to
read the totals.
Difference Engine
In the early 1820s, it was designed by Charles Babbage who is known as "Father of Modern Computer". It
was a mechanical computer which could perform simple calculations. It was a steam driven calculating
machine designed to solve tables of numbers like logarithm tables.
Analytical Engine
This calculating machine was also developed by Charles Babbage in 1830. It was a mechanical computer
that used punch-cards as input. It was capable of solving any mathematical problem and storing information
as a permanent memory.
Tabulating Machine
It was invented in 1890, by Herman Hollerith, an American statistician. It was a mechanical tabulator based
on punch cards. It could tabulate statistics and record or sort data or information. This machine was used in
the 1890 U.S. Census. Hollerith also started the Hollerith’s Tabulating Machine Company which later
became International Business Machine (IBM) in 1924.
Differential Analyzer
It was the first electronic computer introduced in the United States in 1930. It was an analog device invented
by Vannevar Bush. This machine has vacuum tubes to switch electrical signals to perform calculations. It
could do 25 calculations in few minutes.
Mark I
The next major changes in the history of computer began in 1937 when Howard Aiken planned to develop
a machine that could perform calculations involving large numbers. In 1944, Mark I computer was built as
a partnership between IBM and Harvard. It was the first programmable digital computer.
1.5 Generations of Computers
• A generation of computers refers to the specific improvements in computer technology with time. In
1946, electronic pathways called circuits were developed to perform the counting. It replaced the
gears and other mechanical parts used for counting in previous computing machines.
• In each new generation, the circuits became smaller and more advanced than the previous generation
circuits. The miniaturization helped increase the speed, memory and power of computers. There are
five generations of computers which are described below
TYPES OF COMPUTER
USERS
Super Computer
Analogue Computer Mainframe Computer
Digital Computer Miniframe Computers
Hybrid Computer Workstations
Macro Computers
On the basis of data handling capabilities, the computer is of three types:
o Analogue Computer o Digital Computer
o Hybrid Computer
1) Analogue Computer
• Analogue computers are designed to process analogue data. Analogue data is continuous data that
changes continuously and cannot have discrete values. We can say that analogue computers are used
where we don't need exact values always such as speed, temperature, pressure and current.
• Analogue computers directly accept the data from the measuring device without first converting it
into numbers and codes. They measure the continuous changes in physical quantity and generally
render output as a reading on a dial or scale. Speedometer and mercury thermometer are examples
of analogue computers.
Advantages of using analogue computers:
o It allows real-time operations and computation at the same time and continuous representation of
all data within the rage of the analogue machine.
o In some applications, it allows performing calculations without taking the help of transducers for
converting the inputs or outputs to digital electronic form and vice versa.
o The programmer can scale the problem for the dynamic range of the analogue computer. It
provides insight into the problem and helps understand the errors and their effects.
Types of analogue computers:
o Slide Rules: It is one of the simplest types of mechanical analogue computers. It was developed to
perform basic mathematical calculations. It is made of two rods. To perform the calculation, the
hashed rod is slid to line up with the markings on another rod.
o Differential Analyzers: It was developed to perform differential calculations. It performs
integration using wheel-and-disc mechanisms to solve differential calculations.
o Castle Clock: It was invented by Al-Jarazi. It was able to save programming instructions. Its
height was around 11 feet and it was provided with the display of time, the zodiac, and the solar
and lunar orbits. This device also could allow users to set the length of the day as per the current
season. o Electronic Analogue Computer: In this type of analogue computer, electrical signals
flow through capacitors and resistors to simulate physical phenomena. Here, the mechanical
interaction of components does not take place. The voltage of the electrical signal generates the
appropriate displays.
2) Digital Computer
• Digital computer is designed to perform calculations and logical operations at high speed. It accepts
the raw data as input in the form of digits or binary numbers (0 and 1) and processes it with programs
stored in its memory to produce the output. All modern computers like laptops, desktops including
smartphones that we use at home or office are digital computers.
Advantages of digital computers:
o It allows you to store a large amount of information and to retrieve it easily whenever you need it.
o You can easily add new features to digital systems more easily. o Different applications can be
used in digital systems just by changing the program without making any changes in hardware
o The cost of hardware is less due to the advancement in the IC technology.
o It offers high speed as the data is processed digitally. o It is highly reliable as it uses error
correction codes.
o Reproducibility of results is higher as the output is not affected by noise, temperature, humidity,
and other properties of its components.
3) Hybrid Computer
• Hybrid computer has features of both analogue and digital computer. It is fast like an analogue
computer and has memory and accuracy like digital computers. It can process both continuous and
discrete data. It accepts analogue signals and convert them into digital form before processing. So,
it is widely used in specialized applications where both analogue and digital data is processed. For
example, a processor is used in petrol pumps that converts the measurements of fuel flow into
quantity and price. Similarly, they are used in airplanes, hospitals, and scientific applications.
Advantages of using hybrid computers:
o Its computing speed is very high due to the all-parallel configuration of the analogue
subsystem. o It produces precise and quick results that are more accurate and useful. o It has
the ability to solve and manage big equation in real-time. o It helps in the on-line data
processing.
2) Mainframe computer
• Mainframe computers are designed to support hundreds or thousands of users simultaneously. They
can support multiple programs at the same time. It means they can execute different processes
simultaneously. These features of mainframe computers make them ideal for big organizations like
banking and telecom sectors, which need to manage and process high volume of data.
• Mainframe computers are designed to support hundreds or thousands of users simultaneously. They
can support multiple programs at the same time. It means they can execute different processes
simultaneously. These features of mainframe computers make them ideal for big organizations like
banking and telecom sectors, which need to manage and process a high volume of data that requires
integer operations such as indexing, comparisons, etc.
3) Miniframe or Minicomputer
• It is a midsize multiprocessing computer. It consists of two or more processors and can support
4 to 200 users at one time. Miniframe computers are used in institutes and departments for
tasks such as billing, accounting and inventory management. A minicomputer lies between
the mainframe and microcomputer as it is smaller than mainframe but larger than a
microcomputer.
Characteristics of miniframe or minicomputer:
o It is light weight that makes it easy to carry and fit anywhere. o It is less
expensive than mainframe computers. o It is very fast compared to its size.
o It remains charged for a long time.
o It does not require a controlled operational environment.
Applications of minicomputers:
A minicomputer is mainly used to perform three primary functions, which are as follows:
o Process control: It was used for process control in manufacturing. It mainly performs two primary
functions that are collecting data and feedback. If any abnormality occurs in the process, it is detected
by the minicomputer and necessary adjustments are made accordingly.
o Data management: It is an excellent device for small organizations to collect, store and share data.
Local hospitals and hotels can use it to maintain the records of their patients and customers
respectively.
o Communications Portal: It can also play the role of a communication device in larger systems by
serving as a portal between a human operator and a central processor or computer.
4) Workstation
• Workstation is a single user computer that is designed for technical or scientific applications.
It has a faster microprocessor, a large amount of RAM and high speed graphic adapters. It
generally performs a specific job with great expertise; accordingly, they are of different
types such as graphics workstation, music workstation and engineering design workstation.
Characteristics of workstation computer:
o It is a high-performance computer system designed for a single user for business or professional use.
o It has larger storage capacity, better graphics, and more powerful CPU than a personal computer.
o It can handle animation, data analysis, CAD, audio and video creation and editing.
Any computer that has the following five features, can be termed as a workstation or can be used as a
workstation.
o Multiple Processor Cores: It has more processor cores than simple laptops or computers.
o ECC RAM: It is provided with Error-correcting code memory that can fix memory errors before they
affect the system's performance.
o RAID (Redundant Array of Independent Disks): It refers to multiple internal hard drives to store or
process data. RAID can be of different types, for example, there can be multiple drives to process
data or mirrored drives where if one drive does not work than other starts functioning.
o SSD: It is better than conventional hard-disk drives. It does not have moving parts, so the chances
of physical failure are very less. o Optimized, Higher end GPU: It reduces the load on CPU. E.g.,
CPU has to do less work while processing the screen output.
5) Microcomputer
• Microcomputer is also known as a personal computer. It is a general-purpose computer that is
designed for individual use. It has a microprocessor as a central processing unit, memory,
storage area, input unit and output unit. Laptops and desktop computers are examples of
microcomputers. They are suitable for personal work that may be making an assignment,
watching a movie, or at office for office work.
Characteristics of a microcomputer:
o It is the smallest in size among all types of computers. o A limited number of software
can be used. o It is designed for personal work and applications. Only one user can work at
a time. o It is less expansive and easy to use. o It does not require the user to
have special skills or training to use it. o Generally, comes with single semiconductor
chip.
o It is capable of multitasking such as printing, scanning, browsing, watching videos, etc.
Single User : A single user can access the computer at a particular time.
Multi User: Multi-user is a term that defines an operating system, computer program, or a game that
allows use by more than one users of the same computer at the same time.
MEMORY ORGANIZATIONS
MEMORY UNIT
It is an essential component of computer.
It is a storing device Used to stores Data, Programs, Information’s ,results. capacity
is measured in bytes.
8bits =1 byte
1024 bytes=1kilo byte[KB]
1024 KB = 1mega byte[MB]
1024MB=1gigabyte[GB]
1024GB=1tera byte Bits stores in 0’s
and 1’s in the memory.
TYPES OF MEMORY
1. PRIMARY MEMORY:
It is also called as main memory.
It stores Data, programs, Information that are currently needed by CPU.
CPU id directly communicates with primary memory It works in a
faster way.
Primary memory functions.
It consists of a copy of system software(operating
system). It stores a copy of Application software Ex:Ms
office.
It stores the input data given through the Keyboard.
It also stores the result and these results is going to get after processing Output Device.
RAM ROM
▪ Random Access Memory. ▪ Read Only Memory
▪ Any memory Location can be access in a ▪ Random Property
Random manner. ▪ Perform only read operation.
▪ We perform read and write operation. ▪ the storage capacity is low ▪
▪ The storage capacity is high. It is cheep
▪ It is expensive. ▪ It is slower.
▪ It is faster. ▪ It is non-volatile.
▪ It is volatile. ▪ Retain content even power
▪ It looses it’s content when power goes off. goes off.
▪ It used for temprory information ▪ Types: ▪ It is Used for store
i. Static RAM ii. permanent information ▪ Types:
Dynamic RAM i. PROM
ii. EPROM iii.
EEPROM
Types of RAM
Dynamic RAM Static RAM
▪ It refresh content for every 2 mili ▪ Retain the information as long as power
seconds is off.
▪ The storage capacity is high. ▪ The storage capacity is low.
▪ It is expensive. ▪ It is cheep.
▪ Ut works in a faster way . ▪ It works in a slower way.
▪ It consume more electricity. ▪ It consume Less electricity.
Types of ROM
PROM :
Programmable Read only memory.
We use PROM programmer for programming.
User decides Contents of this memory.
It stores data, Programs, Information permanently.
User can write Data only once.
User can’t erase the content.
Example printer Of CD gives instructions to use the printer.
EPROM :
Erasable programmable read only memory.
Erase the contents of memory using UV rays.
Procedure : It remove chip in computer. It
expose to UV rays for 20 minutes.
It can’t erase the contents of certain memory location. It
is very cheep.
It is widely used .
It is reliable trust and depend upon.
EEPROM :
Electrically erasable programming read only memory.
Erase the contents of memory using electrical charges.
Procedure:
No need to remove memory on computer. Integrate
circuit in the computer.
2. SECONDARY MEMORY
• Secondary memory is a permanent storage space to hold a large amount of data.
• Secondary memory is also known as external memory that representing the various storage
media (hard drives, USB, CDs, flash drives and DVDs) on which the computer data and
program can be saved on a long term basis.
• it is cheaper and slower than the main memory.
• Unlike primary memory, secondary memory cannot be accessed directly by the CPU.
Instead of that, secondary memory data is first loaded into the RAM (Random Access
Memory) and then sent to the processor to read and update the data.
• Secondary memory devices also include magnetic disks like hard disk and floppy disks, an
optical disk such as CDs and CDROMs, and magnetic tapes.
Features of Secondary Memory o Its speed is slower than the primary / main memory. o Store
data cannot be lost due to non-volatile nature. o It can store large collections of different types,
such as audio, video, pictures, text, software, etc.
o All the stored data in a secondary memory cannot be lost because it is a permanent storage area,
even the power is turned off.
o It has various optical and magnetic memories to store data.
Hard Disk
• A floppy disk is a secondary storage system that consisting of thin, flexible magnetic coating disks
for holding electronic data such as computer files.
• It is also known as Floppy Diskette that comes in three sizes like 8 inches, 5.5 inches and 3.5
inches.
• The stored data of a floppy disk can be accessed through the floppy disk drive
CD (Compact Disc)
Types of CDs
1. CD-ROM (Compact Disc Read Only Memory): It is mainly used for bulk size mass like audio
CDs, software and computer games at the time of manufacture. Users can only read data, text, music,
videos from the disc, but they cannot modify or burnt it.
2. CD-R (Compact Disc Recordable): The type of Compact Disc used to write once by the user; after
that, it cannot be modified or erased.
3. CD-RW (Compact Disc Rewritable): It is a rewritable CD disc, often used to write or delete the
stored data. DVD Drive/Disc
• DVD is an optical disc storage device, stands for Digital Video Display or Digital Versatile Disc.
• It has the same size as a CD but can store a larger amount of data than a compact disc.
• It was developed in 1995 by Sony, Panasonic, Toshiba and Philips four electronics companies.
• DVD drives are divided into three types, such as
DVD ROM (Read Only Memory),
DVD R (Recordable)
DVD RW (Rewritable or Erasable).
• It can store multiple data formats like audio, videos, images, software, operating system, etc.
• The storing capacity of data in DVD is 4.7 GB to 17 GB.
Pen Drive
• A pen drive is a portable device used to permanently store data and is also known as a USB flash
drive.
• It is commonly used to store and transfer the data connected to a computer using a USB port.
• it uses an integrated circuit chip that stores the data.
• It allows the users to store and transfer data like audio, videos, images, etc from one computer to
any USB pen drive.
• The storing capacity of pen drives from 64 MB to 128 GB or more.
3. CACHE MEMORY
• It is a small-sized chip-based computer memory that lies between the CPU and the main memory.
• It is a faster, high performance and temporary memory to enhance the performance of the CPU.
• It stores all the data and instructions that are often used by computer CPUs.
• It also reduces the access time of data from the main memory.
• It is faster than the main memory, and sometimes, it is also called CPU memory because it is very
close to the CPU chip.
• The input device used to enter data and instruction in to the computer by the User.
• It Converts the given data into a form that is recognized by computer.
• Example: Keyboard, Mouse, OMR, OCR, MICR, Scanner, Web camera, Light pen.
1. KEYBOARD
• It is the most commonly used input device.
• It is used to enter the data into the computer.
• It consists of keys arrange similarly in a type writer.
• Example: Q W E R T Y U I O P ETC…
DIFFERENTS KINDS OF KEYS
i. Alphabet keys (A-Z)
ii. Numeric keys(0-9)
iii. Punctuation keys(,.?;:’’=->,) iv. Special keys( Alt,ctrl,Del,Tabs,..)
v. Functional Keys(F1 to F12)
EX: F5 – refresh computer
F2- save
• Number of keys in keyboard is 104 OR 108.
• Detects key pressed and generates ASCII Code and sent to computer. [ASCII – American standard
code for information interchange ]
2.MOUSE:
• Mechanical operated
user serial engine.
• It is a pointing device to controls movement of courser on screen.
• It is used to select objects and open apps in desktop.
• A ball OR IR [infrared rays] inside it.
• The movement of Ball converts into cursor on the screen. Types of mouse:
there are mainly 3 types of mouse, they are:
1. Track Ball
2. Mechanical mouse
3. Optical mouse
4. Wireless mouse
a) TRACK BALL
• It is a type of a mouse
• A trackball is a pointing device consisting of a ball held by a socket
containing sensors to detect a rotation of the ball.
• Users roll the ball to position the on-screen pointer, using their thumb, fingers, or the palm
of the hand, while using the fingertips to press the buttons.
b) MECHANICAL MOUSE
• It is a type of a mouse.
• It consisting of a small ball under its surface.
• The movement will be recognized as cursor on the the screen by mechanical sensor.
c) OPTICAL MOUSE
• It is a type of mouse.
• It have a laser beam inside a mouse.
• The movement will be recognized as cursor on screen by this laser
beam.
d) WIRELESS MOUSE
• It is a type of mouse.
• Wireless Mouse is one of the Laser mouse where you do not need to connect mouse wire
from Laptop.
• In Wireless Mouse you need to battery to operate communication between USB receiver and
Mouse.
3.OMR:
• It stands for Optical Mark reader.
• It reads marks made pencil or pen.
• Application: it is used to evaluate OMR sheets in competitive exams.
• Working: it focus light on the OMR sheet after it will recognized and reflects light Back and
marks will be read to the system.
4.OCR:
• It is a input device.
• It is used to scan documents, images or photos.
• Scanning documents should be very clear otherwise it will rejected.
• Scanned data will be converted into digital format.
• Advantages:
▪ To avoid duplicate of data.
▪ It reduces manual errors. ▪ It can also save the time.
• Application: It is used in cyber center, to online transactions and to fill the online application.
Types of Scanner
1. Photo Scanner
A type of optical scanner that is mainly used to scan photographs. Photo scanners provide high
resolution and color depth. They are smaller as compared to general-purpose scanners. Typically, a
photo scanner has the ability to scan 3x5-inch or 4x6-inch photographs with higher resolution.
2. Flatbed scanner
Which scans documents on a flat surface.
These scanners do not require the document to be moved and are capable of capturing all of the
document's elements. Flatbed scanners come in a couple of different sizes for standard paper and are
effective for delicate materials, like documents that are fragile, including also vintage photographs
and papers.
3. Handheld Scanner
The handheld scanner, on the other hand, is dragged over the page to be scanned. It scans physical
documents into their digital forms, which makes it capable of storing, modifying, forward, and
emailing digitally.
4. Film Scanner
A film scanner is a device that scans photographic film and transfers it to a computer. It scans
without the need of any printmaking intermediates.
5. Portable Scanner
Portable scanners are designed in a way that can be easily carried around as they are small in size.
Even some can be carried in the pockets, too, as they are as small as your PDAs. They are effective
for text document scanning. They have limitations in terms of resolution. They are also available
with a wireless facility.
OUTPUT DEVICE
1. MONITOR
• It is most commonly used output.
• It is used to display images, texts, graphics.
• The size of the monitor will be available 4:3 inches.
• The clarity of the monitor is depends on the number of pixels
• If pixel is more then the clarity is more.
• Most monitor have a 640 * 840, 600*400,1024*768 • The size of the monitor is
12,14,17,19,and 21 inches. Types of monitor
2. PRINTER :
• Output device used to print documents, Images and graphics on paper.
• It produces hard copy. Because the output will be in printed form and also in permanent
form.
• Applications : It is used in banks, hospitals, Airports, Railway station, colleges, schools,
etc…
Types of printers:
There are 2 types of printers.
i. Impact printer
ii. Non impact printer
IMPACT PRINTERS NON-IMPACT PRINTERS
Printer which consisting of print head Printer doesn’t consisting print head
and the ink ribbon. and ink ribbon
Produces the output by striking the It doesn’t have the stricking
print head against ink ribbon placed mechanism.
between paper and print head. It doesn’t support multiple copies.
Prints multiple copies at a time. It’s noiseless.
It’s noisy It works faster
It works slowly. It supports transparency
It does not support transparency Speed is measured in number of pages
Speed is measured in number of per minute.
characters per second. Example: Laser printer, inkjet printer,
Example: Line printer, dot matrix thermals printer.
printer.
Line Printer:
• The printers produces characters by pushing electrically heated pins against paper.
• It is Inexpensive.
• The quality is low.
• It is darker when expose to sunlight and also fade up after a week.
• Application: fax machines, calculators, offices.
3. PLOTTER
• It is a type of output device.
• It used to draw the image using pens.
• It is used to get colour images.
• It is uses different colour pen.
• It produces images by drawing lines.
• It is costlier than the printer.
• Application: it is used in engineering fields, banners, flex.
4.SPEAKER :
It is a output device.
It produces voice output.
It used to listen to music And sounds.
Applications: Airlines, banks, Railway stations, home, telephone enquiry system.
TYPES OF SOFTWARE
The term “software” refers to the set of computer programs, procedures, and associated documents
which describe the programs and hoe they are to be used.
Relationship between hardware and software are described as follows: Both are necessary to the useful
jobs and both complement each other
The same hardware can be loaded to different software to make a computer system do different jobs.
Except for upgrades hardware is normally a one-time expense whereas software is a continuing expense.
I. System software
It is a set of one or more programs designed to control the operation and
extending the processing capability of a computer system. The computer’s system
software performs these functions:
Supports development of other application software
Supports execution of other application software
Monitors the effective use of various hardware resources, such as CPU, memory
etc.
Communicates with and monitors the operation of peripheral devices such as
printers, disk, tape etc...
It also helps hardware components work together and provides support for
development and execution of application software.
Some most commonly used system software are:
COMPUTER LANGUAGES
A computer language is used by a programmer to instruct a computer what he or she wants Computer
languages can be classified into three types:
1. Machine language 2. Assembly language 3. High level language
1. Machine language
Although computers can be programmed many different languages, there is only one language
that is understood by the computer without using a translating program that is machine
language. A machine language instruction has a two-part form
The first part of instruction is the operation code that tells the computer what function to
perform and the second part is the operand which tells the computer where to find or store data
which are to be manipulated. Every computer has a set of operation codes called the instruction
set. Each operation in the instruction set performs a specific basic operation or function.
Advantages:
a. Programs can be executed very fast by the computer
(No translation of the program is required) Drawbacks:
a. Machine dependent
b. Error prone: the programmer must remember the opcodes and must keep track of storage
locations
c. Difficult to modify: Checking machine instructions to locate errors is very difficult and time
consuming.
2. Assembly language
Assembly language was introduced in 1952 helped in overcoming the above listed
limitations of machine language programming.
A language which allows instructions and storage locations to be represented by letters and symbols
instead of numbers is called an assembly language.
c. They don’t deal with machine level coding. They deal with high level coding, enabling
programmers to write instructions using English words and familiar mathematical symbols
and expressions.
The advent of high level languages has enabled the use of computers to solve the problems
even by non-expert users, which has in turn resulted in creation of large number of
computer applications in diverse areas, leading to use of computers in every occupation.
Advantages:
1. Machine independence
2. Easier to learn and use
3. Fewer errors
4. Low program preparation cost
5. Better documentation and easier to maintain
Drawbacks:
1. Lower efficiency: Programs written in high level languages take more time to execute and
require more main memory space.
2. Less flexibility: They are less flexible than assembly level programs because they do not
have instructions or mechanisms to control the computer’s CPU, memory and registers.
TRANSLATOR PROGRAMS:
1. Assembler:
A computer can directly execute machine level programs which use numbers for representing
instructions. Hence assembly level programs must be translated to machine level before
executing it. This translating job is done by an assembler.
It is so called because in addition to translating an assembly level program to machine
level, it also “assembles” the machine language programs in the main memory of the
computer, making it ready for execution.
2. Interpreter:
It is another type of translator that is used for translating programs written in high level
languages. It takes one statement of high level language program translates it into machine
language instructions and immediately executes the resulting machine language
instructions. In case of an interpreter the translation and execution are alternate for each
statement encountered in high level languages. It differs from a compiler which merely
translates entire source program into an object program and is not involved in execution.
3. Compiler
The high level language programs must be converted into its equivalent machine language
program before it can be executed. This is done with help of compiler. A compiler is more
sophisticated than a assembler. It is so called because it compiles a set of machine language
instructions for every program instruction of high level language.
Since high level language instructions are macro instructions, the compiler translates each
high level language instruction into a set of machine language instruction rather than a
single machine language instruction.