Computer Science
Computer Science
“Computers are incredibly fast, accurate and stupid: humans are incredibly slow, inaccurate and brilliant:
together they are powerful beyond imagination. ” – Albert Einstein
What is computer?
A computer is an electronic device that performs a function based on given set of instructions called a program.
Programs enable computers to perform an extremely wide range of tasks. Without the program they cannot do
anything. A computer accepts data, processes it and produces information.
The process of turning data into information to increase their usefulness and adding values for particular
purpose is known as data processing.
o Speed: - computers can carry out millions of instructions per second. The speed of computer is denoted
as nanosecond and picosecond.
o Accuracy: computers work at a very high speed without losing accuracy.
o Versatility: computers can do different types of tasks efficiently.
o Storage capacity computers have the ability to store data and programs.
Evolution of computer: -
Pascal’s machine: Blaise Pascal | 1642 | add & subtract, multiply through repeated
addition/subtraction.
Jacquard’s Loom: Joseph Jacquard | 1801 | multiplication & division use of punch card.
Babbage Diff. Engine: Charles Babbage |1833 | all your arithmetic operations.
Hollerith’s Machine: Herman Hollerith | 1887 | used punched card for storage.
They use vacuum tubes for circuitry and magnetic drums for storage.
They were larger in size as the size of the room.
They were very expensive and used only in scientific purposes.
It can be programmed in machine languages.
It is consist of only 0s and 1s.
They can solve one problem at a time.
Input was fed using punched cards and paper taps and output was generated as printouts.
Limitations of computers:
The computer system does not have the power to take decisions on their own because they do the
process all essentials of making. They can program to make decisions. They are programmed to complete each
and every task. They can do any type of task; all that is requires is the right program to do it.
Input Unit:
The input unit consists of input devices that are attached to the computer. Examples: keyboards, mouse, etc.
Output Unit:
The output unit consists of the output devices attached to the computer. Examples: monitor, `CPU, etc.
The CPU is the brain of the computer system. All calculation and comparisons are made inside the CPU and the
CPU is also responsible for activating and controlling the operating of other units of a computer system.
Arithmetic and Logic Unit (ALU): The ALU does arithmetic calculation and takes logical decisions. Some
of the operation of the arithmetic are (+, -, x, /) and logical (<, >, =,<=, >=) operations.
Control Unit: the control unit of a computer system manages and coordinates the operations of all the
other components of the computer system.
Types of memory:
1. Internal memory: all computers have internal memory to store programs and data while the
computer is running.
It has two different types of memory:
RAM (Random Access Memory): It holds data, programs and instructions for
computer. The CPU can access data directly from RAM almost immediately. It is also
called read/write memory. It is a volatile memory.
ROM (Read Only Memory): Information once stored remains fixed, it cannot be
changed. It can be only read and used. It is a non-volatile memory. E.g, PROM, etc.
2. External Memory: it is a permanent storage for data and programs for later use. It is a non-
volatile memory. It can store large amount of data.
Some of the secondary memory devices are:
Floppy disks: It is a flexible disk with a magnetic coating in. it is one of the oldest types
of portable storage device. Now it is not in use because of its less storage capacity.
Hard disks: It is a set of disks known as platters, each with its own read/write head. It is
coated with a magnetic material and stacked with space between them. Data is recorded
on the surface of the disks magnetically.
Blue-ray disks: it is similar to a CD or DVD but can store up-to 17GB of data.
Hardware: it represents to the physical components of a computer system. It can seem or touched. Input
devices, Output devices, etc. are some examples of hardware.
Software: it represents the set of programs that directs the computer hoe to work. It is a set instruction to
perform a specific task. Without this hardware cannot do anything on its own. It is written by programmers
using programming languages.
1. System software.
2. Application software.
System software: it is set of programs designed to operate hardware and control the internal operations
of a computer. It makes a platform to run application software. Examples: Utilities, operating system,
etc.
Application software: it is set of programs developed to carry out complete operations for a specific
purpose. Those programs are written by the programmer in programming languages to perform a
specific task. For example: payroll processing software and many more.