IIT - CSC-109 - Chapter 1 & 2
IIT - CSC-109 - Chapter 1 & 2
IIT - CSC-109 - Chapter 1 & 2
Introduction to Computer
Introduction
Computer is derived from the Latin word ‘Computare’ which means ‘calculate’. A computer is an
electronic device, operating under the control of instructions stored in its own memory, that can
accept data (input), process the data according to specified rules (process), produce results (output),
and store the results (storage) for future use.
Computers process data into information. Data is a collection of unprocessed items, which can
include text, numbers, images, audio, and video. Information conveys meaning and is useful to
people. During the output operation, the information that has been created is put into some form,
such as a printed report, or it can be stored on the computer for future use.
Fig: A
computer processes data into information. In this simplified example, the item ordered, item price,
quantity ordered, and amount received all represent data. The computer processes the data to
produce the cash register receipt (information).
Digital Computer:
These are high speed electronic devices. These devices are programmable. They process data by way
of mathematical calculations, comparison, sorting etc. They accept input and produce output as
discrete signals representing high (on) or low (off) voltage state of electricity. Numbers, alphabets,
symbols are all represented as a series of 1s and 0s.
Hybrid Computer
- A hybrid computer is a combination of digital and analog computers and it combines the best
features of both types of computers.
- For example a petrol pump contains a processor that converts fuel flow measurement into quantity
and price.
- Hybrid computer is used in hospitals to measure the heartbeat of the patient. - Hybrid computers
are also used in scientific applications or in controlling industrial processes.
Introductions to Information Technology (CSC-109) Page 2 Prepared By Saroj Guragain
- The first desktop hybrid computing system was the Hycomp 250, released by Packard Bell in 1961.
Characteristics of Computer
Word length, speed, accuracy, diligence, versatility, reliability, automation and storage capability are
some of the key characteristics of a computer. A brief overview of these characteristics is: ➢ Word
length:
A digital computer operates on binary digits – 0 and 1. It can understand information only in
binary digits (bits). The number of bits that a computer can process at a time in parallel is
called word length. Commonly used word lengths are 8, 16, 32 or 64 bits. Word length is the
measure of the computing power of a computer. Longer the word length, more powerful the
computer is.
➢ Speed:
A computer works with much higher speed and accuracy compared to humans while
performing mathematical calculations. Computers can process millions (1,000,000) of
instructions per second. The time taken by computers for their operations is microseconds
and nanoseconds.
➢ Accuracy:
Computers perform calculations with 100% accuracy. Errors may occur due to data
inconsistency or inaccuracy.
➢ Diligence:
A computer can perform millions of tasks or calculations with the same consistency and
accuracy. It doesn’t feel any fatigue or lack of concentration. Its memory also makes it
superior to that of human beings.
➢ Versatility:
Versatility refers to the capability of a computer to perform different kinds of works with
same accuracy and efficiency.
➢ Reliability:
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:
Computer performs all the tasks automatically i.e. it performs tasks without manual
intervention.
➢ Storage Capability:
Large volumes of data and information can be stored in the computer and also retrieved
whenever required. A limited amount of data can be stored, temporarily, in the primary
memory. Secondary storage devices like floppy disk and compact disk can store a large
amount of data permanently.
➢ Abacus:
Calculating Machines ABACUS was the first mechanical calculating device for counting of large
numbers. The word ABACUS means calculating board. It consists of bars in horizontal positions
on which sets of beads are inserted. The horizontal bars have 10 beads each, representing units,
tens, hundreds, etc.
➢ Napier’s Bones:
Napier’s bones was a mechanical device built for the purpose of multiplication in 1617 ad. by an
English mathematician John Napier.
➢ Slide Rule:
Slide Rule was developed by an English mathematician Edmund Gunter in the 16th century. Using
the slide rule, one could perform operations like addition, subtraction, multiplication and
division. It was used extensively till late 1970s.
➢ Blaise Pascal:
Pascal’s Adding and Subtraction Machine was developed by Blaise Pascal. It could add and
subtract. The machine consisted of wheels, gears and cylinders.
➢ Leibniz:
It was a mechanical device that could both multiply and divide. The German philosopher and
mathematician Gottfried Leibniz built it around 1673.
➢ Punch Cards:
Punch Card System was developed by Jacquard to control the power loom in 1801. He invented
the punched card reader that could recognize the presence of hole in the punched card as binary
one and the absence of the hole as binary zero. The 0s and 1s are the basis of the modern digital
computer.
➢ Charles Babbage:
Babbage’s Analytical Engine an English man Charles Babbage built a mechanical machine to do
complex mathematical calculations, in the year 1823. The machine was called as difference
engine. Later, Charles Babbage and Lady Ada Lovelace developed a general-purpose calculating
machine, the analytical engine. Charles Babbage is also called the father of computer.
• The first computer systems used vacuum tubes for circuitry and magnetic drums for
memory, and were often enormous, taking up entire rooms. These computers were very
expensive to operate and in addition to using a great deal of electricity, the first
computers generated a lot of heat, which was often the cause of malfunctions.
• First generation computers relied on machine language to perform operations and solve one
problem at a time. It would take operators days or even weeks to setup a new problem.
Input was based on punched cards and paper tape, and output was displayed on printouts.
• UNIVAC and ENIAC computers are examples of first-generation computing devices. The
UNIVAC was the first commercial computer delivered to a business client, the U.S.
Census Bureau in 1951.
• Transistor was used in place of vacuum tube, allowing computers to become smaller, faster,
cheaper, more energy-efficient and more reliable than first generation. Though the
transistor still generated a great deal of heat but was a vast improvement over the vacuum
tube. Second-generation computers still relied on punched cards for input and printouts
for output.
• The first computers of this generation were developed for the atomic energy industry.
• Integrated circuit was the hallmark of the third generation of computers. Transistors were
miniaturized and placed on silicon chips, called semiconductors, which drastically
increased the speed and efficiency of computers.
Introductions to Information Technology (CSC-109) Page 5 Prepared By Saroj Guragain
• Used keyboards and monitors instead of punched cards and printouts and interfaced with an
operating system, which allowed the device to run many different applications at one
time with a central program that monitored the memory.
• Computers for the first time became accessible to a mass audience because they were
smaller and cheaper than their predecessors.
• In 1981 IBM introduced its first computer for the home user, and in 1984 Apple introduced
the Macintosh.
• Computers became more powerful, they could be linked together to form networks, which
eventually led to the development of the Internet.
• Fourth generation computers also saw the development of GUIs, the mouse and handheld
devices.
➢ Super Computer
• Super computers are the fastest, most-powerful and most expensive computers. •
It has the ability to recover automatically from failures.
• It has the ability to support several Giga Bytes of RAM.
• Unlike conventional computers, which have a single processor to process one instruction
at a time, supercomputers have multiple processors (or CPUs) that process multiple
instructions at a time.
• Supercomputers are widely used in scientific applications such as aerodynamic design
and simulation, processing of geological data.
• One of the most powerful supercomputers today is “The Cray-2” and some others are
CRAY 1, CRAY-MP, SX-2, HITAC S-300, etc.
➢ Mini Computer
• These are also a general purpose computer, smaller than mainframe computer. Medium
sized computer, occupying approximately 10 sq ft of area.
• They have slower operating speed, smaller backup storage, limited hardware and less
memory than mainframes.
• Minicomputers are well adapted for functions such as accounting, word processing,
database management, statistical packages for social sciences.
• More than 50 terminals and large storage capacity device than microcomputers but smaller
than mainframe computers. E.g. Prime 9755
➢ Micro Computer
• A microcomputer is the smallest, least expensive of all the computers.
• Microcomputers have smallest memory and less power.
• Microcomputers are also called personal computers.
• The most common type of microcomputer is a desktop computer, which is a non-portable
personal computer.
• E.g. Desktop, laptop, notebook computers etc.
Introductions to Information Technology (CSC-109) Page 7 Prepared By Saroj Guragain
Computer System and its parts
Computer system is a collection of entities (hardware, software, user and data) that are designed to
receive process, manage and present information in a meaningful format. Computers come in variety
of different sizes. No matter how large or small a computer system is has following four parts: 1)
Hardware 2) Software 3) Data 4) User
➢ Hardware
• The mechanical devices that make up the computer are called hardware.
• Hardware is any part of the computer you can touch.
• These devices are required for input, output, storage and processing of the data. • Keyboard,
monitor, hard disk drive, floppy disk drive, printer, processor and motherboard are some of
the hardware devices.
➢ Software
• Software is a set of instructions that tells the computer about the tasks to be performed and
how these tasks are to be performed.
• A set of programs and documents are collectively called software.
• The hardware of the computer system cannot perform any task on its own. The hardware
needs to be instructed about the task to be performed. Software instructs the computer
about the task to be performed. The hardware carries out these tasks.
➢ Data
• Users are people who write computer programs or interact with the computer. •
A role depends on ability.
✓ Setup the system.
✓ Install software.
✓ Manage file.
✓ Maintain the system.
Input-Process-Output Concept
A computer is an electronic device that
• Accepts data,
• processes data,
• Generates output, and
• Stores data.
The concept of generating output information from the input data is also referred to as input-process
output concept.
➢ Input:
The computer accepts input data from the user via an input device like keyboard. The input
data can be characters, word, text, sound, images, document, etc.
➢ Process:
The computer processes the input data. For this, it performs some actions on the data by
using the instructions or program given by the user of the data. The action could be an
arithmetic or logic calculation, editing, modifying a document, etc. During processing, the data,
instructions and the output are stored temporarily in the computer’s main memory.
➢ Output:
The output is the result generated after the processing of data. The output may be in the form
of text, sound, image, document, etc. The computer may display the output on a monitor, send
output to the printer for printing, play the output, etc.
➢ Storage:
The input data, instructions and output are stored permanently in the secondary storage
devices like disk or tape. The stored data can be retrieved later, whenever needed.
➢ Input/output Unit
The user interacts with the computer via the I/O unit. The Input unit accepts data from the
user and the Output unit provides the processed data i.e. the information to the user. The Input
unit converts the data that it accepts from the user, into a form that is understandable by the
computer. Similarly, the Output unit provides the output in a form that is understandable by the
user. The input is provided to the computer using input devices like keyboard, trackball and
mouse. Some of the commonly used output devices are monitor and printer.
Applications of Computer
Some of the application areas of the computer are listed below:
Previous
➢ Education
Computers have its dominant use in the education field which can significantly enhance
performance in learning. Even distance learning is made productive and effective through
internet and video-based classes. Researchers have massive usage of these computers in their
work from the starting to till the end of their scholarly work.
➢ Entertainment
Computers have had a major impact on the entertainment industry. The user can download
and view movies, play games, chat, book tickets for cinema halls, use multimedia for making
movies, incorporate visual and sound effects using computers, etc. The users can also listen to
music, download and share music, create music using computers, etc.
➢ Advertising
With computers, advertising professionals create art and graphics, write and revise copy, and
print and disseminate ads with the goal of selling more products.
➢ Home
Computers have now become an integral part of home equipment. At home, people use
computers to play games, to maintain the home accounts, for communicating with friends and
relatives via Internet, for paying bills, for education and learning, etc. Microprocessors are
embedded in house hold utilities like, washing machines, TVs, food processors, home theatres,
security devices, etc.
➢ Medicine
Most of the medical information can now be digitized from the prescription to reports.
Computation in the field of medicine allows us to offer varied miraculous therapies to the
patients. ECG’s, radiotherapy wasn’t possible without computers.
➢ Business
A computer has high speed of calculation, diligence, accuracy, reliability, or versatility which
made it an integrated part in all business organizations. Computer is used in business
organizations for: Payroll calculations, Sales analysis, Budgeting, Financial forecasting,
Managing employees database and Maintenance of stocks etc.
➢ Military
Computers are the main tools which help in developing missiles and other equipment in the
deference system. Designing and the maintenance are possible only through computers.
Computer builds the links between the soldiers and commanders through the satellite.
Construction of weapons and controlling their function is not possible without the aid of
computers. The list of the criminals and the records of the cops are maintained regularly in the
system.
➢ Banking
Today banking is almost totally dependent on computer. Banks provide the facilities of: Banks
provide online accounting facility, which includes current balances, deposits, overdrafts, interest
charges, shares, and trustee records.
ATM machines are making it even easier for customers to deal with banks.
The computer user interacts with the computer via the I/O unit. The purpose of I/O unit is to provide
data and instructions as input to the computer and to present relevant information as output from the
computer. CPU controls the operations of the computer and processes the received input to generate
the relevant output. The memory unit stores the instructions and the data during the input activity, to
make instructions readily available to CPU during processing. It also stores the processed output.
CPU consists of Arithmetic Logic Unit (ALU) and Control Unit (CU). In addition, CPU also has a
set of registers which are temporary storage areas for holding data, and instructions. ALU performs
the arithmetic and logic operations on the data that is made available to it. CU is responsible for
organizing the processing of data and instructions. CU controls and coordinates the activity of the
other units of computer. CPU uses the registers to store the data, instructions during processing.
Fig: CPU
➢ Registers
• Registers are high-speed storage areas within the CPU, but have the least storage
capacity. Registers are not referenced by their address, but are directly accessed and
manipulated by the CPU during instruction execution.
• Registers store data, instructions, addresses and intermediate results of processing.
Registers are often referred to as the CPU’s working memory.
• The data and instructions that require processing must be brought in the registers of
CPU before they can be processed. For example, if two numbers are to be added,
both numbers are brought in the registers, added and the result is also placed in a
register.
• Registers are used for different purposes, with each register serving a specific purpose.
Some of the important registers in CPU are as follows:
MAR(Memory Holds the memory location of data that needs to be
Address Register) accessed.
MDR (Memory Data Holds data that is being transferred to or from memory.
Register)
• The size of register, also called word size, indicates the amount of data with which the
computer can work at any given time. The bigger the size, the more quickly it can
process data. The size of a register may be 8, 16, 32 or 64 bits. For example, a 32–bit
CPU is one in which each register is 32 bits wide and its CPU can manipulate 32 bits
of data at a time. Nowadays, PCs have 32–bit or 64–bit registers.
Memory Unit
Computer memory refers to the area where data and programs are stored.
The memory unit consists of cache memory and primary memory. Primary memory or main memory
of the computer is used to store the data and instructions during execution of the instructions.
Random Access Memory (RAM) and Read Only Memory (ROM) are the primary memory. In
addition to the main memory, there is another kind of storage device known as the secondary
memory. Secondary memory is non-volatile and is used for permanent storage of data and programs.
A program or data that has to be executed is brought into the RAM from the secondary memory.
➢ Primary Memory
• Primary memory is the main memory of computer. It is used to store data and
instructions during the processing of data. Primary memory is semiconductor
memory.
• Primary memory is of two kinds: Random Access Memory (RAM) and Read Only
Memory (ROM).
• Random Access Meomory (RAM)
▪ RAM is volatile. It stores data when the computer is on. The information stored
in RAM gets erased when the computer is turned off. RAM provides
temporary storage for data and instructions.
▪ RAM stores data and instructions during the execution of instructions. The data
and instructions that require processing are brought into the RAM from the
storage devices like hard disk. CPU accesses the data and the instructions
from RAM, as it can access it at a fast speed than the storage devices
connected to the input and output unit.
▪ The input data that is entered using the input unit is stored in RAM, to be made
available during the processing of data. Similarly, the output data generated
after processing is stored in RAM before being sent to the output device. Any
intermediate results generated during the processing of program
are stored in RAM.
➢ Instruction Format
An instruction format defines the different component of an instruction. The main
components of an instruction are opcode (which instruction to be executed) and operands
(data on which instruction to be executed).
• Opcode:
The operation code (opcode) represents action that the processor must execute. It
tells the processor what basic operations to perform.
• Operands
The operand code defines the parameters of the action and depends on the operation.
It specifies the locations of the data or the operand on which the operation is to be
performed. It can be data or a memory address.
Eg:- ADD B // Add the contents of register B to the content of the accumulator. MOV
➢ Instruction Set
An instruction set is the set of instructions. It is a part of computer architecture. It specifies
the operations, operands, and sequence for the processing of instructions. They are the set of
all basic operations for a processor to complete. All programs do communicate with the
processor using these instruction sets. These involve a series of logical operations that
perform a complete task. The processor understands the coded instructions.
• Fetching:
The processor fetches the instruction from the memory. The fetched instruction is
placed in the Instruction Register. Program Counter holds the address of next
instruction to be fetched and is incremented after each fetch.
• Decoding:
The instruction that is fetched is broken down into parts or decoded. The instruction
is translated into commands so that they correspond to those in the CPU’s instruction
set. The instruction set architecture of the CPU defines the way in which an
instruction is decoded.
• Executing:
The decoded instruction or the command is executed. CPU performs the operation
implied by the program instruction. For example, if it is an ADD instruction, addition
is performed.
• Storing:
CPU writes back the results of execution, to the computer’s memory.
Advantages:
• They are less expensive than hardwiring a control unit and also are easy to implement.
• Only fewer instructions are needed to accomplish the execution of a program. •
It does not make the compiler complicated.
Disadvantages:
• The chip hardware is complex to use.
• However, there is a need for only fewer instructions, they are longer and take more
time for execution.
Advantages:
• The execution time is faster than CISC.
• It does not require complex hardware.
• It uses fewer instructions per task.
➢ Pipelining
Pipelining improves instruction execution speed by putting the execution steps into parallel.
A CPU can receive a single instruction, begin executing it, and receive another instruction
before it has completed the first. This allows for more instructions to be performed, about,
one instruction per clock cycle.
➢ Parallel Processing
Parallel processing is the simultaneous execution of instructions from the same program on
different processors. A program is divided into multiple processes that are handled in parallel
in order to reduce execution time.
➢ Internal Bus:
Internal bus is used to connect the internal components of computer system such as
processor, RAM, chipset, hard disk. It is also called the System Bus.
➢ External Bus:
External bus is used to connect the external components of computer system such as
monitor, keyword, printer. The external bus allows various devices to be attached to the
computer. It allows for the expansion of computer’s capabilities. It is generally slower than
the system bus. It is also referred to as the Expansion Bus.
A System bus or Expansion bus comprise of three kinds of buses: data bus, address bus and
control bus.
• Data Bus:
It transfers data between the CPU and memory. The bus width of a data bus affects
the speed of computer. The size of data bus defines the size of the processor. A
processor can be 8, 16, 32 or 64-bit processor. An 8–bit processor has 8 wire data bus
to carry 1 byte of data. In a 16–bit processor, 16–wire bus can carry 16 bits of data,
i.e., transfer 2 bytes, etc.
• Control Bus:
It specifies whether data is to be read or written to the memory, etc.
• Data Bus:
It is used to transfer data between I/O devices and CPU. The exchange of data
between CPU and I/O devices is according to the industry standard data buses. The
most commonly used standard is Extended Industry Standard Architecture (EISA)
which is a 32-bit bus architecture. Some of the common bus technologies are:
▪ Peripheral Component Interconnect (PCI) bus for hard disks, sound cards,
network cards and graphics cards,
▪ Accelerated Graphics Port (AGP) bus for 3–D and full motion video,
▪ Universal Serial Bus (USB) to connect and disconnect different devices.
• Address Bus:
It carries the addresses of different I/O devices to be accessed like the hard disk, CD
ROM, etc.
• Control Bus:
It is used to carry read/write commands, status of I/O devices, etc.
➢ External Ports
The peripheral devices interact with the CPU of the computer via the bus. The connections to
the bus from the peripheral devices are made via the ports and sockets provided at the sides
of the computer. The different ports and sockets facilitate the connection of different devices
to the computer. Some of the standard port connections available on the outer sides of the
computer are— port for mouse, keyboard, monitor, network, modem, and, audio port, serial
port, parallel port and USB port. The different ports are physically identifiable by their
different shapes, size of contact pins and number of pins.
Computer Cabinet
The computer cabinet consists of the components that are required for running the computer system
effectively with fewer errors. There are various elements in the cabinet to which some of them are
Motherboard, memory chips, cables, processors, ports, etc.
➢ Motherboard
The motherboard is the computer's main circuit board. It's a thin plate that holds the CPU,
memory, connectors for the hard drive and optical drives, expansion cards to control the
video and audio, and connections to your computer's ports (such as USB ports). The
motherboard connects directly or indirectly to every part of the computer.
Introductions to Information Technology (CSC-109) Page 22 Prepared By Saroj Guragain
➢ Ports and interfaces
Motherboard has a certain number of I/O sockets that are connected to the ports and
interfaces found on the rear side of a computer. We can connect external devices to the ports
and interfaces, which get connected to the computer’s motherboard.
• Serial Port— to connect old peripherals.
• Parallel Port— to connect old printers.
• USB Ports—to connect newer peripherals like cameras, scanners and printers to the
computer.
• Fire wire is another bus, used today mostly for video cameras and external hard drives.
• J45 connector (called LAN or Ethernet port) is used to connect the computer to a
network. It corresponds to a network card integrated into the motherboard. • VGA
connector for connecting a monitor. This connector interfaces with the built-in graphics
card.
• Audio plugs for connecting speakers and the microphone. This connector interfaces
with the built-in sound card.
• PS/2 port to connect mouse and keyboard into PC.
• SCSI port for connecting the hard disk drives and network connectors.
➢ Expansion Slots
The expansion slots are located on the motherboard. The expansion cards are inserted in the
expansion slots. These cards give the computer new features or increased performance.
There are several types of slots:
• ISA (Industry Standard Architecture) slot—To connect modem and input devices. • PCI
(Peripheral Component Interconnect) slot—To connect audio, video and graphics. They
are much faster than ISA cards.
• AGP (Accelerated Graphic Port) slot—A fast port for a graphics card. • (Peripheral
Component Interconnect) Express slot—Faster bus architecture than AGP and PCI
buses.
• PC Card—It is used in laptop computers. It includes Wi-Fi card, network card and
external modem.
➢ Memory Chips
The RAM consists of chips on a small circuit board. Two types of memory chips— Single
In-line Memory Module (SIMM) and Dual In-line Memory Module (DIMM) are used in
desktop computers. The CPU can retrieve information from DIMM chip at 64 bits compared
to 32 bits or 16 bits transfer with SIMM chips. DIMM chips are used in Pentium 4 onwards
to increase the access speed.
➢ Processor
The processor or the CPU is the main component of the computer. Select a processor based
on factors like its speed, performance, reliability and motherboard support. Pentium Pro,
Pentium 2 and Pentium 4 are some of the processors.
➢ Storage Devices
The disk drives are present inside the machine. The common disk drives in a machine are
hard disk drive, floppy drive and CD drive or DVD drive. High-storage devices like hard
disk, floppy disk and CDs are inserted into the hard disk drive, floppy drive and CD drive,
respectively. These storage devices can store large amounts of data, permanently.