Computer Nn3
Computer Nn3
• Is also random access but only for reads, once data has been written onto a ROM chip,
it cannot be removed and can only be read.
It refers to special memory used to store programs that boot the computer and perform
diagnostics. Most personal computers have a small amount of ROM (a few thousand bytes).
Retains its contents even when the computer is turned off and is therefore referred to as being
nonvolatile.
Secondary storage: These are devices which are used to store huge information for future
use. This is mostly hard drives and removable media such as floppy disks, optical media (CD
ROM) etc.
Floppy Disk: Floppy disks allow information to be transported easily from onecomputer to
another they have limited storage capacity, generally 1.44 MB. Saving and retrieving
information from a floppy disk is slower than on a hard drive. They are more susceptible to
physical damage and viruses than the hard drive. The size of a hard drive is usually expressed
in terms of megabytes and gigabytes.
Compact Disk Read Only Memory (CD ROM): CD ROMs are read only storagemedium.
Typically, a CD ROM holds up to 650 MB of information. While information retrieval is
faster than from a floppy disk, it is still not as fast as from the hard drive.
Compact Disk-Writable (CD- R): A CD-R is highly effective for storing a largeamount of
data. Can hold up to 700MB of information. A CD-R is a one time recordable compact disc.
A CD-RW allows you to read, write, erase and write again. Writing takes place in a single
pass of the focused laser beam. This is sometimes referred to as direct overwriting and can be
repeated several thousand times per disc.
The bus is a medium used to transfer data and controls from one part to other part of
computers. Data is normally transferred between main storage and the processor along a
device called a bus which is effectively a means of sending multiple bits of data in parallel.
There are mainly tStrategyee types of bus: (a) Data bus (b) Address bus (c) Control bus,
a) Data bus: A bus which carries a word or a data to or from memory is known as data bus.
(ii) The data width is 8 in 8085, 16 in 8086 and 32 in 80386.
(iii) Data lines are bidirectional.
(iv) One part of the data bus runs between RAM and the microprocessor.
(v) Another part of the data bus runs between RAM and various storage devices.
b) Address bus: The address bus carries memory address.
(ii) The address lines can be 16 in 8085, 20 in 8086 and 32 in 80386.
(iii) It is unidirectional, the bits flow in only one direction.
c) Control bus: The control bus carries the control signals between the units of computers.
The signals like READ/WRITE, START/HALT etc are carried by a control bus.
Classification of software
Software
Classification of software
Software can be broadly classified into system software and application software
System software
System Software
Software required to run the hardware parts of the computer and other application software
are called system software. System software acts as interface between hardware and user
applications. An interface is needed because hardware devices or machines and humans
speak in different languages.
Machines understand only binary language i.e. 0 (absence of electric signal) and 1 (presence
of electric signal) while humans speak in English, French, German, Tamil, Hindi and many
other languages. English is the pre-dominant language of interacting with computers.
Software is required to convert all human instructions into machine understandable
instructions. And this is exactly what system software does. It Consists of programs that
control operations of the computer and enable user to make efficient use of computers. They
coordinate computer activities and optimize use of computers. They are used to control the
computer and develop and run application programs examples of jobs done by the system
software are management of computer resources, defragmentation etc.
Based on its function, system software is of four types −
Operating System
Language Processor
Device Drivers
Language Processor
As discussed earlier, an important function of system software is to convert all user
instructions into machine understandable language. When we talk of human machine
interactions, languages are of three types −
Machine-level language − This language is nothing but a string of 0s and 1s that the
machines can understand. It is completely machine dependent.
Assembly-level language − This language introduces a layer of abstraction by
defining mnemonics. Mnemonics are English like words or symbols used to denote
a long string of 0s and 1s. For example, the word “READ” can be defined to mean
that computer has to retrieve data from the memory. The complete instruction will
also tell the memory address. Assembly level language is machine dependent.
High level language − This language uses English like statements and is completely
independent of machines. Programs written using high level languages are easy to
create, read and understand.
Program written in high level programming languages like Java, C++, etc. is called source
code. Set of instructions in machine readable form is called object code or machine
code. System software that converts source code to object code is called language
processor.
Device Drivers
System software that controls and monitors functioning of a specific device on computer is
called device driver. Each device like printer, scanner, microphone, speaker, etc. that needs
to be attached externally to the system has a specific driver associated with it. When you
attach a new device, you need to install its driver so that the OS knows how it needs to be
managed.
(i) Operating system – is a complex program and most important program that runs on a
computer and which controls the operation of a computer. It perform basic tasks, such as
recognizing input from the keyboard, sending output to the display screen, keeping track of
files and directories on the disk, and controlling peripheral devices such as disk drives and
printers. In general the operating system supervises and directs all the software components
and the hardware components. Sophisticated operating system could handle multi-processors,
many users and tasks simultaneously. Examples of computers operating systems are UNIX,
Microsoft windows 95/98, Windows NT, Windows 2000, Windows XP, Windows Vista and
Linux.
(ii)Service programs are programs designed for general support of the processes of a
computer; "a computer system provides utility programs to perform the tasks needed by most
users". The service programs can further be divided into;
Anti-virus applications protect your computer from the damage that can be
caused by viruses and similar programs
Compression utilities make files smaller for storage (or sendingover the
Internet) and then return them to normal size.
Data recovery utilities attempt to restore data and files that havebeen
damaged or accidentally deleted.
Disk defragmenters reorganize the data stored on disks so that it ismore
efficiently arranged.
Firewalls prevent outsiders from accessing your computer over anetwork such
as the Internet.
o Development programs are used in the creation of new software. Theycomprise of
sets of software tools to allow programs to be written and tested. Knowledge of
appropriate programming language is assumed. Tools used here are
Application software
Are programs for user to do their jobs e.g. typing, recording keeping, production of financial
statements, drawing, and statistics.
o General/ready made software is developed to perform a variety of tasks,usually
determined by use. Such software can be customized by user to achieve specific goals
e.g. ms office which is a suit of programs performing a variety of tasks e.g. word
processing for producing documents, database for storing, retrieving and manipulating
data and various calculations on spreadsheets. General purpose programs are
discussed below;
Database software: A database contains a list of information itemsthat are similar in format
and/or nature. An example is a phone book that lists a name, address, and phone number for
each entry. Once stored in a database, information can be retrieved in several ways, using
reports and queries. For example, all the names listed for a given area code could be printed
out and used for a commercial mailing to that area. Examples of database software is Ms
Access, Dbase, Oracle etc.
Presentation software: for making slide shows. Allows userstocreate visual presentation A
speaker may use presentation software to organize a slide show for an audience. Text,
graphics, sound, and movies can easily be included in the presentation. An added feature is
that the slide show may be enhanced by inclusion of handouts with two to six slides printed
on a page.
Desktop publishing software: This software permits the user toprepare documents by using
both word-processing devices and graphics. Desktop publishing software uses word-
processing software, with all its ease of entering and revising data, and supplements it with
sophisticated visual features that stem from graphics software. For example, one can enhance
a printed message with virtually any kind of illustration, such as drawings, paintings, and
photographs. . Examples of Desktop publishing software is PageMaker, Corel Draw, and Ms
Publisher
Multimedia applications for creating video and [Link] to create image, audio,
video etc. Example: Real Player, Media Player etc. Activity management programs like
calendars and address books
o Tailor made/special purpose software Tailor-made computer systemrefers to
computer application developed by in-house IT personnel or outside software house
according to specific user requirements in a firm. They are developed for given
purpose e.g. Payroll system, stock control system etc.
As you know, the hardware devices need user instructions to function. A set of instructions
that achieve a single outcome are called program or procedure. Many programs functioning
together to do a task make a software.
For example, a word-processing software enables the user to create, edit and save
documents. A web browser enables the user to view and share web pages and multimedia
files. There are two categories of software −
System Software
Application Software
Utility Software
Let us discuss them in detail.
Application Software
A software that performs a single task and nothing else is called application software.
Application software are very specialized in their function and approach to solving a
problem. So a spreadsheet software can only do operations with numbers and nothing else.
A hospital management software will manage hospital activities and nothing else. Here are
some commonly used application software −
Word processing
Spreadsheet
Presentation
Database management
Multimedia tools
Utility Software
Application software that assist system software in doing their work is called utility
software. Thus utility software is actually a cross between system software and application
software. Examples of utility software include −
Antivirus software
Disk management tools
File management tools
Compression tools
Backup tools
Basics of Computers - System S/W
As you know, system software acts as an interface for the underlying hardware system. Here
we will discuss some important system software in detail.
Operating System
Operating system (OS) is the lifeline of computer. You connect all the basic devices like
CPU, monitor, keyboard and mouse; plug in the power supply and switch it on thinking you
have everything in place. System software that is responsible for functioning of all hardware
parts and their interoperability to carry out tasks successfully is called operating system
(OS). OS is the first software to be loaded into computer memory when the computer is
switched on and this is called booting. OS manages a computer’s basic functions like
storing data in memory, retrieving files from storage devices, scheduling tasks based on
priority, [Link] the computer will not start or come to life unless it has an operating system
installed in it because OS −
Assembler
Assembler is a system software that converts assembly level programs to machine level
code.
Interpreter
The major advantage of assembly level language was its ability to optimize memory usage
and hardware utilization. However, with technological advancements computers had more
memory and better hardware components. So ease of writing programs became more
important than optimizing memory and other hardware resources.
In addition, a need was felt to take programming out of a handful of trained scientists and
computer programmers, so that computers could be used in more areas. This led to
development of high level languages that were easy to understand due to resemblance of
commands to English language.
The system software used to translate high level language source code into machine level
language object code line by line is called an interpreter. An interpreter takes each line of
code and converts it into machine code and stores it into the object file.
The advantage of using an interpreter is that they are very easy to write and they do not
require a large memory space. However, there is a major disadvantage in using interpreters,
i.e., interpreted programs take a long time in executing. To overcome this disadvantage,
especially for large programs, compilers were developed.
Compiler
System software that store the complete program, scan it, translate the complete program
into object code and then creates an executable code is called a compiler. On the face of it
compilers compare unfavorably with interpreters because they −
Processor management
Managing a computer’s CPU to ensure its optimum utilization is called processor
management. Managing processor basically involves allocating processor time to the tasks
that need to be completed. This is called job scheduling. Jobs must be scheduled in such a
way that −
Preemptive scheduling
Non-Preemptive scheduling
Preemptive Scheduling
In this type of scheduling, next job to be done by the processor can be scheduled before the
current job completes. If a job of higher priority comes up, the processor can be forced to
release the current job and take up the next job. There are two scheduling techniques that use
pre-emptive scheduling −
Round robin scheduling − A small unit of time called time slice is defined and each
program gets only one time slice at a time. If it is not completed during that time, it
must join the job queue at the end and wait till all programs have got one time slice.
The advantage here is that all programs get equal opportunity. The downside is that
if a program completes execution before the time slice is over, CPU is idle for the
rest of the duration.
Response ratio scheduling − A job with shorter response time gets higher priority.
So a larger program may have to wait even if it was requested earlier than the shorter
program. This improves throughput of the CPU.
Non-preemptive Scheduling
In this type of scheduling, job scheduling decisions are taken only after the current job
completes. A job is never interrupted to give precedence to higher priority jobs. Scheduling
techniques that use non-preemptive scheduling are −
First come first serve scheduling − This is the simplest technique where the first
program to throw up a request is completed first.
Shortest job next scheduling − Here the job that needs least amount of time for
execution is scheduled next.
Deadline scheduling − The job with the earliest deadline is scheduled for execution
next.
Memory Management
Process of regulating computer memory and using optimization techniques to enhance
overall system performance is called memory management. Memory space is very
important in modern computing environment, so memory management is an important role
of operating systems.
As you know, computers have two types of memory – primary and secondary. Primary
memory is fast but expensive and secondary memory is cheap but slower. OS has to strike
a balance between the two to ensure that system performance is not hurt due to very less
primary memory or system costs do not shoot up due to too much primary memory.
Input and output data, user instructions and data interim to program execution need to be
stored, accessed and retrieved efficiently for high system performance. Once a program
request is accepted, OS allocates it primary and secondary storage areas as per requirement.
Once execution is completed, the memory space allocated to it is freed. OS uses many
storage management techniques to keep a track of all storage spaces that are allocated or
free.
File Management
Data and information is stored on computers in form of files. Managing file system to enable
users to keep their data safely and correctly is an important function of operating systems.
Managing file systems by OS is called file management. File management is required to
provide tools for these file related activities −
Device Management
The process of implementation, operation and maintenance of a device by operating system
is called device management. Operating system uses a utility software called device
driver as interface to the device.
When many processes access the devices or request access to the devices, the OS manages
the devices in a way that efficiently shares the devices among all processes. Processes access
devices through system call interface, a programming interface provided by the OS.
GUI OS
GUI is the acronym for Graphical User Interface. An operating system that presents an
interface comprising graphics and icons is called a GUI OS. GUI OS is very easy to
navigate and use as users need not remember commands to be given to accomplish each
task. Examples of GUI OS includes Windows, macOS, Ubuntu, etc.
Time Sharing OS
Operating systems that schedule tasks for efficient processor use are called time sharing
OS. Time sharing, or multitasking, is used by operating systems when multiple users
located at different terminals need processor time to complete their tasks. Many scheduling
techniques like round robin scheduling and shortest job next scheduling are used by time
sharing OS.
Real Time OS
An operating system that guarantees to process live events or data and deliver the results
within a stipulated span of time is called a real time OS. It may be single tasking or
multitasking.
Distributed OS
An operating system that manages many computers but presents an interface of single
computer to the user is called distributed OS. Such type of OS is required when
computational requirements cannot be met by a single computer and more systems have to
be used. User interaction is restricted to a single system; it’s the OS that distributed work to
multiple systems and then presents the consolidated output as if one computer has worked
on the problem at hand.
Instruction Set
A command given to a digital machine to perform an operation on a piece of data is called
an instruction. Basic set of machine level instructions that a microprocessor is designed to
execute is called its instruction set. These instructions do carry out these types of operations
Data transfer
Arithmetic operations
Logical operations
Control flow
Input/output and machine control
Microprocessor Components
Compared to the first microprocessors, today’s processors are very small but still they have
these basic parts right from the first model −
CPU
Bus
Memory
CPU
CPU is fabricated as a very large scale integrated circuit (VLSI) and has these parts −
Instruction register − It holds the instruction to be executed.
Decoder − It decodes (converts to machine level language) the instruction and sends
to the ALU (Arithmetic Logic Unit).
ALU − It has necessary circuits to perform arithmetic, logical, memory, register and
program sequencing operations.
Register − It holds intermediate results obtained during program processing.
Registers are used for holding such results rather than RAM because accessing
registers is almost 10 times faster than accessing RAM.
Bus
Connection lines used to connect the internal parts of the microprocessor chip is called bus.
There are three types of buses in a microprocessor −
Data Bus − Lines that carry data to and from memory are called data bus. It is a
bidirectional bus with width equal to word length of the microprocessor.
Address Bus − It is a unidirectional responsible for carrying address of a memory
location or I/O port from CPU to memory or I/O port.
Control Bus − Lines that carry control signals like clock signals, interrupt
signal or ready signal are called control bus. They are bidirectional. Signal that
denotes that a device is ready for processing is called ready signal. Signal that
indicates to a device to interrupt its process is called an interrupt signal.
Basic Memory
Memory is required in computers to store data and instructions. Memory is physically
organized as a large number of cells that are capable of storing one bit each. Logically they
are organized as groups of bits called words that are assigned an address. Data and
instructions are accessed through these memory address. The speed with which these
memory addresses can be accessed determines the cost of the memory. Faster the memory
speed, higher the price.
Computer memory can be said to be organized in a hierarchical way where memory with the
fastest access speeds and highest costs lies at the top whereas those with lowest speeds and
hence lowest costs lie at the bottom. Based on this criteria memory is of two types
– primary and secondary. Here we will look at primary memory in detail.
The main features of primary memory, which distinguish it from secondary memory are −
RAM: RAM stands for Random Access Memory. The processor accesses all memory
addresses directly, irrespective of word length, making storage and retrieval fast. RAM is the
fastest memory available and hence most expensive. These two factors imply that RAM is
available in very small quantities of up to 1GB. RAM is volatile but my be of any of these
two types
DRAM (Dynamic RAM): Each memory cell in a DRAM is made of one transistor and one
capacitor, which store one bit of data. However, this cell starts losing its charge and hence
data stored in less than thousandth of a second. So it needs to be refreshed thousand times a
second, which takes up processor time. However, due to small size of each cell, one DRAM
can have large number of cells. Primary memory of most of the personal computers is made
of DRAM.
SRAM (SRAM): Each cell in SRAM is made of a flip flop that stores one bit. It retains its bit
till the power supply is on and doesn’t need to be refreshed like DRAM. It also has shorter
read-write cycles as compared to DRAM. SRAM is used in specialized applications.
ROM: ROM stands for Read Only Memory. As the name suggests, ROM can only be read
by the processor. New data cannot be written into ROM. Data to be stored into ROM is
written during the manufacturing phase itself. They contain data that does not need to be
applications. ROM is slower and hence cheaper than RAM. It retains its data even when
power is switched off, i.e. it is non-volatile. ROM cannot be altered the way RAM can be but
PROM (Programmable ROM): PROM can be programmed using a special hardware device
called PROM programmer or PROM burner.
EPROM (Erasable Programmable ROM): EPROM can be erased and then programmed using
special electrical signals or UV rays. EPROMs that can be erased using UV rays are called
UVEPROM and those that can be erased using electrical signals are called EEPROM.
However, handling electric signals is easier and safer than UV rays.
NETWORK
It’s a connection of two or more devices to share resources.
Computer network is a telecommunication channel using which we can share data with other
coomputers or devices, connected to the same network. It is also called Data Network. The
best example of computer network is Internet. Computer network does not mean a system
with one Control Unit connected to multiple other systems as its slave. That is Distributed
system, not Computer Network. A network must be able to meet certain criterias, these are
mentioned below:
1. Performance
2. Reliability
3. Scalability
Transit time : It is the time taken to travel a message from one device to another.
Response time : It is defined as the time elapsed between enquiry and response.
1. Efficiency of software
2. Number of users
3. Capability of connected hardware
1. Point-to-Point connection
2. Multipoint connection
Point-To-Point Connection
MultiPoint Connection
It is also called Multidrop configuration. In this connection two or more devices share a
single link. There are two kinds of Multipoint Connections :
If the links are used simultaneously between many devices, then it is spatially shared
line configuration.
If user takes turns while using the link, then it is time shared (temporal) line
configuration.
1. Simplex Mode
2. Half duplex Mode
3. Full duplex Mode
SIMPLEX Mode
In this type of transmission mode, data can be sent only in one direction i.e. communication
is unidirectional. We cannot send a message back to the sender. Unidirectional
communication is done in Simplex Systems where we just need to send a command/signal,
and do not expect any response back. Examples of simplex Mode are loudspeakers, television
broadcasting, television and remote, keyboard and monitor etc.
HALF DUPLEX Mode
Half-duplex data transmission means that data can be transmitted in both directions on a
signal carrier, but not at the same time.
For example, on a local area network using a technology that has half-duplex transmission,
one workstation can send data on the line and then immediately receive data on the line from
the same direction in which data was just transmitted. Hence half-duplex transmission
implies a bidirectional line (one that can carry data in both directions) but data can be sent in
only one direction at a time. Example of half duplex is a walkie- talkie in which message is
sent one at a time but messages are sent in both the directions.
In full duplex system there can be two lines one for sending the data and the other for
receiving data.
Characteristics of LAN
LAN's are private networks, not subject to tariffs or other regulatory controls.
LAN's operate at relatively high speed when compared to the typical WAN.
There are different types of Media Access Control methods in a LAN, the prominent
ones are Ethernet, Token ring.
It connects computers in a single building, block or campus, i.e. they work in a
restricted geographical area.
Applications of LAN
One of the computer in a network can become a server serving all the remaining
computers called clients. Software can be stored on the server and it can be used by
the remaining clients.
Connecting Locally all the workstations in a building to let them communicate with
each other locally without any internet access.
Sharing common resources like printers etc are some common applications of LAN.
Advantages of LAN
Disadvantages of LAN
High Setup Cost: Although the LAN will save cost over time due to shared computer
resources, but the initial setup costs of installing Local Area Networks is high.
Privacy Violations: The LAN administrator has the rights to check personal data files
of each and every LAN user. Moreover he can check the internet history and
computer use history of the LAN user.
Data Security Threat: Unauthorised users can access important data of an
organization if centralized data repository is not secured properly by the LAN
administrator.
LAN Maintenance Job: Local Area Network requires a LAN Administrator because,
there are problems of software installations or hardware failures or cable disturbances
in Local Area Network. A LAN Administrator is needed at this full time job.
Covers Limited Area: Local Area Network covers a small area like one office, one
building or a group of nearby buildings.
Advantages of MAN
Extremely efficient and provide fast communication via high-speed carriers, such as
fibre optic cables.
It provides a good back bone for large network and provides greater access to WANs.
The dual bus used in MAN helps the transmission of data in both directions
simultaneously.
A MAN usually encompasses several blocks of a city or an entire city.
Disadvantages of MAN
More cable required for a MAN connection from one place to another.
It is difficult to make the system secure from hackers and industrial espionage(spying)
graphical regions.
Advantages of WAN
Covers a large geographical area so long distance business can connect on the one
network.
Shares software and resources with connecting workstations.
Messages can be sent very quickly to anyone else on the network. These messages
can have picture, sounds or data included with them(called attachments).
Expensive things(such as printers or phone lines to the internet) can be shared by all
the computers on the network without having to buy a different peripheral for each
computer.
Everyone on the network can use the same data. This avoids problems where some
users may have older information than others.
Disadvantages of WAN
Need a good firewall to restrict outsiders from entering and disrupting the network.
Setting up a network can be an expensive, slow and complicated. The bigger the
network the more expensive it is.
Once set up, maintaining a network is a full-time job which requires network
supervisors and technicians to be employed.
Security is a real issue when many different people have the ability to use information
from other computers. Protection against hackers and viruses adds more complexity
and expense.
BUS Topology
Bus topology is a network type in which every computer and network device is connected to
single cable. When it has exactly two endpoints, then it is called Linear Bus topology.
Features of Bus Topology
1. It is cost effective.
2. Cable required is least compared to other network topology.
3. Used in small networks.
4. It is easy to understand.
5. Easy to expand joining two cables together.
RING Topology
It is called ring topology because it forms a ring as each computer is connected to another
computer, with the last one connected to the first. Exactly two neighbours for each device.
1. Transmitting network is not affected by high traffic or by adding more nodes, as only
the nodes having tokens can transmit data.
2. Cheap to install and expand
STAR Topology
In this type of topology all the computers are connected to a single hub through a cable. This
hub is the central node and all others nodes are connected to the central node.
MESH Topology
It is a point-to-point connection to other nodes or devices. All the network nodes are
connected to each other. Mesh has n(n-1)/2 physical channels to link n devices. There are two
techniques to transmit data over the Mesh topology, they are :
1. Routing
2. Flooding
1. Fully connected.
2. Robust.
3. Not flexible.
TREE Topology
It has a root node and all other nodes are connected to it forming a hierarchy. It is also called
hierarchical topology. It should at least have three levels to the hierarchy.
1. Heavily cabled.
2. Costly.
3. If more nodes are added maintenance is difficult.
4. Central hub fails, network fails.
HYBRID Topology
It is two different types of topologies which is a mixture of two or more topologies. For
example if in an office in one department ring topology is used and in another star topology is
used, connecting these topologies will result in Hybrid Topology (ring topology and star
topology).
1. Complex in design.
2. Costly.
Computer File organization
It is used to determine an efficient file organization for each base relation. For example, if we
want to retrieve student records in alphabetical order of name, sorting the file by student
name is a good file organization. However, if we want to retrieve all students whose marks is
in a certain range, a file ordered by student name would not be a good file organization. Some
file organizations are efficient for bulk loading data into the database but inefficient for
retrieve and other activities.
The objective of this selection is to choose an optimal file organization for each relation.
Secondary indexes
Secondary indexes provide a mechanism for specifying a...'1additional key for a base relation
that can be used to retrieve data more efficiently. For example, the STUDENT relation may
be hashed on the Name the primary index. However, there may be frequent access to this
relation based on the Roll Number attribute. In this case, we may decide to add Roll Number
as a secondary index.
There is an overhead involved in the maintenance and use of secondary indexes that has to be
balanced against the performance improvement gained when retrieving data. This overhead
includes:
• adding an index record to every secondary index whenever a tuple is inserted into the
relation;
• updating a secondary index when the corresponding tuple in the relation is updated;
• The increase in disk space needed to store the secondary index;
• Possible performance degradation during query optimization, as the query optimizer may
consider all secondary indexes before selecting an optimal execution strategy.
Computer viruses
COMPUTER VIRUS
A computer virus is a type of computer program that can replicate itself by making copies of
it by making copies of itself without the user's knowledge or consent.
Computer virus spread from following ways
i. Opening the infected email attachment.
ii. By downloading infected programs from the internet.
iii. By using infected floppy disk, pen drives and CDs.
iv. By transferring an infected program over a network and executing it.
Type of computer virus
i) Boot Sector Virus
Boot Sector virus is regarded as one of the most hostile types of virus, a boot sector virus
infects the boot record of a hard or a floppy disk. The virus moves the boot sector data to a
different part of a disk. This virus allows the actual boot sector data to be read as though a
normal start up were occurring.
ii) File Infecting Virus
This type of virus infects program files on a disk. When infected program is launched, the
virus code is also launched. After the virus code has been launched, it will normal load and
execute the program that has been infected.
iii) Multipartite Virus
This virus is the combination of parasitic and boot sector virus and due to this, it is able to
infect both the files or boot sector of a disk. They infect program files and when it is
executed, these viruses affect the boot record.
iv) Macro Virus
These viruses infect the Microsoft Office programs such as Excel, Word, Access and
PowerPoint. When we open the Microsoft program then the virus is loaded and it affects the
normal template or document. Since it is attached in the document, if the infected document
is opened on other computer, it affects the computer too.
v) Script Virus
Script Virus is written in script programming languages, such as VBScript and JavaScript. It
can infect a computer through various scripting environments, such as Windows Help,
Windows installation files and Windows registry files.
Following are the most popular and effective antivirus from which you can choose one for
your personal computer −
The technique to represent and work with numbers is called number system. Decimal
number system is the most common number system. Other popular number systems
include binary number system, octal number system, hexadecimal number system, etc.
Decimal number system is a base 10 number system having 10 digits from 0 to 9. This
means that any numerical quantity can be represented using these 10 digits. Decimal number
system is also a positional value system. This means that the value of digits will depend on
its position. Let us take an example to understand this.
Say we have three numbers – 734, 971 and 207. The value of 7 in all three numbers is
different−
In digital systems, instructions are given through electric signals; variation is done by
varying the voltage of the signal. Having 10 different voltages to implement decimal number
system in digital equipment is difficult. So, many number systems that are easier to
implement digitally have been developed. Let’s look at them in detail.
The easiest way to vary instructions through electric signals is two-state system – on and off.
On is represented as 1 and off as 0, though 0 is not actually no signal but signal at a lower
voltage. The number system having just these two digits – 0 and 1 – is called binary
number system.
Each binary digit is also called a bit. Binary number system is also positional value system,
where each digit has a value expressed in powers of 2, as displayed here.
In any binary number, the rightmost digit is called least significant bit (LSB) and leftmost
digit is called most significant bit (MSB).
And decimal equivalent of this number is sum of product of each digit with its positional
value.
110102 = 1×24 + 1×23 + 0×22 + 1×21 + 0×20
= 16 + 8 + 0 + 2 + 0
= 2610
Computer memory is measured in terms of how many bits it can store. Here is a chart for
memory capacity conversion.
Octal number system has eight digits – 0, 1, 2, 3, 4, 5, 6 and 7. Octal number system is also
a positional value system with where each digit has its value expressed in powers of 8, as
shown here −
Decimal equivalent of any octal number is sum of product of each digit with its positional
value.
7268 = 7×82 + 2×81 + 6×80
= 448 + 16 + 6
= 47010
Octal number system has 16 symbols – 0 to 9 and A to F where A is equal to 10, B is equal
to 11 and so on till F. Hexadecimal number system is also a positional value system with
where each digit has its value expressed in powers of 16, as shown here −
Decimal equivalent of any hexadecimal number is sum of product of each digit with its
positional value.
27FB16 = 2×163 + 7×162 + 15×161 + 10×160
= 8192 + 1792 + 240 +10
= 1023410
0 0 0 0000
1 1 1 0001
2 2 2 0010
3 3 3 0011
4 4 4 0100
5 5 5 0101
6 6 6 0110
7 7 7 0111
8 8 10 1000
9 9 11 1001
A 10 12 1010
B 11 13 1011
C 12 14 1100
D 13 15 1101
E 14 16 1110
F 15 17 1111
ASCII
Besides numerical data, computer must be able to handle alphabets, punctuation marks,
mathematical operators, special symbols, etc. that form the complete character set of English
language. The complete set of characters or symbols are called alphanumeric codes. The
complete alphanumeric code typically includes −