NCERT Class 11 Computer Science Computer Fundamentals PDF
NCERT Class 11 Computer Science Computer Fundamentals PDF
com
Chapter 1
Computer Fundamentals
Introduction
Computers are seen everywhere around us, in all spheres of life. May it be the field of
education and research, travel and tourism, weather forecasting, social networking, e-
commerce or any other, computers have now become an indispensable part of our lives.
The manner, in which computers have revolutionised our lives because of their
accuracy and speed of performing a job, is truly remarkable. Today no organization can
function without a computer. In fact various organizations are trying to become paper
free owing to benefits of computers. But the computers of today have evolved over the
years from a simple calculating device to the portable high speed computers that we see
today.
Evolution of Computers
The growth of computer industry started with the need for performing fast calculations.
The manual method of computing was slow and prone to errors. So attempts were
made to develop faster calculating devices. The journey that started from the first
calculating device i.e. Abacus has led us today to extremely high speed calculating
devices. Let us first have a look at some early calculating devices and then we will
explore various generations of computer.
Abacus
Abacus was discovered by the Mesopotamians in around 3000 BC. An abacus consisted
of beads on movable rods divided into two parts. (Fig-1) Addition and multiplication of
numbers was done by using the place value of digits of the numbers and position of
beads in an abacus.
Fig: An Abacus
The Chinese further improved on the abacus so that calculations could be done more
easily. Even today abacus is considered as an apt tool for young children to do
calculations. In an abacus, each row is thought of as a tens place. From right to left ,
row no-1 represents the ones column and the second column represents tens place.
The third column represents the hundreds place and so on. The starting position of the
top beads (representing the value of five) is always towards the top wall of the abacus
while the lower beads (representing the value of one) will always be pushed towards
the lower wall as a starting position.
side and the bones corresponding to the digits of the multiplicand on the right , the
product of two numbers can be easily obtained.
Pascaline
Blaise Pascal, a French mathematician invented an adding machine in 1642 that was
made up of gears and was used for adding numbers quickly. This machine was also
called Pascaline and was capable of addition and subtraction along with carry-transfer
capability. It worked on clock
Fig: Pascaline
Leibnitzs Calculator
In 1673 Gottfried Leibnitz, a German mathematician extended the capabilities of the
adding machine invented by Pascal to perform multiplication and division as well. The
multiplication was done through repeated addition of numbers using a stepped
cylinder each with nine teeth of varying lengths.
Jacquards Loom
In order to make the cotton weaving process automatic, Joseph Jaquard devised punch
cards and used them to control looms in 1801. The entire operation was under a
programs control. Through this historic invention, the concept of storing and retrieving
information started.
Thereafter in 1833, he designed the Analytical Engine which later on proved to be the
basis of modern computer. This machine could perform all the four arithmetic
operations as well as comparison. It included the concept of central processor, memory
storage and input-output devices. Even the stored information could be modified.
Although the analytical engine was never built that time but Babbage established the
basic principles on which todays modern computers work.
Both these great inventions earned him the title of Father of Modern Computers.
Mark 1
In 1944 Prof Howard Aiken in collaboration with IBM constructed an electromechanical
computer named Mark 1 which could multiply two 10 digit numbers in 5 seconds. This
machine was based on the concept of Babbages Analytical engine and was the first
operational general purpose computer which could execute preprogrammed
instructions automatically without any human intervention.
Fig: Mark 1
In 1945, Dr. John Von Neumann proposed the concept of a stored program computer.
As per this concept the program and data could be stored in the same memory unit. The
basic architecture of the Von Neumann computer is shown in the figure below
Program
Communication
+
Data
channel
Processor
Storage (Memory)
Generation of Computers
Growth in the computer industry is determined by the development in technology.
Each phase/generation of computer development is characterized by one or more
hardware/software developments that distinctly improved the performance of the
computers of that generation. Based on various stages of development, computers can
be divided into different generations.
thousands of vacuum tubes and were the fastest calculating devices of their time. These
computers were very large in size, consumed lot of electricity and generated lot of heat.
UNIVAC 1 was the first electronic computer of this generation and was used for
business applications.
Note: ENIAC weighed about 27 tons, was of the size 8 feet * 100 feet * 3 feet and
consumed around 150 watts of power.
management, inventory control etc. IBM 1401 and IBM 1620 were popular computers of
this generation.
Magnetic core memories and magnetic disks were used as primary and
secondary storage respectively
Programming in assembly language and in the later part high level languages
were used
In this generation Large Scale Integration (LSI) and Very Large scale integration (VLSI)
technology was used by which up to 300,000 transistors were used on a single chip.
Thus integration of complete CPU on a single chip was achieved in 1971 and was
named microprocessor which marked the fourth generation of computers. The
computers based on microprocessor technology had faster accessing and processing
speeds. In addition to this the increased memory capacity further made the computers
more powerful and also more efficient operating systems were developed for these
computers. New concepts of microprogramming, application software, databases,
virtual memory etc were developed and used.
The computers that we use today belong to this generation. These portable computers
can be carried from one place to another owing to their compact size. They are much
more accurate. Even memory sizes have become phenomenal. Commercial production
of these computers is easier and they are the least expensive, compared to the earlier
generation computers.
Also computer networks starting coming up during this generation. It is today one of
the most popular means to interact and communicate with people.
Microprocessors developed
10
Different types of secondary memory with high storage capacity and fast access
developed
Parallel Processing
Superconductivity
Artificial Intelligence
Data: It is the term used for raw facts and figures. For example, 134, + 9, Raju, C are
data. Definition of information should start from next line as given in the word file. In
composed file it is starting from the same line immediately after the definition of data.
Information: Data represented in useful and meaningful form is information. In simple
words we can say that data is the raw material that is processed to give meaningful,
11
ordered or structured information. For example Raju is 9 years old. This is information
about Raju and conveys some meaning. This conversion of data to information is called
data processing.
Every task given to a computer follows an Input- Process- Output Cycle (IPO cycle). It
needs certain input, processes that input and produces the desired output. The input
unit takes the input, the central processing unit does the processing of data and the
output unit produces the output. The memory unit holds the data and instructions
during the processing.
Output
unit
CPU
ALU
CU
12
Input Unit
The input unit consists of input devices that are attached to the computer. These devices
take input and convert it into binary language that the computer understands. Some of
the common input devices are keyboard, mouse, joystick, scanner etc.
Control Unit
The Control unit coordinates and controls the data flow in and out of CPU and also
controls all the operations of ALU, memory registers and also input/output units. It is
also responsible for carrying out all the instructions stored in the program. It decodes
the fetched instruction, interprets (understands) it and sends control signals to
input/output devices until the required operation is done properly by ALU and
memory.
Memory Registers
A register is a temporary unit of memory in the CPU. These receive data/information
and then this data/information is held in them as per the requirement. Registers can be
of different sizes(16 bit , 32 bit , 64 bit and so on) and each register inside the CPU has a
13
specific function like storing data, storing an instruction, storing address of a location in
memory etc. The user registers can be used by an assembly language programmer for
storing operands, intermediate results etc. Accumulator (ACC) is the main register in
the ALU and contains one of the operands of an operation to be performed in the ALU.
Memory
Memory attached to the CPU is used for storage of data and instructions and is called
internal memory. During processing, it is the internal memory that holds the data. The
internal memory is divided into many storage locations, each of which can store data or
instructions. Each memory location is of the same size and has an address. With the
help of the address, the computer can find any data easily without having to search the
entire memory. The internal memory is also called the Primary memory or Main
memory. When the task is performed, the CU makes the space available for storing data
and instructions, thereafter the memory is cleared and the memory space is then
available for the next task. The time of access of data is independent of its location in
memory, therefore this memory is also called Random Access memory (RAM). Primary
memory is volatile in nature. That means when the power is switched off, the data
stored in this memory is permanently erased. That is why secondary memory is needed
to store data and information permanently for later use. Some of the examples of
secondary storage devices are hard disk, compact disks, pen drives etc.
Output Unit
The output unit consists of output devices that are attached with the computer. It
converts the binary data coming from CPU to human understandable from. The
common output devices are monitor, printer, plotter etc.
14
of electric signals, is passed from one component to another in a computer. The bus can
be of three types Address bus, Data bus and Control Bus.
ALU
CU
System bus
Controller Controller
The address bus carries the address location of the data or instruction. The data bus
carries data from one component to another and the control bus carries the control
signals. As shown in the figure above, the system bus is the common communication
path that carries signals to/from CPU, main memory and input/output devices. The
input/output devices communicate with the system bus through the controller circuit.
This controller circuit helps to manage various input/output devices attached to the
computer.
15
Concept of Booting
When the computer is switched on, a copy of boot program is brought from ROM into
the main memory. This process is called booting. The CPU first runs a jump instruction
that transfers to BIOS (Basic Input output System) and it starts executing. The BIOS
conducts a series of self diagnostic tests called POST (Power On Self Test). These tests
include memory tests, configuring and starting video circuitry, configuring the systems
hardware and checking other devices that help to function the computer properly.
Thereafter the BIOS locates a bootable drive to load the boot sector. The execution is
then transferred to the Boot Strap Loader program on the boot sector which loads and
executes the operating system. If the boot sector is on the hard drive then it will have a
Master Boot record (MBR) which checks the partition table for active partition. If found,
the MBR loads that partitions boot sector and executes it.
Cold Booting: When the system starts from initial state i.e. it is switched on, we call it
cold booting or Hard Booting. When the user presses the Power button, the instructions
are read from the ROM to initiate the booting process.
Warm Booting: When the system restarts or when Reset button is pressed, we call it
Warm Booting or Soft Booting. The system does not start from initial state and so all
diagnostic tests need not be carried out in this case. There are chances of data loss and
system damage as the data might not have been stored properly.
Classification of Computers
The computers can be classified based on the technology being used as: Digital, Analog
and Hybrid
Digital Computers
These computers are capable of processing information in discrete form. In digital
technology data which can be in the form of letters, symbols or numbers is represented
in binary form i.e. 0s and 1s. Binary digits are easily expressed in a digital computer by
the presence (1) or absence (0) of current or voltage. It computes by counting and
adding operations. The digital computers are used in industrial, business and scientific
applications. They are quite suitable for large volume data processing.
16
Analog Computers
An analog computer works on continuously changeable aspects of physical
phenomenon such as fluid pressure, mechanical motion and electrical quantities. These
computers measure changes in continuous physical quantities say current and voltage.
These computers are used to process data generated by ongoing physical processes. A
thermometer is an example of an analog computer since it measures the change in
mercury level continuously. Although the accuracy of an analog computer is less as
compared to digital computers, yet it is used to process data generated by changing
physical quantities especially when the response to change is fast. Most present day
analog computers are well suited to simulating systems. A simulator helps to conduct
experiments repeatedly in real time environment. Some of the common examples are
simulations in aircrafts, nuclear power plants, hydraulic and electronic networks.
Hybrid Computers
These use both analog and digital technology. It has the speed of analog computer and
the accuracy of a digital computer. It may accept digital or analog signals but an
extensive conversion of data from digital to analog and analog to digital has to be done.
Generally the analog components provide efficient processing of differential equations
while the digital part deals with logical operations of the system. Hence benefits of both
analog and digital computing are readily available. Hybrid Computers are used as a
cost effective means for complex simulations.
Micro Computers
These are also known as Personal Computers. These type of digital computer uses a
microprocessor (a CPU on a single chip) and include both desktops and laptops. These
computers can work on small volume of data, are very versatile and can handle variety
of applications. These computers are being used as work stations, CAD, multimedia
and advertising applications. Small portable computers such as PDAs (Personal Digital
Assistants) and tablets with wireless computing technology are increasingly becoming
popular.
17
Mini Computers
These computers can support multiple users working simultaneously on the same
machine. These are mainly used in an organization where computers installed in
various departments are interconnected. These computers are useful for small business
organizations.
Main Frames
These computers are large and very powerful computers with very high memory
capacity. These can process huge databases such as census at extremely fast rate. They
are suitable for big organizations, banks, industries etc. and can support hundreds of
users simultaneously on the network.
Super Computers
These are fastest and very expensive computers. They can execute billions of
instructions per second. These are multiprocessor, parallel systems suitable for
specialized complex scientific applications involving huge amounts of mathematical
applications such as weather forecasting. The main difference between a supercomputer
and a mainframe is that a supercomputer executes fewer programs as fast as possible
whereas a mainframe executes many programs concurrently.
18
EXERCISE
Answer the following questions
i) Explain the functional components of a computer with the help of a block diagram.
m) Differentiate between :
19