Computer Science (SSC) Notes
Computer Science (SSC) Notes
By
Inqilab R. Patel
MCS
Computer-X1: By Inqilab Patel. http://inqilab.ruknuddin.com
Introduction to Computer
Chapter No 1
Q. No. 1) Define Computer.
Computer:-
The word computer is derived from a word “Compute” which means “to
calculate”. Computer may be defined as:
“A computer is an electronic data processing machine that accepts data and
instructions (programs) as input, processes the data according to given instructions and
produces information as output.”
Computer can also be defined as:
“A computer is an electronic data processing machine, which works under control
of stored programs, accepts the data, processes the data according to instructions
(programs) and gives information (result).”
Q. No. 2) Write down the differences between Hardware and Software.
Ans.: The Differences Between Hardware & Software:-
Hardware and software are two different terms. The major differences between Hardware
and Software are given below:
S Hardware Software
No
1 Definition “The physical components of “The programs and data given to
computers are called computer are called software.”
Hardware.”
2 We can see and touch and see Software make computer
the hardware (parts of useable but we cannot touch
computers). software
3 Examples Keyboard, mouse, CPU, DOS, Windows, MS Office,
printer, monitor, speakers, Virus, Antivirus are examples of
cables, graphic cards, USB Software.
drives are examples of
Hardware.
3. Accuracy:-
A computer processes the data with high-accuracy.
4. Logical Operations:-
The computer can make decisions if it is provided some conditions and their
alternatives.
6. Self-Checking:-
The computer verifies the accuracy of its own work by means of a parity check.
7. Self-Operating:-
Computer can execute the instruction on its own without human intervention, if
the data and programs are fed into computer memory.
Limitations of Computer:-
Though a computer is a very efficient device but there are some limitations of this
device. Some of them are given below:
S. No Data Information
1 Data is set of facts and figures required Information is the result of processing.
to solve a problem.
2 Data is unprocessed Information Information is processed data.
3 Data is input for computer. Information is output for computer.
4 For Example
Obtained marks and Maximum marks Percentage, grade and result calculated are
are data examples of Information
Computer is a fast growing technology. At the early age people used pebbles, stones, sticks,
scratches, symbols and finger tips to count, which were later replaced by numbers. Since
then computers are developed continuously.
The history of computing is divided into three ages during which man invented and
improved different types of calculating machines. These ages are,
ABACUS
About 3000 years BC, Chinese developed the first calculating machine named Abacus or
Soroban.
Abacus consists of a rectangular wooden frame having rods which carry round beads.
Counting is done by shifting the beads from one side to another.
PASCAL’S CALCULATOR
Blasé Pascal (1623-1662), a French developed the first mechanical calculating machine in
1642. This machine consists of gears, wheels and dials. It was capable of adding and
subtracting operations.
JACQUARD’S LOOM
In 1801, a French, Joseph Marie Jacquard developed the first punch card machine.
In 1880s Herman Hollerith an American developed a machine which used punch card
system. The machine could sense and punch holes, recognize the number and make required
calculations. This machine was first used in 1890s by American Census Bureau.
Mark–1:-
In 1937, Professor Howard Aiken build the first digital computer Mark-1, by trying to
combine Babbage’s theory and Hollerith’s punching technologies. He completed his project
in 1944 with the help of IBM Engineers.
ABC a special purpose computer was developed in 1938 by Dr. John Vincent Atanasoff and
Clifford Berry at Iowa State College, USA.
Duration 1940-56
Duration 1956- 63
Major invention Transistors
Major device Magnetic Media
Language Assembly Language
High Level Languages (earlier versions)
Examples UNIVAC III, International Business Machines (IBM 1401)
Duration 1964-71
Major invention Integrated Circuits (ICs)
Major device Keyboard, Monitors, Magnetic storage
Language High Level Languages like BASIC, COBOL, Pascal, Fortran, RPG
etc.
Examples Intel 4004, IBM 360, DEL, PDP-8
IBM introduced computer for home user in 1981 while in 1984 Apple introduced
Macintosh.
Computers connected with each other with LAN and Internet. GUI (Graphical User
Interface) are developed. Floppy disk, hard disk, CDs and mouse are developed.
Duration 1971-Present
Major invention Microprocessor
Major device Advanced magnetic storage,
Hard disk, floppy disk, CDs
and Mouse
Major Software GUI, Word processors,
Spreadsheet, File handling,
Graphics
Examples AT & XT computers, 386,
486, PI, PII, PIII, PIV etc.,
Apple II
Fifth Generation: (Present-Beyond)
Now the technology is diverging towards Artificial Intelligence (AI) and Expert System
(ES). The parallel processing and superconductors are helping in bringing Artificial Intelligence
(AI) into reality. Scientists are trying to develop computers which can respond to natural
language.
Generation Table:
The generation table is given below:
1st Generation 2nd Generation 3rd Generation 4th Generation 5th Generation
Duration 1940-56 1956- 63 1964-71 1971-Present Present –
Beyond
Major Vacuum tubes Transistors Integrated Microprocessor Artificial
invention Circuits (ICs) Intelligence and
Expert System
Major Punching card Magnetic Keyboard, Advanced Quantum
device Media Monitors, magnetic computation and
Magnetic storage, Hard molecular and
Types of Computer:-
Computers are divided into many types on basis of:
a) Purpose
b) Data Handled
c) Capacity
According to type of data handled computers are divided into following three types:
1) Analog Computer:
“Computers which work on continuous form of data and gives continuous form of
output are called Analog Computers.”
Word analog is derived from a word analogous means similar. Analog
computers operate numbers representing continuously changing measurable quantities like
temperature, speed, pressure, voltage etc.
Examples:
Speedometer, voltmeter, thermometer, stop watch etc.
2) Digital Computers:-
“A computer which works on discrete type of data is called Digital Computers.”
Digital computers operate binary data consists on 0s and 1s which are discrete in nature.
They are more popular than analog computers due to cost, data integrity, utilization,
integration of data, fast speed and accurate result.
Examples:
Calculator and micro computer etc.
3) Hybrid Computers:
“A computer in which both analog and digital devices are combined is called Hybrid
Computer.”
In hybrid computers the digital and analog devices are connected in such a way that data can
be transformed between them. The digital unit is able to control the analog unit by means of
instructions given to it.
In computerised machines instructions are given to digital part in digital form which controls
the working of machine.
Examples:
Electronic petrol pumps, digital meters, and all types of computerised machinery.
They are very sophisticated machines. Speed of super computer is 50 million operations per
second. They are used to model a very dynamic system such as weather patterns, weather
fore-casting, satellite tracking and cold-testing of atomic and nuclear weapons.
2) Mainframe Computers:
Mainframe computers are the largest general purpose computers having hundreds terminals
connected to them.
A terminal consists of a keyboard and a monitor. Mainframe computers provide multi-user
environment so hundreds of operators can operate a single mainframe computer simultaneously a
time. That’s why used in big organisations involving thousands of customers, employees and
transactions like banks NADRA, governments departments, Yahoo etc.
Mainframe computers are very expensive so only big organisations purchase them.
3) Mini-Computers:
Mini- computers very powerful and have all the facilities of mainframe computers but they
are smaller and slower than mainframe computers. They are cheaper than mainframe computers
so small companies can purchase them.
Mini-computers also create multi-user environment but 4 to 200 terminals can be attached
them.
DEC VAX and IBM AS/400 are common examples of mini-computers.
4) Microcomputers:
Microcomputers are the smallest computers which creates single user environment so as only
on user can operate it at a time.
They are also called SINGLE-CHIP PROCESSOR or a SYSTEM-ON-A-CHIP. They are the
cheapest computer so individuals can purchase them and use for word processing, graphic
designing, accounting, record keeping (database), playing games and communicating on internet.
Programming Language:
“A set of rules that provide a way of telling computer what operation to perform is called
a Programming Language.”
Computer needs instructions to perform a task. Program is set of step by step instruction
which directs computer to do the task and to produce results. There are some rules and
regulations to write programs and these rules and regulations are programming languages.
Different types of programming languages are given below:
0001001011110101010011110101010100
0100110000111110101010111100011110
0010101010100101000011111010101011
1101010001111101010111011001001100
00101010010101010111110111111
Source Code:
''A program written in any language except the machine language is called Source Code.''
Programmers can write programs in Machine Language, Assembly Language and High
Level Languages like COBOL, PASCAL, and GWBASIC etc. The programs, written in
Assembly Language or any High Level Language are called Source Code.
Object Code:
Language Translator:
''Language Translators are programs that convert or translate the instructions in Assembly
Language or High Level Language i.e. source code into instructions of machine language i.e.
object codes are called Language Translators.''
Computer can understand only machine language. Programs written in Assembly
Language and High Level Language are translated into Machine Language so as computer
can understand execute them.
Assembler:-
''Assembler is a language translator that translates source program written in Assembly
Language into object code in machine language.''
Computer can understand only machine language. Assemblers translate programs written
in Assembly Language into Machine Language so as computer can understand execute them.
Assembly Machine
Language Assembler Language
Source Code Object Code
Interpreter:-
''An interpreter is a language translator that translates source program written in High
Level Language into object code in machine language during step by step execution of program.''
Compilers translate all instructions before executions. The object code is saved as object
file, which is executable. Object files don't need compiler or language for execution.
Drawbacks of Internet:-
2. Messages sent across the internet can easily be interrupted and are open
to abuse by others.
3. Message sent ac
Computer Components
Chapter No 2
Functions of CPU:
Interprets the data and instructions.
Generates control signals.
Performs arithmetic & logical operations.
Produces the address bits needed by memory.
Components of CPU:
Typical components of CPU are given below:
1. Arithmetic & Logical Units
2. Memory Unit
3. Registers
2. Control Unit:
CU is the main part of CPU which manages all the resources of CPU. It is like a traffic
cop directing flow of data.
The functions of CU are given below:
Interprets and carries out instruction of program.
Selects program statements from memory.
Moves these instructions to instruction registers
Carries out instructions
Directs flow of data between components of CPU and to and from other devices.
3. Registers:
Registers are high speed volatile or temporary memory built in CPU.
Data currently being processed is stored in registers. There are 14 basic registers shared
by ALU and CU.
MOTHERBOARD
CPU
CONTROL ARITHMETIC
UNIT (CU) & LOGICAL
UNIT (ALU)
REGISTER
PRIMARY MEMORY
INPUT OUTPUT
RAM ROM
SECONDARY
STORAGE
Data Bus
Control Bus
Address Bus
Memory Unit:-
''Memory is the storage device inside computer where data, information and instruction
reside.''
Memory is divided into two groups Internal Memory and External Memory.
Internal Memory:
The internal memory is situated at the motherboard near CPU so data travels quickly
between memory unit and CPU.
Internal memory is also called Primary Storage or Main Memory. There are two basic
types of internal memory:
ROM:
ROM (Read Only Memory) is firmware as data and instructions are stored in it by
manufacturer.
ROM contains the computer's essential programs that are necessary to start up the
computer.
User can only use it but cannot change or erase it. BIOS of motherboard is an example of
ROM. It is non-volatile or permanent memory as it retains data even when the computer is
turned off.
RAM:
RAM (Random Access Memory) is working space which holds program that is currently
running and the data needed by the program.
RAM is users' memory as user can read and write in it. It is volatile or permanenty as its
contents are lost when computer is turned off.
External Memory:
The external memory are storage devices which are physically separated but connected to
the motherboard.
Hard disk, floppy disk, magnetic tape, and CD-ROMs are external memory. They are
also called Secondary Storage or Auxiliary Devices. CPU cannot directly access external
memory. The contents of external memory are firstly copied in RAM and then CPU accesses
them.
External memory is non-volatile or permanent memory as it retains data even when the
computer is turned off. It is the slowest and the cheapest form of memory.
As a wire transmits a single bit so 8-bits bus can transfer 8 bits (1 byte) at a time and 16-
bits bus can transfer 16 bits (2 bytes) and so on.
There are three types of buses according to three types of signals, these are:
a) Data Bus
b) Control Bus
c) Address Bus
a) Data Bus:
''The buses which are used to transmit data between CPU, memory and peripherals are
called Data Bus.''
b) Control Bus:
''The buses which are used to transmit control information between CPU and other
devices are called Control Buses.''
The control bus transmits the status report signals of different devices for example either
CPU is reading memory or writing.
c) Address Bus:
''The buses which are connecting the CPU with main memory and used to identify
particular locations (address) in main memory where data is stored are called Address
Buses.''
Address Buses transmit the address of memory location from which CPU will read or to
which CPU will write.
Q. No. 4) Define Ports or Interfaces. Compare and contrast Serial Ports and
Parallel Ports.
Ports:-
“The sockets, at the back of computer, which are used to attach different devices with
computer are called Ports or Interfaces.”
Basically ports are used to plug-in various peripherals with motherboard. There are some
internal ports, used to attach disk drives etc. and some external ports, used to connect printers,
scanners etc.
Ports are divided into following two types:
1) Serial Ports
2) Parallel Ports
1) Serial Ports:
“A port with which data bits are transmitted one at a time through a single wire is called
Serial Port.”
A serial port has 9 or 25 pins and also called male connector. It is general purpose, and can
be used for any device like mouse, printers etc.
2) Parallel Ports:
“A port which is connection of eight or more wires through which 8 or more data bits can
flow simultaneously is called Parallel Port.”
A parallel has 25 holes and is also called female connector. There may be 8, 16 or 32 wires.
Each wire carry one bit of data, so eight wires can carry 8 bits at a time.
A parallel port can handle higher volume of data than serial port.
Monitors, most printers, extra C ROMs are attached at parallel port.
Input/Output Devices
Chapter No 3
Examples:
Keyboard, mouse, track ball, joystick, scanner, microphone and digital camera are
examples of input devices.
4) Output Devices:
“The physical equipments, which are used to obtain information (results of processing)
from computer.”
CPU produces information or results of processing in the form of electronic impulses.
Output devices translate these impulses in human understandable form. It may be softcopy
(screen or speaker output) or Hardcopy (printed version).
Examples:
Monitor, printer, plotter, speaker etc.
b) Numeric keypad:
“The part of keyboard which is like a simple calculator is called Numeric Keypad.”
This part has numerical keys from 0 to 9 and decimal (.) point, operator keys of +, -, *
and / and Num Lock key.
On deactivating Num Lock key the Numeric Keypad performs functions of Editing and
Screen Navigation Keypad.
d) Function Keypad:
“The keypad which is used to input commands without typing long statements and to
activate different menus or dialog boxes is called Function Keypad.”
There 12 function keys from F1 to F12. Different function keys have different functions
in different programs. Usually F1 is a help key in most programs.
e) Modifier Keypad:
“The keypad which is used to modify input of other keys is called Modifier Keypad.”
Shift, Alt and Control are modifier keys. Users press other keys while holding down
modifier keys to perform a task. For example S key is pressed while holding down Ctrl key to
save document.
The casing of mouse has sensors. When mouse is moved on a surface sensors send
impulses to the CPU which moves moue pointer on screen.
Q. No 7) Describe microphones?
Microphone:-
“A microphone is an audio input device.”
It is like a common microphone connected with CPU.
Microphones are used in voice recognition systems in which voice commands can be
given to computer. The are also used as mouth piece of telephone in making calls from
computer. They are also used in video and audio conferences on internet.
computer. The images can be edited, deleted and printed. It has made photography less
expensive.
Screen Size:
The screen size of monitor is measured in diagonal inches i.e. the distance from one
corner to other diagonal corner. A typical size of monitor is 14 inches. A monitor that is 16 or
more inches diagonally is called full-page monitors. A monitor may be portrait (height greater
than width) or landscape (width greater than height).
Types of Monitor:
1) CRT Monitors: They have a large vacuum tube called Cathode Ray Tube like TV.
2) Flat-Panel Monitors: These monitors create images with a special kind of liquid
crystals that when charged with electricity become opaque to display images. That’s
why they are also called Liquid Crystal Display (LCD). They are commonly used in
portable computers.
3) Colour Monitors: They can display from 16 to more than 1 million different colours.
They generate text and graphics with the help of three basic colours, red, green &
blue that’s why they are also called RGB.
Qualities of Monitors:
The factors which determine the quality of monitors are given below:
Resolution of Monitors:
The degree of sharpness of image determined by the number of pixels on screen is called
Resolution.
The image of higher resolution monitors is sharper.
Bandwidth of Monitors:
“The amount of signal frequencies that a monitor can handle is called Bandwidth.”
Bandwidth determines how much data can be processed therefore how cast it can refresh
at higher resolutions.
Convergence of Monitors:
“The clarity and the sharpness of each pixel is called Convergence.”
1) Impact Printers:
“A printer which prints by using pins or head to press inked ribbon against paper is called
Impact Printer.”
Impact printers are noisier than other printers.
Daisy-wheel, dot matrix and line printers are examples of impact printers
Daisy-wheel Printer:
A daisy-wheel printer has a spinning, metallic or plastic wheel with character embossed
around its edges.
Daisy wheel moves across page and rotate to bring required character into position. To
print a hammer presses the character of daisy-wheel against inked ribbon which in turn
makes an ink stain on paper.
Daisy-wheel printers produce letter-quality print but cannot generate graphics.
Dot-matrix Printer:
A dot-matrix printer has a cluster or matrix of pins arranged one or more columns.
A dot-matrix printer prints by striking pins against inked ribbon, which in turn
makes a dot on paper. The combination of dots form characters and graphics.
Line Printer:
A Line printer has a chain of characters or pins that print an entire line at a time.
Line printers are very fast. They produce low quality output.
A Chain Printer is a line printer in which a set of embossed metallic characters are
attached with a chain.
2) Non-impact Printers:
“A printer which does not strike paper but uses others means to print is called
Non-impact Printer.”
They are quiet printers as they produce very low noise.
Ink-jet Printer, Laser Printer, LCD & LED and Thermal Printers are examples of non-
impact printer.
Ink-Jet Printer:
Ink-jet printer uses tiny nozzles to spray droplets of ink onto the page.
Ink-jet printers produce high-quality text and graphics.
Laser-Jet Printer:
Laser printer uses heat to bond microscopic particles of toner to specific parts of he paper
like photocopiers.
LCD & LED printers produce a very high quality text and graphics.
Thermal Printer:
Thermal printer prints by pushing heated pins against heat-sensitive paper.
They are cheap and used calculators and fax machines.
Characteristics of Printers:
Printers are classified by the following characteristics:
a) Print Quality:
The print quality are called letter quality (like typewriters), near letter quality and draft
quality.
Daisy-wheel, ink-jet and laser printers produce letter quality output. Dot matrix printers
produce near letter quality and draft quality output.
b) Resolution:
The image quality (sharpness) is known as Resolution.
Resolution is measured in Dot Per Inch (DPI).
Ink-jet and laser printers print 300 or 600 dots per inch.
c) Speed:
Printer speed is measured in characters per second (cps) or pages per minute (ppm) the
printer can print.
Speed of daisy-wheel is up to 30 cps. Line printers are fastest as they print up to 3000
lines per minute. Dot-matrix printers print up to 500 cps. Laser printers print 4 to 20 pages per
minute.
d) Graphics:
Daisy-wheel printers print only text while dot-matrix, ink-jet and laser printers print text
and graphics both.
e) Fonts:
Dot-matrix and some other printers are limited to one or few printers. Laser and ink-jet
printers can print unlimited range of fonts.
f) Colours:
Colour printers can produce a colourful output. They have two cartridges one black and
one colour. They are usually very expensive.
Plotter:
“A plotter is an output device used to print using pen on paper output (hard copy)
generated by CPU.”
Plotters are used in engineering applications to draw maps, graphs, and drawings of
machine components. Plotters draw lines with the help of pens. Plotters draw continuous lines.
Multicolour plotters use different-coloured pens.
Plotters are divided into two basic types:
3) Pen Plotter
4) Electrostatic Plotter
3) Pen Plotter:
Pen plotters have a ink pen attached to draw graphics.
Pen Plotters are further divided in following types:
Drum Plotter
Flatbed Plotters
Drum Plotters: In drum plotter paper is mounted on a drum, while pen is moved in a
single axis track.
The width of graphics is limited by width and can be of any length.
Flatbed Plotters: In flatbed plotter page is fixed on a flat surface and pens are move over
whole page to draw.
The width and height are limited by size of plotter’s bed.
4) Electrostatic Plotter:
Electrostatic plotters paper is charged with high voltage which attracts toner. The toner is
then melted to the paper with heat.
They are fast but generate less quality graphics when compare to pen plotters.
1) Disk Drive:
Disk drives read and write data and information on disks like hard disks and also called
storage devices.
Disk drives have a motor to rotate the disk and read/write heads, which are positioned
over desired track.
As an input device, disk drive reads data from disk while as output device disk drive
write data on disk.
The redial motion of head is called “Seeking”. The set of locations which are accessible
with the heads in a given radial position is called “Cylinder”. The Seek Time” is the time taken
to seek a different cylinder. The disk is continuously rotating and the heads move backward and
forward until desired location is found.
2) CD Writer:
CD Writer is a dual purpose device used to write data and information on CD-R and CD
RW discs and read data and information from them.
CD-R discs are once writable while CD-RW discs are rewritable and erasable.
Q. No. 14) Write down differences between Hard Copy and Soft Copy.
Softcopy:-
“A machine-readable form of corresponding hardcopy is called softcopy.”
Softcopy is screen output of document. It is intangible and temporary.
Hardcopy:
“A print-out on paper of document is called Hardcopy.”
Hardcopy is printer version of document. It is tangible and permanent.
Storage Devices
Chapter No 4
i. PROM:
“A ROM in which programs can be stored by user once is called Programmable ROM.”
Data store in PROM cannot be then erased of changed as it is also non-volatile.
ii. EPROM:
“A special type of PROM in which programs can be stored and can be erased by
exposing it to ultraviolet rays is called EPROM.”
After that it can be reused.
iii. EEPROM:
“A special type of PROM in which programs can be stored and can be erased by
exposing it to an electrical charge. Is called EEPROM.”
After that it can be reused.
RAM (Random Access Memory) is working space which holds program that is currently
running and the data needed by the program.
RAM is users' memory as user can read and write in it. It is volatile or temporary as its
contents are lost when computer is turned off. It is fastest but most expensive.
i. Dynamic RAM:
DRAM needs to be refreshed thousands of times per second. It is the most common type
of RAM.
The memory chips on DIMM are DRAMs (dynamic RAMs) or Synchronous DRAM
(SDRAM). SDRAM are improved form of RAM.
DIMMs has 168-pin connector and supports 64-bit data transfer. So single DIMM can be
installed in computer.
Units of Memory:
Computer memory is measured in Bytes. Each byte consists of 8 bits. Each bit is capable
of storing either 0 or 1.
The smallest unit of memory is bit but the smallest accessible unit of memory is Byte.
A group of 4 bits is called Nibble. Two nibbles form 1 byte.
Floppy disk is a non-volatile secondary storage device. Floppy disk is made up of metal
oxide compound coated polyester film. It is like a 45 rpm phonogram record but it is enclosed in
a square jacket. They are flexible they may be single sided and double sided. Computer reads
floppy disk with the help of disk drives.
The formats of IBM PCs compatible floppy diskettes are given below:
Name Side Density Width Capacity
2DSD Double Side Double Density 5.25” 360 KB
2DHD Double Side High Density 5.25” 1.2 MB
2DSD Double Side Double Density 3.4” 720 KB
2DHD Double Side High Density 3.4” 1.44 MB
Hard Disk:
“A Hard disk is a small fixed and hard magnetic secondary storage device.”
A hard disk is less portable. Its capacity is much more than floppy disk i.e.
up to 80 GB. It is also faster.
It is a set of stacked disks. Their diameter is about 3.5”. The surface of each disk is
divided into a number of evenly spaced concentric circular tracks. The tracks which can be
accessed with moving head are called cylinder. Each track is divided into sectors. Data is electro-
magnetically recorded on tracks. Each disk is double sided so two heads one at each side of a
disk read and write data on disk. “Seek” is an rotation of disk. Rotation speed varies from 4500
rpm (rotation per minute) to 7200 rpm (rotations per minute).
CD-ROM:
CD-ROM (Compact Disk Read Only Memory) is a portable and non-volatile optical
storage device.”
CD is a secondary storage device. The size of CD is 4.75 inches in diameter. Its storage
capacity is 650 MB. Some CDs have capacity up to 1 GB.
CD Drives are used to read CDs. Speed of CD drive is measure in X. 1X equals to 150
Kilobytes per second.
CD ROMs are used to store and distribute large databases, software, multimedia
applications, audio and video.
Data is stored in CDs in spiral tracks starting from centre of disk and ending at outmost
edge of disk. The track pitch can range from 1.5 to 1.7 microns.
Magnetic Tape:
Magnetic Tape is portable magnetic storage device in which data is stored serially.”
Magnetic tapes, like audio cassettes, have plastic tape coated with magnetic material at
one side. The width of tape is 1.27 cm (1/2 inch) while length may be up to 731.5 m. They come
in 25.4 cm diameter reels. There is a write-protect ring at the back of magnetic tape to protect it
from writing or erasing data in it.
Magnetic tape is divided into logical blocks. One file can take up many blocks but must
take up one whole block at least.
There are two kinds of gaps or block spots:
Interblock Gap: It separates logical blocks.
Interrecord Gap: It is wider and separates records.
Magnetic Tape is the cheapest magnetic media. It is used for storage of large files. The
data stored in it remain unchanged unless altered by external magnetic field.
One disadvantage of magnetic tape is that it is sequential media which makes it very
slow.
Data Representation
Chapter No 5
DATA:
The word data is derived from a Latin word Datum. Data is defined as:
“Data is set of facts and figures, computer requires for processing to solve a problem.”
Computer needs some facts and figures to solve any problem. For example to find out
percentage of a student computer needs his obtained marks and the maximum marks of
examination. These obtained marks and maximum marks are data.
Types of Data:
Main types of data are given below:
i) Numeric Data
ii) Character Data
1) Numeric Data:
“The data which consist of numbers from ‘0’ to ‘9’, decimal point ‘.’, ‘+’ and ‘-‘ sign is
called Numeric Data.”
Numeric data is divided into following two types:
i. Integer Data
ii. Real Data
i. Integer Data:
“The data that is in the form of whole numbers and does not contain any decimal point is
called Integer Data.”
Integer data may be positive and negative.
Example:
Number of students in a class, number of computers in office, number of buses in the
city, 54645, -987, 0, +345 etc.
i. Real Data:
“The data that is in the form of fractional number and contains decimal point is called
Real Data.”
Real data may be fixed point data and floating-point data.
Examples:
Percentage, weight, height speed distance, etc.
Examples:
1.62 X 10-19 (charge of electron in columb)
2.9997 X 108 (Velocity of lignt in m/sec)
2) Character Data:
“The data, which consists of alphabets, alphanumerics, pictures, charts etc. is called
Character Data.”
There are two types of character data:
i) String Data
ii) Graphical Data
i. String Data:
“The data which consist of alphabets, numbers, special characters and spaces is called
string data.”
There are types of string data.
a) Alphabetical Data
b) Alphanumerical Data
a. Alphabetical Data:
Alphabetical Data consists of English alphabets like Name, ItemName etc.
b. Alphanumerical Data:
Alphanumerical data consists of alphabets and numbers like address, telephone etc.
S. No Data Information
1 Data is set of facts and figures required Information is the result of processing.
to solve a problem.
2 Data is unprocessed Information Information is processed data.
3 Data is input for computer. Information is output for computer.
4 For Example
Obtained marks and Maximum marks Percentage, grade and result calculated are
are data examples of Information
Data
Number system is based on some characters called digits. The number of digits is known
as base or radix of the number system. For example binary number system uses two characters 0
and 1 and its base is 2.
Computer uses following four numbers:
i) Decimal number system
ii) Binary number system
iii) Octal number system
iv) Hexadecimal number system
It is the most common number system. The digits of decimal system are 0, 1, 2, 3, 4, 5, 6,
7, 8, and 9. The value of each digit in a figure depends upon its weight. The weights are based on
power of 10.
The weights of digits according to their positions are given below:
Position 5th 4th 3rd 2nd 1st
Weight 104=10000 103=1000 102=100 101=10 100=1
Computer circuitry represents data in a pattern of ON and OFF states of electric current.
The state ON is represented by ‘1’ and OFF is represented by ‘0’. Binary system is used for
internal working of electronic computers.
The value of each digit in a figure depends upon its weight. The weights are based on
power of 2.
The digits of octal system are 0, 1, 2, 3, 4, 5, 6, and 7. The value of each digit in a figure
depends upon its weight. The weights are based on power of 8.
The weights of digits according to their positions are given below:
Position 5th 4th 3rd 2nd 1st
Weight 84=4096 83=512 82=64 81=8 80=1
Hexadecimal system is used to store data on disk. The digits of hexadecimal system are
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. The value of each digit in a figure depends upon its
weight. The weights are based on power of 16.
The weights of digits according to their positions are given below:
Position 5th 4th 3rd 2nd 1st
Weight 164=65536 163=4096 162=256 161=16 160=1
Boolean Algebra
Chapter No 6
Boolean Algebra:
“Boolean Algebra is a convenient and systematic way of expressing and analysing the
operation of logical circuits.”
George Boole, an English mathematician, developed a mathematical system for
formulating logical statements with symbols. This system is applied in design and analysis of
digital systems.
Boolean Algebra provides the operations and the rules for working with the set (0,1).
Boolean Algebra is now being used extensively in designing the circuits used in computers.
“Letters A, B, C, x, y, z etc. are called Boolean variables as their can values can be
changed.”
Boolean variables can have values only 0 or 1.
(c) Complement:-
“The inverse of a variable is called Complement.”
Complement of variable is indicated by a bar over it.
Complement of A is Ā. If A=1 then Ā=0 or if A=0 then Ā=1.
A truth table is systematic listing of the values for the dependent variables in term of all
the possible values of independent variable.
INPUTS OUTPUT
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
OR operator:
“In Boolean algebra logical addition or Boolean Sum is called OR operation.”
OR operation is represented by ‘+’.
For example, if two variable A & B are ORed then
A + B = C (reading A OR B is equal to C)
The Truth table of OR operation is given below:
INPUTS OUTPUT
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
AND operator:
“In Boolean algebra logical multiplication is called AND operation.”
AND operation is represented by dot ‘.’.
For example, if two variable A & B are ANDed then
A . B = C or AB=C (reading A AND B is equal to C)
The Truth table of AND operation is given below:
INPUTS OUTPUT
A B A.B
0 0 0
0 1 0
1 0 0
1 1 1
NOT operator:
“In Boolean algebra logical complement is called NOT operation.”
NOT or inverse operation is represented by prime “ ” or bar(-) on the variable. It is a
unary operator and is defined on a single variable.
INPUTS OUTPUTS
A Ā
0 1
1 0
Boolean Expression:
Boolean expression is an arrangement of logical variables and operators which express
the operation of a logical circuit.
For example
A+B
Ā.B.C
AĀ
A(A+B)
Boolean Function:
Boolean function is an expression formed with variables, logical operators parentheses
and equal sign.
The value of Boolean function can be either 0 or 1.
“When ORing more than two variables, the result is the same regardless of the grouping
of the variables.”
A + (B + C) = (A + B) + C
“When ANDing more than two variables, the result is the same regardless of the
grouping of the variables.”
A (B C) = (A B) C
“ORing two or more than two variables and then ANDing the result with a single variable
is equal to ANDing the variables with each of the two or more variables and then ORing
the product”
A (B + C) = (AB + AC
De Morgan’s Theorems:-
A mathematician DeMorgan presented two theorem to simplify complicated logical
expression. These two theorems are given below:
Equals
Equals
Karnaugh Map:-
“Karnaugh map is a systematic method of simplifying Boolean expressions.”
Karnaugh map or K-map produces simplest SOP (Sum Of Products) or POS (Product Of
Sums).
K-map is an array of cells in which each cell represents a binary value of the input
variables. It is used for expression with two, three, four, and five variables. The number of cells
in a K-map equals to total number of possible input variable combinations.
For example:
For 2-variable expression 22=4cells
For 3-variable expression 23=8cells
For 4-variable expression 24=16cells
For 5-variable expression 25=32cells
B B
0 1 0 1
A A
0 0
1 1
C C
0 1 0 1
AB AB
00 00
01 01
11 11
10 10
CD CD
01 01 11 10 01 01 11 10
AB AB
00 00
01 01
11 11
10 10
Q. No. 10) What are SOP and POS? Write down the forms of Boolean expressions.
Computer Software
Chapter No 7
Q. No. 1) What is a command?
Command:-
“Commands are specific words used to make computer perform specific tasks.”
DOS command is a way of communicating with the computer.
There are following two types of DOS commands:
1) Internal Commands
2) External Commands
1) Internal Commands:
Internal commands are stored in COMMAND.COM file and load in computer memory at
the time of boot.
These commands are always available to use.
Internal commands are not seen in the directory.
Examples:
DIR CLS DATE TIME COPY
VER VOL DEL TYPE REN
PROMPT MD or MKDIR RD RMDIR CD or CHDIR PATH
2) External Commands:
External commands are stored in separately on disk as program file.
They must be present on disk to be executed.
External commands have extension of COM, EXE, BAT etc.
Examples:
FORMAT CHKDSK LABEL DISKCOPY
PRINT SYS EDIT XCOPY
DELTREE DOSKEY
1) Windows provide Graphical User Interface (GUI). In GUI commands are located on
screen in form of pictures called Icons. User gives command by clicking the icons.
2) Windows is user friendly as it is easy to learn and operate.
3) Windows provides multitasking (running more than one program at a time).
4) Windows creates an multi-user environment with the help of networking.
Windows Desktop:
“The first screen displayed when Windows is started is called Desktop.”
Windows Desktop is working desk. It contains following items:
Icons
Task Bar
Start Buttons
ICONS:-
“Icon is a small colourful graphical picture on Windows desktop.”
Each icon has a label, which identifies it. Label of icon can be changed. Icons represent
objects like file, folder, program and hardware component of computer.
3) My Documents
4) Recycle Bin
5) Internet Explorer
Taskbar:-
“ The bar at the bottom of Windows desktop is called Taskbar.”
A taskbar has following items:
1) Start Button: It is at left corner of taskbar. Using Start button user can open programs,
installed in the computer.
3) Program Names: It shows the name of program which are currently running.
Control Panel:
“Control Panel is an item of Windows which provides facility to change the way
Windows works and looks.”
Control panel contains list of icons through which user can change the setting of
computer. The most common items in control panel are given below:
Accessibility Option: It is used to make computer easier for people with disabilities.
Such as Sticky Keys, ShowSounds etc.
Add New Hardware: It is used to install a new hardware to the computer with the help of
its device driver program.
Add/Remove Programs: It is used to install new program or to remove a program form
computer.
Date/Time: It is used to change or set the Date and Time of computer system.
Display: It is used to change the display setting co the monitor like |
Background/Wallpaper, Screen Saver, Appearance, Effects, Web and Setting.
Fonts: It is used to add new fonts in the computer.
Internet Option: It is used to change the setting of web browser software.
Modems: It used to install modem driver and to change it dialling setting.
Mouse: It is used to change mouse pointer style and setting of mouse buttons.
Printers: It is used to add or remove a printer driver, and to change printer setting.
System: It is used to view system information about all devices attached with computer.
Sound: It is used to add or remove sound with any event.
Users: It is used to manage different users of the computer.
VIRUS:
“A program which can infect other programs by modifying them and causing data loss is
called Virus.”
Virus is a hidden program. It attaches itself to other programs and executes secretly every
time the host program is executed.
Virus replicates itself within computer system. Some viruses execute at a particular time
and are called Time Bomb Viruses.
ANITVIRUS:
“Antivirus is a software that when executed, removes virus programs from the disk.”
Viruses are very harmful for computer systems. Antivirus The anti viruses are used to
save computer from the harms of virus.
Following are some important anti virus software:
Nortron Anti Virus (NAV)
Mcafee
PC Clean
AVG