Study Material for Computer Basic
Study Material for Computer Basic
1. Introduction
What is Computer?
Characteristic of computer:
The characteristics of computers that have made them so powerful and universally
useful are speed, accuracy, diligence, versatility and storage capacity. Let us
discuss them briefly.
Speed
Computers work at an incredible speed. A powerful computer is capable of
performing about 3-4 million simple instructions per second.
Accuracy
In addition to being fast, computers are also accurate. Errors that may occur can
almost always be attributed to human error (inaccurate data, poorly designed
system or faulty instructions/programs written by the programmer)
Diligence
Unlike human beings, computers are highly consistent. They do not suffer from
human traits of boredom and tiredness resulting in lack of concentration. Computers,
therefore, are better than human beings in performing voluminous and repetitive
jobs.
Versatility
Computers are versatile machines and are capable of performing any task as long
as it can be broken down into a series of logical steps. The presence of computers
can be seen in almost every sphere – Railway/Air reservation, Banks, Hotels,
Weather forecasting and many more.
Storage Capacity
Today‟s computers can store large volumes of data. A piece of information once record
(or stored) in the computer, can never be forgotten and can be retrieved almost
instantaneously.
Evolution of computer
The Early years (Chinese Abacus)
The first counting device was the abacus, originally from Asia. It worked on a place-value notion
meaning that the place of a bead or rock on the apparatus determined how much it was worth.
Pascaline (1642)
Blaise Pascal invented the mechanical calculator called Pascaline. This calculating machine
could add and subtract two numbers directly and multiply and divide by repetition.
Charles P. Babbage, the “father of the computer”, designed a machine, the difference engine
which would be stream-powered, fully automatic and commanded by a fixed instruction
program.
Ada Lovelace, world’s first computer programmer, provided the first algorithm intended to be
processed by Charles Babbage’s early mechanical general-purpose computer, the Analytical
Engine.
She suggested that a binary system should be used for storage rather than a decimal system.
George Boole developed Boolean logic which would later be used in the design of computer
circuitry.
British mathematician Alan Turing developed a hypothetical device, the Turing machine which
would be designed to perform logical operation and could read and write.
Harvard Mark I
Howard Aiken, in collaboration with engineers from IBM, constructed a large automatic digital
sequence-controlled computer called the Harvard Mark I. This computer could handle all four
arithmetic operations, and had special built-in programs for logarithms and trigonometric
functions.
ENIAC
The giant ENIAC (Electrical numerical Integrator and Calculator) machine was developed by
John W.Mauchly and J. Presper Eckert, Jr. At the university of Pennsylvania. It used 18,000
vacuums, Punch-card input, Weighed thirty tons and occupied a thirty-by-fifty-foot space.
The operating system such as Windows 7,8,10 or Linux, is the basic application of a
computer. It is a system‟s application that allows the computer and other application
software to function
a. Input Unit: This unit is used for entering data and programs into the computer
system by the user for processing.
b. Storage Unit: The storage unit is used for storing data and instructions before and
after processing.
– – – –Dotted lines (– – – –) indicate
flow of instruction solid lines
(–––––) indicate flow of data
c. Output Unit: The output unit is used for storing the result as output produced by the
computer after processing.
d. Processing: The task of performing operations like arithmetic and logical operations
is called processing. The Central Processing Unit (CPU) takes data and instructions
from the storage unit and makes all sorts of calculations based on the instructions given
and the type of data provided. It is then sent back to the storage unit. CPU includes
Arithmetic logic unit (ALU) and control unit (CU)
Control Unit(cu): Controlling of all operations like input, processing and output
are performed by control unit. It takes care of step by step processing of all
operations inside the computer.
1.2.2 Memory
Computer‟s memory can be classified into two types; primary
memory and secondary memory
a. Primary Memory can be further classified as RAM and
ROM.
RAM or Random Access Memory is the unit in a computer system. It is the place
in a computer where the operating system, application programs and the data in
current use are kept temporarily so that they can be accessed by the computer‟s
processor. It is said to be „volatile‟ since its contents are accessible only as long
as the computer is on. The contents of RAM are no more available once the
computer is turned off.
ROM or Read Only Memory is a special type of memory which can only be read and
contents of which are not lost even when the computer is switched off. It typically
contains manufacturer‟s instructions. Among other things, ROM also stores an initial
program called the „bootstrap loader‟ whose function is to start the operation of
computer system once the power is turned on.
b. Secondary Memory
Hard Disk
Hard disks are made up of rigid material and are usually a stack of metal disks sealed in
a box. The hard disk and the hard disk drive exist together as a unit and is a permanent
part of the computer where data and programs are saved. These disks have storage
capacities ranging from 1GB to 80 GB and more. Hard disks are rewritable.
Compact Disk
Compact Disk (CD) is portable disk having data storage capacity between 650-700 MB.
It can hold large amount of information such as music, full-motion videos, and text etc.
CDs can be either read only or read write type.
Digital Video Disk (DVD) is similar to a CD but has larger storage capacity and
enormous clarity. Depending upon the disk type it can store several Gigabytes of data.
DVDs are primarily used to store music or movies and can be played back on your
television or the computer too. These are not rewritable.
a) Input Devices
An input device is any device that provides input to a computer. There are many input
devices, but the two most common ones are a keyboard and mouse. Every key you
press on the keyboard and every movement or click you make with the mouse sends a
specific input signal to the computer.
Keyboard: The keyboard is very much like a standard typewriter keyboard with a
few additional keys. The basic QWERTY layout of characters is maintained to
make it easy to use the system. The additional keys are included to perform
certain special functions. These are known as function keys that vary in number
from keyboard to keyboard.
Mouse: A device that controls the movement of the cursor or pointer on a display
screen. A mouse is a small object you can roll along a hard and flat surface (Fig.
1.5). Its name is derived from its shape, which looks a bit like a mouse. As you
move the mouse, the pointer on the display screen moves in the same direction.
Optical mark recognition (OMR): Optical mark recognition, also called mark
sense reader is a technology where an OMR device senses the presence or
absence of a mark, such as pencil mark. OMR is widely used in tests such as
aptitude test.
Bar code reader: Bar-code readers are photoelectric scanners that read the bar
codes or vertical zebra strips marks, printed on product containers. These
devices are generally used in super markets, bookshops etc.
Scanner: Scanner is an input device that can read text or illustration printed on
paper and translates the information into a form that the computer can use. A
scanner works by digitizing an image.
b. Output Devices:
Output device receives information from the CPU and presents it to the user in the
desired from. The processed data, stored in the memory of the computer is sent to the
output unit, which then converts it into a form that can be understood by the user. The
output is usually produced in one of the two ways – on the display device, or on paper
(hard copy).
Monitor: is often used synonymously with “computer screen” or “display.”
Monitor is an output device that resembles the television screen (fig. 1.8). It may
use a Cathode Ray Tube (CRT) to display information. The monitor is associated
with a keyboard for manual input of characters and displays the information as it
is keyed in. It also displays the program or application output. Like the television,
monitors are also available in different sizes.
Facsimile (FAX): Facsimile machine, a device that can send or receive pictures
and text over a telephone line. Fax machines work by digitizing an image.
Computer software is the set of programs that makes the hardware perform a set of
tasks in particular order. Hardware and software are complimentary to each other. Both
have to work together to produce meaningful results. Computer software is classified
into two broad categories; system software and application software.
Software that can perform a specific task for the user, such as word processing,
accounting, budgeting or payroll, fall under the category of application software. Word
processors, spreadsheets, database management systems are all examples of general
purpose application software.
Spread sheet software: The spread sheet software is used to maintain budget,
financial statements, grade sheets, and sales records. The purpose of this
software is organizing numbers. It also allows the users to perform simple or
complex calculations on the numbers entered in rows and columns. MS-Excel is
one of the example of spreadsheet software.
Multimedia software: Media players and real players are the examples of
multimedia software. This software will allow the user to create audio and videos.
The different forms of multimedia software are audio converters, players,
burners, video encoders and decoders.
on the basis of the usage of data (i.e., discrete or continuous) computers can be
classified as:
Analog computer: An analog computer (spelt analogue in British English) is a
form of computer that uses continuous physical phenomena such as electrical,
mechanical, or hydraulic quantities to model the problem being solved.
Super Computer
The fastest and most powerful type of computer Supercomputers are very expensive
and are employed for specialized applications that require immense amounts of
mathematical calculations. For example, weather forecasting requires a supercomputer.
Other uses of supercomputers include animated graphics, fluid dynamic calculations,
nuclear energy research, and petroleum exploration.
The chief difference between a supercomputer and a mainframe is that a
supercomputer channels all its power into executing a few programs as fast as possible,
whereas a mainframe uses its power to execute many programs concurrently.
Mainframe Computer
A very large and expensive computer capable of supporting hundred, or even
thousands, of users simultaneously. In the hierarchy that starts with a
simple microprocessor (in watches, for example) at the bottom and moves to
supercomputers at the top, mainframes are just below supercomputers. In some ways,
mainframes are more powerful than supercomputers because they support more
simultaneous programs. But supercomputers can execute a single program faster than
a mainframe.
Mini Computer
A midsized computer.In size and power, minicomputers lie between
workstations and mainframes. In the past decade, the distinction between large
minicomputers and small mainframes has blurred, however, as has the distinction
between small minicomputers and workstations. But in general, a minicomputer is a
multiprocessing system capable of supporting from 4 to about 200 users
simultaneously.
Definition of Data
Data is distinct pieces of information, usually formatted in a special way. All software
is divided into two general categories: data and programs. Programs are
collections of instructions for manipulating data.
Data can exist in a variety of forms -- as numbers or text on pieces of paper, as bits
and bytes stored in electronic memory, or as facts stored in a person's mind. Strictly
speaking, data is the plural of datum, a single piece of information. In practice,
however, people use data as both the singular and plural form of the word.
Basic data types
Integer: In more common parlance, whole number; a number that has no fractional
part.
Floating-point: A number with a decimal point. For example, 3 is an integer, but 3.5
is a floating-point number.
Character (text): Readable text
OPERATING SYSTEM
Number system
Decimal to binary
(24)10=(11000 )2
binary to decimal
(11000)2=( 24 )10
Octal to binary
(234)
COMPUTER LANGUAGE
1. Machine Language
Machine language or machine code is the native language directly understood by the
computer‟s central processing unit or CPU. This type of computer language is not easy
to understand, as it only uses a binary system, an element of notations containing only
a series of numbers consisting of one and zero, to produce commands.
These are the programs that execute instructions written in a high-level language. There
are two ways to run programs written in a high-level language. The most common is to
compile the program; the other method is to pass the program through an interpreter.
a. Compiler
A compiler is a special program that processes statements written in a particular
programming language called as source code and converts them into machine
language or “machine code” that a computer‟s processor uses.
b. Interpreter
An interpreter translates high-level instructions into an intermediate form, which it then
executes. Compiled programs generally run faster than interpreted programs