Chapter1 New2
Chapter1 New2
What is a computer?
A computer is an electronic computing device which performs operations such as,
• Accept the data
• Process or manipulate the data
• Output the result in the form suitable for human understanding
• Stores the input data, instructions and results.
Computer System:
A computer along with additional hardware and software together is called a computer
system.
Hardware: The physical electronic components of a computer are called hardware.
Example: Keyboard, CPU, Monitor, Printer etc.
Software: Software is set of programs and has a set of instructions to carry out a specific
task.
Categories of Software:
1. System software
2. Application software
• System software is the collection of system programs that controls the overall activities of
the computer. Examples: operating system software’s like windows-XP, UNIX etc.,
• Application software is software used by user to perform specific task.
For example, Banking software, Educational software, etc.,
INPUT DEVICE:
▪ Using the Input device, the user can enter the data or program to the computer system.
▪ Data entered through input device is temporarily stored in the main memory (also called
RAM) of the computer system.
▪ Examples: Keyboard, Mouse, Scanner, OMR, OCR, Bar code reader, Touch Screen etc.,
CENTRAL PROCESSING UNIT (CPU) (Processor) :
CONTROL UNIT:
▪ The control unit controls and co-ordinates the activities of all the units by issuing proper
commands.
▪ The various responsibilities of the control unit are:
✓ Fetches an instruction
✓ Decode the instruction
✓ Executes the instruction.
✓ It stores the results to the memory.
REGISTERS:
PRIMARY MEMORY:
▪ Primary memory is an temporary memory, the presently executed instructions or data are
stored in primary memory.
▪ The CPU interacts directly with the primary memory to perform read or write operation.
OUTPUT DEVICES:
▪ The Output unit display or print results only when the control unit sends the signals to
Output unit.
Monitor:
▪ A monitor is an electronic visual display for computers.
▪ A braille display monitor is useful for a visually challenged person.
Printer:
▪ A printer is an output device that is used to print the text and graphical information on a
physical medium such as paper.
▪ The commonly used printers are: Inkjet printer, Laser printer, Dot matrix printer
▪ The new type, 3D-printers are print the 3-dimensional objects i.e., machine design.
▪ Printer are used in medical field, to print body organs.
Evolution of Computer
Abacus:
ABACUS was the first recorded computer, this device allows the users to make computations
using a system of sliding beads arranged in a rack.
John Napier:
In 1614, the concept of logarithms was introduced by a Scottish Mathematician Jhon Napier.
He used a set of bones to perform multiplication.
Willam Oughtred:
In 1960, Willam Oughtred developed the slide rule which consists of two scales on of which
slides over the other to give the basic arithmetic operations.
Blaise pascal:
▪ First mechanical adding machine was invented by Blaise pascal in 1642.
▪ Pascal’s device used a base of ten to perform calculations. The drawback of Pascal’s
device was limitation of addition.
Gottfried von Leibnitz:
In 1671, a German Mathematician, Gottfried von Leibniz invented an Electro-mechanical
computer as rotating wheel calculator.
Joseph Marie Jacquard:
In 1802, Joseph Marie Jacquard who was a French textile manufacturer invented a machine
to control weaving loom.
Charles Babbage:
▪ In 1823, Charles Babbage developed Difference Engine. It could perform calculations and
print the results automatically.
▪ In 1833, Charles Babbage developed first general-purpose computer, which he called
Analytical Engine, whose architecture resembles the modern digital computer. So he is
called as the Father of Computer.
Howard H. Aiken:
1943, an American Mathematician, Howard H. Aiken, invented an electro-mechanical
computer named Mark-I. It performs a sequence of arithmetic operations.
John Mauchly and Presper Eckert:
▪ In 1946, John Mauchly and Presper Eckert developed the first ever electronic computer
ENIAC (Electronic Numerical Integrator and Calculator) by adopting the semiconductor
technology.
▪ It consists of very short memory and various components had to be manually wired to
perform different computations.
Remington Rand:
In 1951, Remington Rand developed the first commercial computer called UNIVAC
(UNIVersal Automatic Computer).
John Von Neumann:
▪ John Von Neumann proposed new concept of large internal memory to store instructions
and data known as stored program concept.
▪ The first developed based on this concept is EDVAC (Electronic Discrete Variable
Automatic Computer).
Memory is defined as the place or locations where the data and instructions are stored.
Units of Memory:
The storage capacity of a computer measured in terms of bytes. One byte includes a total
of 8 individual units called as bits (also called Binary Digit). One bit can store either a 0 or
a 1 in it. The table below gives the storage capacities,
Types of Memory:
1) Primary memory
2) Secondary memory
3) Cache memory
▪ Before processing, program and data are loaded into the primary memory.
▪ The CPU interacts directly with the primary memory to perform a read or write operation.
Types of Primary memory:
▪ ROM is a Non-volatile memory (permanent memory) i.e., the memory that retains its
contents, even after the computer is turned off.
▪ ROM allows only read operations.
▪ ROM contains start-up of instructions called BIOS(Basic Input Output System).
▪ The data stored in the secondary memory are not lost even when the computer is turned
off. So, it is a non-volatile memory.
▪ The secondary storage is used to store the large amount of data and instructions
permanently.
▪ The data and instruction are loaded from secondary memory to main memory so that the
CPU can process the data.
▪ Some of the secondary memory devices are: Floppy diskette, Hard disk, CD-ROMs,
Magnetic tape, memory card, pen drive etc.,
▪ Secondary storage devices like SSD which support very fast data transfer speed as
compared to earlier HDDs.
▪ To speed up the operations of the CPU, cache memory is placed between CPU and RAM.
▪ Compared to RAM it is very fast and small memory.
▪ Cache memory is used to store the frequently used data and instructions during
processing.
▪ Since cache memory is several times faster than main memory (RAM), using cache
memory we can save the time needed to load the data from RAM thereby increasing the
efficiency of CPU and execute the program as fast as possible.
▪ Data need to be transferred between the CPU and primary memory as well as
between the primary and secondary memory.
Data bus:
Data bus facilitates the exchange of information between various components on a mother
board.
Address bus:
Address bus connects CPU and RAM, which carries address to store and retrieve the data.
Control bus:
Control bus is used to control the access and the use of the data and address lines.
▪ Data bus is bidirectional while control bus and address bus are unidirectional.
▪ Memory controller manages data flow to and from the computer’s main memory. It
communicates with the CPU and other devices.
Microprocessors:
Generation of Microprocessor:
Microprocessor Specifications:
✓ Chip type,
✓ Word size,
✓ Memory size,
✓ Clock speed
Chip type:
Word Size:
▪ Word size is the maximum number of bits that a microprocessor can process at a time.
▪ Earlier, a word size was of 8 bits.
▪ Now 16 bits, 32 bits and 64 bits word size is available.
Memory Size:
▪ Computers have an internal clock that generates pulses (signals) at regular intervals of
time.
▪ The clock speed indicates the speed at which the computer can execute instructions.
▪ Clock speed now measured in Gigahertz (GHz) i.e., billions of pulses per second.
Cores:
Microcontroller:
▪ The microcontroller is a small computing device which has a CPU, a fixed amount of
RAM, ROM and other peripherals all embedded on a single chip.
▪ Microcontroller are designed to perform a specific functionality, hence their size as
well as cost is reduced.
▪ For example, the microcontroller in a fully automatic washing machine is used to
control the washing cycle without any human intervention.
▪ Microcontrollers are also used in Keyboard, mouse, digital camera, pen drive, remote
controller, microwave.
Microprocessor Microcontroller
Data Information
1. Data is a representation of facts or 1. Information is the result of processing
concepts in an organized manner. the data.
2. Data do not convey any meaning. 2. Information conveys meaning.
3. The letter, digits and symbols 3. The program obtained from letters, digits
…. represent data. and symbols represent information.
4. Computer work with data 4. Computer do not work with
…..information.
Types of Data:
1. Structured Data
2. Unstructured Data
3. Semi-structured Data
1. Structured data:
▪ Structured data is organized and formatted in pre-specified tabular format
▪ Examples:
2. Unstructured Data:
▪ Data which are not organised in a pre-defined record format is called unstructured data.
▪ Examples:
✓ Audio and video files, graphics, text documents, social media posts, satellite
images, etc.
✓ Student report card with monthly attendance record details sent to parents.
3. Semi-structured Data:
▪ Data which have no well-defined structure but maintains internal tags or markings
to separate data elements are called semi-structured data.
▪ Examples:
✓ E-Mail documents, HTML page
✓ Student’s month-wise attendance details.
Data Capturing:
▪ The process of gathering data from different sources in the digital form called as data
capturing.
▪ Some of the capturing devices are:
✓ Barcode reader used in shopping malls
✓ Remote sensors on an earth orbiting satellite
✓ Optical character recognition (OCR)
✓ Optical mark reading (OMR)
✓ Magnetic Ink character recognition (MICR)
Data Storage:
▪ Data Storage is the processes of storing the captured data permanently for future use.
▪ Some of the storage devices are: Hard disk, SSD (Solid State Drive), CD/DVD, Pen drive,
Memory card and etc.,
Data Retrieval:
Fetching data from the storage devices, for its processing as per the user requirement is
called data retrieval.
▪ Data is simply deleted, its address entry is marked as free, and that much space is
shown as empty to the user, without actually deleting the data.
▪ Deleting digitally stored data means changing the details of data at bit level, which can
be very time consuming.
▪ Data recovery is a process of retrieving deleted, corrupted and lost data from secondary
storage devices.
▪ Recovery of the data is possible only if the contents or memory space marked as deleted
have not been overwritten by some other data.
▪ By giving the password and using proper tools, to protect valuable data from
unauthorized user to delete or recovery.
Software:
Need of Software:
▪ We need both hardware and software for a computer system to work.
▪ We cannot instruct the hardware of a computer directly. Software acts as an interface
between human users and the hardware.
▪ The sole purpose of a software is to make the computer hardware useful and
operational.
▪ A software knows how to make different hardware components of a computer work
and communicate with each other as well as with the end-user.
Categories of Software:
1. Application software
2. System software
Application software:
▪ Application software is a software used by user, to perform specific task.
▪ Examples:
✓ Banking software,
✓ Insurance software,
✓ Educational software, etc.,
System software:
▪ System software is the collection of system programs that controls the overall activities of
the computer.
▪ Examples:
✓ Operating system software’s like windows-XP, UNIX, Linux etc.,
✓ System utilities,
✓ Device drivers
System Utilities:
▪ System Utilities are the software’s used for maintenance and configuration of the
computer system.
▪ Some of the utility’s software are the part of operating system. For example,
✓ Disk defragmentation tool,
✓ Formatting utility,
✓ System restore utility, etc.
▪ Some of the utilities are not present in the operating system but are required to
improve the performance of the system. For example,
✓ Anti-virus software,
✓ Disk cleaner tool,
✓ Disk compression software, etc
Device Drivers:
A device driver, or driver, is a special kind of software program that controls a specific
hardware device attached to a computer.
▪ When new devices are added to computer system, the operating system cannot
handle the new device, because each device has diverse characteristics. So, user
must install device driver software to the computer system.
▪ The device driver acts as an interface between the device and the operating
system.
Programming language:
Programming language is a set of rules to follow, to instruct the computer.
Machine language:
Machine language is the basic language of the computer representing data as1’s and 0’s.
Example:
0000011100000001111001111 load the data
1110000001111100000011100 add the contents
001111101100000000100000 store the results
0000000001110000011000110 print the result
0000000000000000000000000 stop
In machine language,
• Computer understands only 0’s and 1’s without using a translation program.
• The instructions provided in machine language are immediately understood and
converted into electrical signals to run the computer.
An instruction given in the machine language has two parts:
1. OPCODE [Operation code]
“The operation code denotes the operation, which is to be performed”
[For example add, multiply, divide, move data and so on]
2. OPERAND [Address / Location]
“The operand part of the instruction code gives the specific location or address of the data
to which the operation code to be applied.”
Note: memory is divided into thousands of identifiable address (Locations).
Advantages of machine language:
1. Machine languages make efficient use of storage.
2. Instructions of a machine language program are immediately executed. They require no
compilation or translation.
3. Machine language instructions can be used to manipulate the individual bits in a byte of
computer storage.
Disadvantages of machine language:
1. Machine languages are machine dependent.
2. Machine language is difficult to program. It is necessary for the programmer to memorize
the large set of operation code numbers.
3. It is difficult to correct or modify machine language programs. (error checking)
4. 0’s and 1’s are allowed but letters are not allowed.
1. Lack of flexibility
2. Slower in execution
3. Requires a translator or complier
4. Lower efficiency.
2. Compilers:
▪ Compiler is a translator that translates high level language to its equivalent machine
language.
▪ The process of translation is called as compilation.
▪ Complier occupies more storage space and takes more processing time than an
assembler.
3. Interpreters:
▪ Interpreter is a language processor that translates statement of a high-level language
and immediately executes it, before translating the next high-level language
statement”.
▪ In other words, the interpreter takes one statement of a high level language and
translates it into a machine instruction, which is immediately executed.
Comparison of Interpreters & Compilers:
Interpreters Compilers
1. Translates the program line by 1. Translates the entire program.
line.
2. Requires less main memory. 2. Requires more main memory.
3. Each time the program is 3. Converts the entire program to
executed every line is checked for machine code, when all the
syntax and then converted to syntax errors are removed and
equivalent object code directly. executes the machine code.
Text editor:
▪ An editor is a software that allows us to create a text file where we type instructions
and store the file as the source code.
▪ In order to simplify the program development, there are software called Integrated
Development Environment (IDE) consisting of text editor, building tools and debugger.
▪ A program can be typed, compiled and debugged from the IDE directly.
▪ Python IDLE, Netbeans, Eclipse, Atom, Lazarus are few other examples of IDEs.
Debugger: Debugger is the software to detect and correct errors in the source code.
Free and Open Source Software:
Free and Open-Source Software means software is freely accessible. It can be freely used,
modify, copied, improved and distributed without any payments.
Freeware:
Freeware software is available free of cost and which allows copying and further
distribution, but not modification and whose source code is not available.
Example:
✓ Skype,
✓ Adobe Reader, etc.
Proprietary Software
▪ Proprietary Software use is regulated and further distribution and modification is either
forbidden or requires special permission by the supplier or vendor.
▪ Source code of proprietary software is normally not available.
▪ Example:
✓ Microsoft Windows,
✓ Tally,
✓ Quickheal, etc.
Operating system: