Computer Notes
Computer Notes
Table of Contents
1 COMPUTER BASICS.........................................................................7
1.1 Aim...........................................................................................................................................7
1.2 Objectives................................................................................................................................7
1.3 Definitions...............................................................................................................................7
2 COMPUTER HARDWARE................................................................44
2.1 Aim.........................................................................................................................................44
2.2 Objectives..............................................................................................................................44
2.3 Definition...............................................................................................................................44
1
2.4.4 Scanner..........................................................................................................................47
2.4.5 Digital Camera..............................................................................................................48
2.7 Storage...................................................................................................................................63
2.7.1 DVD (Digital Versatile Disk).......................................................................................64
2.7.2 Hard disk drive..............................................................................................................64
3 COMPUTER SOFTWARE................................................................70
3.1 Aim.........................................................................................................................................70
3.2 Objectives..............................................................................................................................70
3.3 Definition...............................................................................................................................70
4 DATABASES....................................................................................84
4.1 Aim.........................................................................................................................................84
4.2 Objectives..............................................................................................................................84
4.3 Definition...............................................................................................................................84
4.3.1 What is data?.................................................................................................................85
4.3.2 What is information?.....................................................................................................85
4.3.3 Why do we need a database?........................................................................................85
2
4.5 Database vs. File System......................................................................................................93
5 TELECOMMUNICATIONS................................................................99
5.1 Aim.........................................................................................................................................99
5.2 Objectives..............................................................................................................................99
5.3 Definition...............................................................................................................................99
5.4 Networks..............................................................................................................................100
5.4.1 Local Area Network (LAN)........................................................................................100
5.4.2 WANs.........................................................................................................................101
5.9 Ethernet...............................................................................................................................116
6 COMPUTER VIRUSES...................................................................132
6.1 Aim.......................................................................................................................................132
6.2 Objectives............................................................................................................................132
3
6.3 Computer Viruses...............................................................................................................132
6.3.1 Five recognized types of viruses.................................................................................134
6.3.2 What is a Trojan horse?..............................................................................................135
6.3.3 What is a worm?.........................................................................................................135
6.3.4 What is a virus hoax?..................................................................................................136
6.3.5 Symptoms of a Computer Virus.................................................................................136
6.3.6 Symptoms that may be the result of ordinary Windows functions.............................138
6.3.7 What Viruses Don't Do!..............................................................................................139
6.3.8 How do Viruses Spread?.............................................................................................139
6.3.9 How to Prevent a Virus Invasion!...............................................................................140
6.3.10 How to remove a computer virus...........................................................................140
4
List of Figures
List of Tables
5
Table 1-1 Number Conversion..............................................................................30
Table 5-1 Twisted Pair Cables.............................................................................106
6
UNIT 1
COMPUTER BASICS
1 COMPUTER BASICS
1.1 Aim
The learner must understand what a computer is, its history and all the categories
in which computers are classified. The learner must also know the basic
terminology in computers
1.2 Objectives
After the end of this chapter, the reader must be able to:
Define what a computer is.
Describe the history of Computing.
Identify the categories of computers.
Identify and describe the major components of a Von Neumann Computer
Architecture.
Identify and describe the components of a computer system.
Identify the uses of a computer system.
Identify and describe the major number system used in computer systems
Be able to convert numbers from one base to another.
1.3 Definitions
7
An electronic device that stores and manipulates information. Unlike a
calculator, it is able to store a program and retrieve information from its
memory. Most computers today are digital, which means they perform
operations with quantities represented electronically as digits.
The first use of the word "computer" was recorded in 1613, referring to a person
who carried out calculations, or computations, and the word continued to be used
in that sense until the middle of the 20th century when began to refer to
programmable devices.
The history of the modern computer begins with two separate technologies
(automated calculation and programmability). An example of these early
mechanical calculating devices includes the abacus, the slide rule and arguably
the astrolabe and the Antikythera mechanism( an ancient astronomical computer
built by the Greeks around 80 BC) The Greek mathematician Hero of Alexandria
(c. 10–70 AD) built a mechanical theater which performed a play lasting
10 minutes and was operated by a complex system of ropes and drums that might
be considered to be a means of deciding which parts of the mechanism performed
which actions and when. This is the essence of programmability.
8
1.4.1 General-purpose Computers
It was the fusion of automatic calculation with programmability that produced the
first recognizable computers. Charles Babbage (1837) was the first to
conceptualize and design a fully programmable mechanical computer (known as
the analytical engine). Due to limited finances and Babbage's inability to resist
tinkering with the design, the device was never completed.
In 1936, Allan Turing (the father of modern computer science) invented the
Turing machine. He provided an influential formalisation of the concept of the
algorithm and computation with the Turing machine, providing a blueprint for the
electronic digital computer. "The fact remains that everyone who taps at a
keyboard, opening a spreadsheet or a word-processing program, is working on an
incarnation of a Turing machine". In 1945, Konrad Zuse invented the first
program-controlled computer. The first computer based on magnetic storage later
in 1955.
While working at Bell Labs in November 1937, George Stibitz invented and built
a relay-based calculator he dubbed the "Model K" (for "kitchen table", on which
he had assembled it). It was the modern digital computer, and also the first to use
binary circuits to perform an arithmetic operation. Complex arithmetic and
9
programmability where later factored in to improve performance and hence
invention of later models.
The use of digital electronics (largely invented by Claude Shannon in 1937) and
more flexible programmability were vitally important steps, but defining one
point along this road as "the first digital electronic computer" is difficult. Notable
achievements include.
10
1.5 Classes of computers
Desktop computers
Laptop and notebook computers
Tablet PC
Palmtop computers
Personal digital assistants (more commonly known as PDA's)
Programmable calculator
11
1.5.3 Mainframe Computers
The term mainframe computer was created to distinguish the traditional, large,
institutional computer intended to service multiple users from the smaller, single
user machines. These computers are capable of handling and processing very
large amounts of data quickly. Mainframe computers are used in large institutions
such as government, banks and large corporations. These institutions were early
adopters of computer use, long before personal computers were available to
individuals. "Mainframe" often refers to computers compatible with the computer
architectures established in the 1960s. Thus, the origin of the architecture also
affects the classification, not just processing power. 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 was a term originally referring to the cabinet containing the central
processor unit or "main frame" of a room-filling Stone Age batch machine. After
the emergence of smaller "minicomputer" designs in the early 1970s, the
traditional big iron machines were described as "mainframe computers" and
eventually just as mainframes. Nowadays a Mainframe is a very large and
expensive computer capable of supporting hundreds, or even thousands, of users
12
simultaneously. 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. 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. The distinction between small
mainframes and minicomputers is vague, depending really on how the
manufacturer wants to market its machines.
1.5.5 Workstation
13
At home, the most popular use for personal computers is for playing games and
recently for surfing the Internet.
Personal computers first appeared in the late 1970s. One of the first and most
popular personal computers was the Apple II, introduced in 1977 by Apple
Computer. During the late 1970s and early 1980s, new models and competing
operating systems seemed to appear daily. Then, in 1981, IBM entered the fray
with its first personal computer, known as the IBM PC. The IBM PC quickly
became the personal computer of choice, and most other personal computer
manufacturers fell by the wayside. P.C. is short for personal computer or IBM PC.
One of the few companies to survive IBM's onslaught was Apple Computer,
which remains a major player in the personal computer marketplace. Other
companies adjusted to IBM's dominance by building IBM clones, computers that
were internally almost the same as the IBM PC, but that cost less. Because IBM
clones used the same microprocessors as IBM PCs, they were capable of running
the same software. Over the years, IBM has lost much of its influence in directing
the evolution of PCs. Therefore after the release of the first PC by IBM the term
PC increasingly came to mean IBM or IBM-compatible personal computers, to
the exclusion of other types of personal computers, such as Macintoshes. In recent
years, the term PC has become more and more difficult to pin down. In general,
though, it applies to any personal computer based on an Intel microprocessor, or
on an Intel-compatible microprocessor. For nearly every other component,
including the operating system, there are several options, all of which fall under
the rubric of PC
14
power and graphics capability as low-end workstations by Sun Microsystems,
Hewlett-Packard, and DEC.
Actual personal computers can be generally classified by size and chassis / case.
The chassis or case is the metal frame that serves as the structural support for
electronic components. Every computer system requires at least one chassis to
house the circuit boards and wiring. The chassis also contains slots for expansion
boards. If you want to insert more boards than there are slots, you will need an
expansion chassis, which provides additional slots. There are two basic flavors of
chassis designs–desktop models and tower models–but there are many variations
on these two basic types. Portable computers include notebook and sub notebook
computers, hand-held computers, palmtops, and PDAs.
The term refers to a computer in which the power supply, motherboard, and mass
storage devices are stacked on top of each other in a cabinet. This is in contrast to
desktop models, in which these components are housed in a more compact box.
The main advantage of tower models is that there are fewer space constraints,
which makes installation of additional storage devices easier.
15
[Link] Notebook computer
Notebook computers typically weigh less than 6 pounds and are small enough to
fit easily in a briefcase. Aside from size, the principal difference between a
notebook computer and a personal computer is the display screen. Notebook
computers use a variety of techniques, known as flat-panel technologies, to
produce a lightweight and non-bulky display screen. The quality of notebook
display screens varies considerably. In terms of computing power, modern
notebook computers are nearly equivalent to personal computers. They have the
same CPUs, memory capacity, and disk drives. However, all this power in a small
package is expensive. Notebook computers cost about twice as much as
equivalent regular-sized computers. Notebook computers come with battery packs
that enable you to run them without plugging them in. However, the batteries
need to be recharged every few hours.
A laptop computer is a small and portable computer which is small enough that it
can sit on your lap. Nowadays, laptop computers are more frequently called
notebook computers.
A portable computer that is slightly lighter and smaller than a full-sized notebook
computer. Typically, sub notebook computers have a smaller keyboard and
screen, but are otherwise equivalent to notebook computers.
16
information manager) functions, such as a calendar and address book. Some
manufacturers are trying to solve the small keyboard problem by replacing the
keyboard with an electronic pen. However, these pen-based devices rely on
handwriting recognition technologies, which are still in their infancy. Hand-held
computers are also called PDAs, palmtops and pocket computers.
[Link] Palmtop
A Palmtop is a small computer that literally fits in your palm. Compared to full-
size computers, palmtops are severely limited, but they are practical for certain
functions such as phone books and calendars. Palmtops that use a pen rather than
a keyboard for input are often called hand-held computers or PDAs. Because of
their small size, most palmtop computers do not include disk drives. However,
many contain PCMCIA slots in which you can insert disk drives, modems,
memory, and other devices. Palmtops are also called PDAs, hand-held computers
and pocket computers.
PDA is short for personal digital assistant, a handheld device that combines
computing, telephone/fax, and networking features. A typical PDA can function
as a cellular phone, fax sender, and personal organizer. Unlike portable
computers, most PDAs are pen-based, using a stylus rather than a keyboard for
input. This means that they also incorporate handwriting recognition features.
Some PDAs can also react to voice input by using voice recognition technologies.
The field of PDA was pioneered by Apple Computer, which introduced the
Newton MessagePad in 1993. Shortly thereafter, several other manufacturers
offered similar products. To date, PDAs have had only modest success in the
marketplace, due to their high price tags and limited applications. However, many
experts believe that PDAs will eventually become common gadgets.
PDAs are also called palmtops, hand-held computers and pocket computers.
17
1.6 Computer sizes and power
Computers can be generally classified by size and power as follows, though there
is considerable overlap:
John von Neumann first formally described the design of stored program
architecture in the paper First Draft of a Report on the EDVAC which was
distributed in 1945. Several developers of ENIAC, recognizing its flaws, came up
with a far more flexible and elegant design, which came to be known as the
"stored program architecture" or von Neumann architecture. The first working
prototype to be demonstrated as a stored program computer was the Manchester
Small-Scale Experimental Machine (SSEM or "Baby") in 1948. The Electronic
Delay Storage Automatic Calculator (EDSAC), completed a year after the SSEM
at Cambridge University, was the first practical, non-experimental
implementation of the stored program design and was put to use immediately for
research work at the university. Shortly thereafter, the machine originally
described by von Neumann's paper—EDVAC—was completed but did not see
full-time use for an additional two years.
18
1.7 Uses of Computers
19
Mathematical Calculations - Thanks to computers, which have
computing speeds of over a million calculations per second we can
perform the biggest of mathematical calculations.
Banks - All financial transactions are done by computer software. They
provide security, speed and convenience.
Travel - One can book air tickets or railway tickets and make hotel
reservations online.
Telecommunications - Software is widely used here. Also all mobile
phones have software embedded in them.
Defense - There is software embedded in almost every weapon. Software
is used for controlling the flight and targeting in ballistic missiles.
Software is used to control access to atomic bombs.
E-Learning – Instead of a book it is easier to learn from an E-learning
software.
Gambling-You can gamble online instead of going to a casino.
Examinations-You can give online exams and get instant results. You can
check your examination results online.
Computers in Business - Shops and supermarkets use software, which
calculate the bills. Taxes can be calculated and paid online. Accounting is
done using computers. One can predict future trends of business using
artificial intelligence software. Software is used in major stock markets.
One can do trading online. There are fully automated factories running on
software.
Certificates - Different types of certificates can be generated. It is very
easy to create and change layouts.
ATM machines - The computer software authenticates the user and
dispenses cash.
Marriage - There are matrimonial sites through which one can search for
a suitable groom or bride.
News-There are many websites through which you can read the latest or
old news.
20
Classmates-There are many alumni websites through which you can
regain contact with your classmates.
Robotics - Robots are controlled by software.
Washing Machines - They operate using software.
Microwave Oven - They are operated by software.
Planning and Scheduling - Software can be used to store contact
information, generating plans, scheduling appointments and deadlines.
Plagiarism - Software can examine content for plagiarism.
Greeting Cards - You can send and receive greetings pertaining to
different occasions.
Sports – Software is used for making umpiring decisions. There are
simulation software using which a sportsperson can practice his skills.
Computers are also to identify flaws in technique.
Aero planes – Pilots train on software, which simulates flying.
Weather analysis – Supercomputers are used to analyze and predict
weather.
21
Figure 1-1 Computer System
The term Input/output (I/O) refers to the process of getting information into and
out of the computer system. Input refers to those parts of the computer
responsible for receiving information to programs. The term Output refers to
those parts of the computer that provide results from computation to the system
user.
The Central Processing Unit (CPU) is the heart of the computer and often referred
to as the “brain” of the computer. It is the component that actually executes
instructions which are organized in programs ("software"). These programs are
the ones that tell the computer what to do. The CPU is responsible for controlling
all activities of the computer system.
22
Memory
Input and Output devices (collectively termed I/O)
Inside each of these parts are thousands to trillions of small electrical circuits
which can be turned off or on by means of an electronic switch. Each circuit
represents a bit (binary digit) of information so that when the circuit is on it
represents a "1", and when off it represents a "0" (in positive logic representation).
The circuits are arranged in logic gates so that one or more of the circuits may
control the state of one or more of the other circuits.
The control unit, ALU, registers, and basic I/O are collectively known as a central
processing unit (CPU). Early CPUs were composed of many separate components
but since the mid-1970s CPUs have typically been constructed on a single
integrated circuit called a microprocessor.
23
1. Read the code for the next instruction from the cell indicated by the
program counter.
2. Decode the numerical code for the instruction into a set of commands or
signals for each of the other systems.
3. Increment the program counter so it points to the next instruction.
4. Read whatever data the instruction requires from cells in memory (or
perhaps from an input device). The location of this required data is
typically stored within the instruction code.
5. Provide the necessary data to an ALU or register.
6. If the instruction requires an ALU or specialized hardware to complete,
instruct the hardware to perform the requested operation.
7. Write the result from the ALU back to a memory location or to a register
or perhaps an output device.
8. Jump back to step (1).
Since the program counter is (conceptually) just another set of memory cells, it
can be changed by calculations done in the ALU. Adding 100 to the program
counter would cause the next instruction to be read from a place 100 locations
further down the program. Instructions that modify the program counter are often
known as "jumps" and allow for loops (instructions that are repeated by the
computer) and often conditional instruction execution (both examples of control
flow).
Arithmetic
Logic
Addition
24
Subtraction
Multiplication
Division
Trigonometry functions (sine, cosine, etc.)
Square roots
Any computer that is capable of performing just the simplest operations can be
programmed to break down the more complex operations into simple steps that it
can perform. Therefore, any computer can be programmed to perform any
arithmetic operation (although it will take more time to do so if its ALU does not
directly support the operation). An ALU may also compare numbers and return
Boolean truth values (true or false) depending on whether one is equal to, greater
than or less than the other.
AND
OR
XOR
NOT
These can be useful both for creating complicated conditional statements and
processing Boolean logic.
Superscalar computers may contain multiple ALUs so that they can process
several instructions at the same time. Graphics and computers with SIMD and
MIMD features often provide ALUs that can perform arithmetic on vectors and
matrices.
[Link] Memory
A computer's memory can be viewed as a list of cells into which numbers can be
placed or read. Each cell has a numbered "address" and can store a single number.
Its size is normally measured in bits. The Magnetic core memory was the first
25
computer memory to be used throughout the 1960s, until it was replaced by
semiconductor memory.
In almost all modern computers, each memory cell is set up to store binary
numbers in groups of eight bits (called a byte). Each byte is able to represent 256
different numbers (28 = 256); either from 0 to 255 or −128 to +127. To store
larger numbers, several consecutive bytes may be used (typically, two, four or
eight). When negative numbers are required, they are usually stored in two's
complement notation. Other arrangements are possible, but are usually not seen
outside of specialized applications or historical contexts. A computer can store
any kind of information in memory if it can be represented numerically. Modern
computers have billions or even trillions of bytes of memory.
The CPU contains a special set of memory cells called registers that can be read
and written too much more rapidly than the main memory area. There are
typically between two and one hundred registers depending on the type of CPU.
Registers are used for the most frequently needed data items to avoid having to
access main memory every time data is needed. As data is constantly being
worked on, reducing the need to access main memory (which is often slow
compared to the ALU and control units) greatly increases the computer's speed.
RAM can be read and written to anytime the CPU commands it, but ROM is pre-
loaded with data and software that never changes, so the CPU can only read from
it. ROM is typically used to store the computer's initial start-up instructions. In
general, the contents of RAM are erased when the power to the computer is
turned off, but ROM retains its data indefinitely. In a PC, the ROM contains a
specialized program called the BIOS that orchestrates loading the computer's
operating system from the hard disk drive into RAM whenever the computer is
26
turned on or reset. In embedded computers, which frequently do not have disk
drives, all of the required software may be stored in ROM. Software stored in
ROM is often called firmware, because it is notionally more like hardware than
software. Flash memory blurs the distinction between ROM and RAM, as it
retains its data when turned off but is also rewritable. It is typically much slower
than conventional ROM and RAM however, so its use is restricted to applications
where high speed is unnecessary.
In more sophisticated computers there may be one or more RAM cache memories
which are slower than registers but faster than main memory. Generally
computers with this sort of cache are designed to move frequently needed data
into the cache automatically, often without the need for any intervention on the
programmer's part.
I/O is the means by which a computer exchanges information with the outside
world. Devices that provide input or output to the computer are called peripherals.
On a typical personal computer, peripherals include input devices like the
keyboard and mouse, and output devices such as the display and printer. Hard
disk drives, floppy disk drives and optical disc drives serve as both input and
output devices. Computer networking is another form of I/O.
I/O devices are complex computers in their own right with their own CPU and
memory. A graphics processing unit might contain fifty or more tiny computers
that perform the calculations necessary to display 3D graphics Modern desktop
computers contain many smaller computers that assist the main CPU in
performing I/O.
27
Sequential - Obtained by proceeding through the storage medium from
the beginning until the designated area is reached (as in magnetic tape).
Random Access - Direct access (as in floppy and hard disks).
Number System defines a set of values used to represent ‘quantity’. The term
Base (or Radix) refers to the total number of digits available in a number system.
The Binary Number System contains 2 unique digits 0 and 1. it is known as Base
2 system.
There are 8 unique digits available in octal number system. These are 0, 1, 2, 3, 4,
5, 6, and 7. Thus, any number formed is the combination of these digits. It is
known as Base 8 system.
There are 16 unique digits available in Hexadecimal number system. These are 0,
1, 2, 3, 4, 5, 6, 7, 8, A, B, C, D, E, F where A denotes 10, B denotes 11………, F
denotes 15. Thus any number formed is a combination of these digits. It is known
as Base 16 system.
28
1.9.5 Converting Between Number Bases
Integer Part
Remainder method
[Link].1 Procedure
1. Divide the decimal number by the base of the target number system that is,
to convert decimal to binary, divide the decimal number with 2 (the base
of binary number system), 8 for octal and 16 for hexadecimal.
2. Note the remainder separately as the first digit from the right. In case of
hexadecimal, if the remainder exceeds 9, convert the remainder into
equivalent hexadecimal form. For e.g., if the remainder is 10 then note the
remainder as A.
3. Continually repeat the process of dividing until the quotient is zero and
keep writing the remainders after each step of division.
4. Finally, when no more division can occur, write down the remainders in
reverse order.
Fractional Part
29
[Link] Converting Binary, Octal and Hexadecimal to Decimal
The method used for conversion of a binary, octal and hexadecimal number to
decimal number involves each digit of the binary, octal or hexadecimal number to
be multiplied by its weighted position, and then each of the weighted values are
added to get the decimal number.
Example:
Binary Number 1 1 0 1 0
Weight of each bit 24 22 22 21 20
Weighted Value 24 * 1 23 * 1 22 * 0 21 * 1 20 * 0
Solved
16 8 0 2 0
Multiplication
[Link].1 Procedure
A radix (base), defines the number of possible values that a digit may have. In the
base 10 (decimal) number system, one of the 10 values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 is
30
used for each digit of a number. The most natural system for representing
numbers in a computer is base 2 (also called "binary"), in which data is
represented as a collection of 1's and 0's. As we will see below, working with
binary numbers is easy once we know how to do it.
The general form for determining the value of a number in a radix k number
system is shown below:
The value of the digit in position i is given by bi. There are n digits to the left of
the radix point and there are m digits to the right of the radix point. This form of a
number (in which each position has an assigned weight) is referred to as a
weighted position code.
1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 + 0 x 2-1 + 1 x 2-2 =
This shows how a base 2 number can be converted into a base 10 number using
the polynomial method. The idea is to multiply each digit by the weight assigned
to its position (powers of two in this example) and then sum up the terms to obtain
the converted number. Although conversions can be made among all of the bases
in this way, some bases pose special problems, as discussed in the next section.
31
[Link] Conversions among Radices
In converting from base 10 to base 2, the integer and fractional parts of the
number are converted separately. Consider converting (23.375) 10 to base 2. We
begin by separating the number into its integer and fractional parts:
As a result of dividing the original integer by 2, we discover the value of the first
binary coefficient b0. We can repeat this process on the remaining polynomial and
determine the value of b1. We can continue iterating the process on the remaining
polynomial and thus obtain all of the bi. This process forms the basis of the
remainder method of converting integers between bases.
We now apply the remainder method to convert 2310 to base 2. As shown below,
32
A conversion from a base 10 integer to a base 2 integer using the remainder
method
We can check the result by converting it from base 2 back to base 10 using the
polynomial method:
101112= 1 x 24 + 0 x 23 + 1 x 22 + 1 x 21 + 1 x 20
= 16 + 0 + 4 + 2 + 1
= 2310
33
At this point, we have converted the integer portion of 23.375 10 into base 2. We
still need to convert the fractional portion, which we can accomplish by
successively multiplying the fraction by 2 as described below.
We thus discover the coefficient b_-1. If we iterate this process on the remaining
fraction, then we will obtain successive b-i. This process forms the basis of the
multiplication method of converting fractions between bases. For the example
used here, the initial fraction (.375) 10 is less than 1. If we multiply it by 2, then the
resulting number will be less than 2. The digit to the left of the radix point will
then be 0 or 1. This is the first digit to the right of the radix point in the converted
base 2 number, as shown in the figure.
We repeat the process on the fractional portion until we are either left with a
fraction of 0, at which point only trailing 0's are created by additional iterations,
or we have reached the limit of precision used in our representation. The digits are
collected and the result is obtained: (.375)10 = (.011)2.
34
For this process, the multiplier is the same as the target base. The multiplier is 2
here, but if we wanted to make a conversion to another base, such as 3, then we
would use a multiplier of 3.
We can check the result of the conversion by converting from base 2 back to base
10 using the polynomial method as shown below:
We now combine the separate conversions for the integer and fractional portions
of the number and obtain the final result:
(23.375)10 = (10111.011)2
Although this method of conversion will work among all bases, some precision
can be lost in the process. For example, not all terminating base 10 fractions have
a terminating base 2 form. Consider converting (.2)10 to base 2 as shown below.
A terminating base 10 fraction that does not have a terminating base 2 form
In the last row of the conversion, the fraction .2 reappears, and so the process
repeats ad infinitum. As to why this can happen, consider that any non-repeating
base 2 integer can be represented as i/2k for some integers i and k. (Repeating
fractions in base 2 cannot be so represented.) Algebraically,
35
i/2k = ix5k/(2kx5k) = ix5k/10k = j/10k
where j is the integer ix5^k. The fraction is thus non-repeating in base 10. This
hinges on the fact that only non-repeating fractions in base b can be represented as
i/bk for some integers i and k. The condition that must be satisfied for a non-
repeating base 10 fraction to have an equivalent non-repeating base 2 fraction is:
where j = i/5k, and 5k must be a factor of i. For one digit decimal fractions, only
(.0)10 and (.5)10 are non-repeating in base 2 (20% of the possible fractions); for
two digit decimal fractions, only (.00)10, (.25)10, (.50)10, and (.75)10 are non-
repeating (4% of the possible fractions); etc. There is a link between relatively
prime numbers and repeating fractions, which is helpful in understanding why
some terminating base 10 fractions do not have a terminating base 2 form.
36
Values for digits in the binary, octal, decimal, and hexadecimal number systems
In comparing the base 2 column with the base 8 and base 16 columns, we need
three bits to represent each base 8 digit in binary, and we need four bits to
represent each base 16 digit in binary. In general, k bits are needed to represent
each digit in base 2k, in which k is an integer, so base 23 = 8 uses three bits and
base 24 = 16 uses four bits.
In order to convert a base 2 number into a base 8 number, we partition the base 2
number into groups of three starting from the radix point, and pad the outermost
groups with 0's as needed to form triples. Then, we convert each triple to the octal
equivalent. For conversion from base 2 to base 16, we use groups of four.
Consider converting 101102 to base 8:
Notice that the leftmost two bits are padded with a 0 on the left in order to create a
full triplet.
37
The conversion methods can be used to convert a number from any base to any
other base, but it may not be very intuitive to convert something like (513.03) 6 to
base 7. As an aid in performing an unnatural conversion, we can convert to the
more familiar base 10 forms as an intermediate step, and then continue the
conversion from base 10 to the target base. As a general rule, we use the
polynomial method when converting into base 10, and we use the remainder and
multiplication methods when converting out of base 10.
We need to learn how to perform simple binary addition so that we can represent
signed binary numbers. Binary addition is performed similar to the way we
perform decimal addition by hand, as illustrated below.
Two binary numbers A and B are added from right to left, creating a sum and a
carry in each bit position. Since the rightmost bits of A and B can each assume
one of two values, four cases must be considered: 0 + 0, 0 + 1, 1 + 0, and 1 + 1,
with a carry of 0, as shown in the figure. The carry into the rightmost bit position
defaults to 0. For the remaining bit positions, the carry into the position can be 0
or 1, so that a total of eight input combinations must be considered as shown in
the figure.
38
Notice that the largest number we can represent using the eight-bit format shown
in Figure above is 111111112 = 25510 and that the smallest number that can be
represented is 000000002 = 010. The bit patterns 11111111 and 00000000 and all
of the intermediate bit patterns represent numbers on the closed interval from 0 to
255, which are all positive numbers. Up to this point we have considered only
unsigned numbers, but we need to represent signed numbers as well. Four
common representations for base 2 signed numbers are discussed in this section.
+1210 = 000011002
-1210 = 100011002
The negative number is formed by simply changing the sign bit in the positive
number from 0 to 1. Notice that there are both positive and negative
representations for zero: 00000000 and 10000000.
There are eight bits in this example format, and all bit patterns represent valid
numbers, so there are 28 = 256 possible patterns. Only 28 - 1 = 255 different
numbers can be represented, however, since +0 and -0 represent the same number.
In the one's complement representation, the leftmost bit is 0 for positive numbers
and is 1 for negative numbers, as it is for the signed magnitude representation. A
39
negation is made by changing 1's to 0's and changing 0's to 1's, which is known as
complementing the bits. Consider again representing +1210 and -12 10 in an eight-
bit format, now using the one's complement representation:
+1210 = 000011002
-12 10= 111100112
Note again that there are representations for both +0 and -0, which are 00000000
and 11111111, respectively. As a result, there are only 28 - 1 = 255 different
numbers that can be represented even though there are 28 different bit patterns.
In the two's complement representation, the leftmost bit is 0 for positive numbers
and is 1 for negative numbers. A negation is made by adding 1 to the one's
complement negation. Consider again representing +12 10and -12 10in an eight-bit
format, this time using the two's complement representation:
+1210 = 000011002
-12 10= 111101002
(+0)10 = (00000000)2
40
There is an equal number of positive and negative numbers. Zero is considered to
be a positive number because its sign bit is 0. The positive numbers start at 0, but
the negative numbers start at -1, and so the magnitude of the most negative
number is one greater than the magnitude of the most positive number. The
positive number with the largest magnitude is +127, and the negative number with
the largest magnitude is -128. There is thus no positive number that can be
represented that corresponds to the negative of -128. If we try to form the two's
complement negative of -128, then we will arrive at a negative number, as shown
below:
-12810 = 100000002
01111111
+ 1
------------
100000002
41
Activity 1
42
Reference
Dick, D.(2002) .PC Multimedia & Web, Technology and Techniques. 2nd Edition,
Dumbreck Publishing.
[Link]
43
UNIT 2
COMPUTER HARDWARE
2 COMPUTER HARDWARE
2.1 Aim
2.2 Objectives
2.3 Definition
44
Figure 2-3 Computer hardware
Input hardware refers to the tangible components of a computer that deal with
original data input. The following are instances of computer input:
Keyboard
Mouse
Voice recognition hardware
Scanner
Digital camera
2.4.1 Keyboard
45
Figure 2-4 Keyboard
2.4.2 Mouse
46
spring-loaded regions of their top surface that operate switches when pressed
down lightly. The mouse's motion typically translates into the motion of a cursor
on a display, which allows for fine control of a graphical user interface.
2.4.4 Scanner
47
Figure 2-7 Scanner
48
Figure 2-8 Camera
The screenshot represents both the front and back ends of a Canon PowerShot
A95 camera. Digital cameras can do things film cameras cannot:
displaying images on a screen immediately after they are recorded
storing thousands of images on a single small memory device
recording video with sound
49
deleting images to free storage space
crop pictures
perform elementary image editing
The optical system works the same as in film cameras, typically using a lens with
a variable diaphragm to focus light onto an image pickup device. The diaphragm
and shutter admit the correct amount of light to the imager, just as with film but
the image pickup device is electronic rather than chemical. Digital cameras are
also incorporated into many devices ranging from PDAs and mobile phones
(called camera phones) to vehicles. The Hubble Space Telescope and other
astronomical devices are essentially specialized digital cameras.
2.5.1 Port
A Port is a pathway for data to go into and out of the computer from external
devices such as keyboards. There are many standard ports as well as custom
electronic ports designed for special purposes. Ports follow standards that define
their use; for instance,
Electronic
Magnetic
50
Optical
The following are the basic characteristics of the device that can “read” that
information from the magnetic storage medium.
51
[Link] Optical
Optical technology uses lasers to “read” the binary information from the medium,
usually a disc. DVDs and CDs use this kind of data storing technology. A laser
light is often used to burn data onto such discs. These discs have the following
properties:
Millions of tiny holes are “burned” into the surface of the disc using a
DVD RW / CD RW drive.
The holes are interpreted as 1s. The absences of holes are interpreted as
0s.
Figure 2-11 CD
These are input devices which are normally used by a computer system to store
information and then to retrieve that information as needed. They are usually
external to the computer and commonly consist of floppy disks, hard disk drives,
or CD-ROMs. Secondary memory uses binary and its capacity is measured in
bytes. The four most important characteristics of storage devices:
52
Speed refers to Access time which defines how fast information can be taken
from or stored onto the computer memory device’s medium. The electronic
circuits are the fastest to access (40 billionths of a second). Floppy disks are very
slow in comparison to electronic circuits. They take up to 1/2 second to reach full
speed before access is even possible.
1 nibble 4 bits
1 million bytes
1 billion bytes
Units Equivalent
1 bit 1 binary bit
1 nibble 4 bits
53
1 byte 8 bits
1 kilobyte 1024 bytes
1 megabyte 1024 kilobytes
1gigabyte 1024 megabytes
1 terabyte 1024 gigabytes
The Output Units are used for storing and displaying information (calculated
results and other messages). These units can be classified into those that produce:
Audio output
Visual output
Hardcopy output
Storage
The Visual display unit (often known as the monitor or screen) is used for visual
output by all basic computer systems. The display monitors come in two types:
54
2.6.2 LCD
The figure above is an example of a LCD monitor. LCD displays were used on
laptop computers before the technology improved enough to make the jump to
desktop monitors. An LCD monitor consists of five layers:
a backlight
a sheet of polarized glass
a "mask" of colored pixels
a layer of liquid crystal solution responsive to a wired grid of x, y
coordinates
a second polarized sheet of glass
Contrast ratio relates to the display's comparative difference between its brightest
white values and its darkest black values. A higher contrast ratio will have truer
colors with less "wash out." The standard offering for lower end models is
commonly 350:1. Many experts recommend a contrast ratio of 500:1 or better.
55
An LCD monitor is brighter than a CRT, giving the consumer little reason to hunt
for an especially bright model. Brightness is measured in nits, or one candela per
square meter. Anywhere from 250 - 300 nits is standard. If the nits are much
higher you'll likely end up adjusting the brightness way down.
Response time is measured in milliseconds (ms) and refers to how long it takes
pixels to turn from completely white to black and back again. Smaller values
represent a faster response time and are more desirable, especially for gaming or
viewing video. If the response time is slow, "ghosting" or "trailing" can occur
with fast-moving images, as repaints of the screen overlap. A maximum response
time should be no more than 25ms for general use, and 17ms is better. Many
gamers report no ghosting using an LCD monitor with a response time of 16ms or
less.
LCDs use only one-third to one-half the electricity of their CRT counterparts.
They are much easier on the eyes, take up 90% less space, and only weigh a few
pounds. They also emit far less low-frequency radiation than CRTs. This makes
LCDs a great choice for nearly everyone, and ideal for people who work all day in
front of the screen. Colors may change hue as one move to the outer limits of the
viewing angle, particularly on displays with narrow viewing angles and low
contrast ratios. For this reason graphics professionals that require exacting color
consistency regardless of viewing angle generally use CRTs, though LCDs have
improved in this regard.
56
An LCD monitor comes in standard sizes from 15-inches to 21-inches, and larger.
The viewing screen is the same size as the rated display, unlike CRT monitors.
Therefore a 15-inch LCD will have a 15-inch viewing screen.
2.6.3 CRT
CRT stands for cathode ray tube, describing the technology inside an analog
computer monitor or television set. The CRT monitor creates a picture out of
many rows or lines of tiny colored dots. These are technically not the same thing
as pixels, but the terms are often used interchangeably. The more the lines of dots
per inch, the higher and clearer the resolution becomes on a CRT. Therefore a
1024 x 768 resolution will be sharper than a 800 x 600 resolution because the
former uses more lines creating a denser, more detailed picture. Higher
resolutions are important for displaying the subtle detail of graphics.
57
exposed to any kind of radiation, absorbing ultraviolet light and emitting visible
light of fluorescent color. Phosphors that emit red, green and blue light are used in
a color monitor, arranged as "stripes" made up of dots of color. The three beams
are used to excite the three colors in combinations needed to create the various
hues that form the picture.
To precisely direct the beams, copper steering coils are used to create magnetic
fields inside the tube. The fields move the electron beams vertically or
horizontally. By applying varying voltages to the steering coils, a beam can be
positioned at any point on the screen. Each image is painted on the screen and
repainted several times each second by scanning the electron beams across the
screen at incredible rates. This must be done even when the picture being
displayed is unchanging, because the phosphor only glows for a very short time.
The refresh rate indicates how many times per second the screen is repainted.
Though monitors differ in their capabilities, lower resolutions normally have
higher refresh rates because it takes less time to paint a lower resolution.
Therefore a setting of 800 x 600 might have a refresh rate of 85Hz while a
resolution setting of 1024 x 768 may have a refresh rate of 72Hz. Still higher
resolutions usually have refresh rates closer to 60Hz. Another specification
regarding CRT monitors is "dot pitch" which relates to the tightness or sharpness
of the picture. A lower dot pitch such as .25 is preferable over a higher dot pitch.
In the heyday of the CRT monitor this was an issue because some models were
sold with .32 dot pitch, resulting in "fuzzy" text. By the end of the CRT era,
virtually all displays had .28 or better and today's CRT monitors can have dot
pitches as low as .21.
The CRT monitor comes in 15-inch to 21-inch sizes (38 — 53 cm) and larger,
though the actual viewing screen is about 1 inch (2.5 cm) smaller than the rated
size. Screens are measured diagonally from corner to corner, including the case.
58
2.6.4 Projector
LCD projectors are systems that display or project information or video onto a
surface. LCD stands for liquid crystal display, the technology used to project
images. LCD projectors are the technological descendants of overhead and slide
projectors, older systems which serve the same purpose. LCD projectors are most
commonly used for displaying images in presentations or lectures, but are also
used in home theater applications.
Video signals are comprised of three colors: red, green, and blue. LCD projectors
contain a separate glass panel for each. Each panel consists of two plates of glass
with a layer of liquid crystal between them. When a charge is applied, the crystals
open to allow light through or close to block it. This opening and closing of pixels
is what forms the image.
LCD projectors use dichroic mirrors to split the light from the input source into
red, green, and blue components. Each then passes through the corresponding
panel, where pixels form an image. The three colors are then recombined in a
prism before being projected through a lens. LCD projectors use separate panels
for each color because it results in better color saturation than using a single panel
for all three.
59
While all LCD projectors perform the same fundamental task, there are many
different models available, and consumers should know what their projector will
be used for before selecting one. LCD projectors are priced based on several
factors, especially resolution. The highest resolution LCD projectors are only
worth the money for those who need to project fine details as accurately as
possible. The right amount of brightness, measured in lumens, depends on the
lighting conditions the projector will be used under, as well as audience size. A
darkened home theater requires less brightness than a fully lit conference room.
All basic computer systems need speakers for audio output. Windows machines
need special audio card for audio output. Audio output is useful for:
Music
• CD player is a computer.
60
• Most personal computers have CD players that can access both
music CDs and CD-ROMs.
Printers are used for hardcopy output which is in form of printed material. Printers
are classified into two: impact and no-impact printers. An impact printer is a
printing device typically used in conjunction with a computer that allows the
relatively rapid and repeatable printing of visual materials. Though most often
used in obsolete printers for text, some forms of impact printer, such as dot matrix
printers, continue to be used for certain purposes. Replaced by toner-based and
inkjet printers in most applications, an impact printer works by literally impacting
letters or shapes onto a piece of paper. Similar in function to a traditional
typewriter, this process involves needles or letter-shaped heads striking against an
ink-soaked ribbon and impacting a sheet of paper on the other side. Designed to
function similarly to old-fashioned typewriters, an impact printer is somewhat
simplistic but suffered from many of the same problems that typewriters faced.
Users of impact printers had to worry about changing ink ribbons, jammed heads,
and the inability for most models to create different typefaces and styles as well as
lacking the ability to make images. Bold type fonts and underline could be
61
achieved through over striking, which is applying two or more impacts to the
same region of paper. Since the letters themselves were part of the physical
construction of the printer, without changing the heads with the letters on them, a
user could not change the style or font of the printed text.
Laser printers are examples of non-impact printers. They are rapid and crisp
printers which makes them a popular choice for many consumers. Laser printers
begin a print job by receiving data from a computer and routing it through a
central controller, a small computer inside the printer which manages the printer.
Many laser printers have a controller which is capable of handling several jobs at
once. They queue them up, and then print them. This ability to handle multiple
sets of data makes laser printers quite popular. After the controller has determined
what is going to be printed, the process begins.
62
Inside a laser printer there is a drum which holds an electric charge. Next to the
drum is a transfer corona roller, which can negatively or positively charge the
drum as needed, as well as a toner unit. In most laser printers, the drum starts out
positively charged, although this process can also work in reverse. The controller
manipulates a small laser to “write” on the drum with a negative charge, creating
an electrostatic image.
Then, the drum is rolled through the toner, which is positively charged so that it
will cling to the areas of negative charge on the printer drum. The printer feeds a
piece of paper, which is given an even stronger negative charge by the transfer
corona wire before being rolled past the drum. The electrostatic image on the
drum will transfer to the paper, which is then discharged to prevent it from
clinging to the drum. Then it is fed through a fuser which heats the toner and
causes it to bind with the fibers in the paper.
2.7 Storage
Optical Disks (CD-ROM and DVD) are instances of storage medium used by may
computer systems. Special CD drives “burn” information into blank CDs and the
same happens to DVDs. A laser is used to “burn” craters into the surface to
represent a binary 1. Two main types of CDs:
The CD-R is a write-once and read many times optical disk. If data is burned
there once, it cannot be erased for the entire life of that media. CD-WR is similar
to the CD-R but the main difference comes of the fact that it can be erased and
new data can be written on the same disk surface again. CD-R and CD-WR carry
an average capacity of 720mb (720 megabytes) of data.
The same applies to DVDs; we have DVD-R and DVD-WR which are created by
a drive like the one below;
63
Figure 2-18 Disk Drive
A hard drive, also known as a hard disk drive or HDD, is a fundamental part of
modern computers. The hard drive is where all of your programs and files are
stored, so if the drive is damaged for some reason, you will lose everything on
your computer.
64
Figure 2-20 Hard Disk Drive
A hard drive uses similar memory storage technology to cassette tapes and video
tapes. You may already know that tapes store information on long, thin strips of
tape with a delicate magnetic material on its surface. Likewise, hard drives
contain round, mirror-like platters that are covered with that same magnetic
recording medium.
The platters inside a hard disk drive are usually made of glass or aluminum. It is
the polished magnetic material on the surface that makes the platter appear shiny,
like a mirror. A clean, polished surface is critical to the proper functioning of the
hard drive — even the smallest spec of dust can cause irreparable damage.
65
Just as a head inside of your cassette player or VHS player reads the data on the
tape, a head inside your hard disk drive reads and writes data to the platters. This
head is on an arm that is attached next to the platters, so that it can pivot back and
forth over them.
The average modern hard disk drive has several platters inside of it, stacked one
on top of the other, like an Oreo cookie. There is a small gap between each
platter, which allows each platter’s head to pass over it. The heads are all on the
same arm, which has a separate branch for each head, rather like the tines of a
fork turned on its side.
When you turn your computer on, the platters immediately begin to spin. The
platters in a desktop computer hard disk drive typically get up to about 7,200
rotations per minute (rpm), while the hard drives in laptop computers usually run
at 5,400 rpm. You may be able to hear the steady hum of your hard drive when
the fan is not running.
When your computer is on but you are not retrieving or writing anything to the
memory, the platters in the hard disk drive are always spinning. The arm with the
heads on it, however, only begins to move when you run a program or open, save,
or delete a file. This arm can move back and forth across the surface of the platter
as many as 50 times in a single second, causing it to appear as a blur if you ever
have the opportunity to watch. Because everything in the hard disk drive moves
so quickly, the head never actually touches the platters, instead skimming just
barely above them, supported by a cushion of moving air that is generated by the
platters’ spinning.
The rapid motion of the platters and heads inside your hard disk drive make it
susceptible to “head crash,” which is where the heads crash into the platters.
Several different things can cause head crash. If dust gets into your hard drive and
settles on the platters, it can actually cause the arm to bounce as the disk operates.
66
The magnetic recording medium is extremely fragile, and is often ruined when the
heads crash into the platters.
Activity 2
1. Identify all the computer hardware that are illustrated below [20]
67
2. State any two examples of computer input hardware other than mouse and
keyboard. [2]
3. The main memory consists of two major types namely: RAM and ROM.
i. Describe the two memories (ROM and RAM). [2]
ii. What are their main differences?
[2]
4. Briefly explain the differences between sequential and random access.
[4]
5. A general purpose computer has four main components: the arithmetic and
logic unit (ALU), the control Unit, the memory and I/O. State the roles of
each of these components [4]
68
REFERENCE
[Link]
[Link]
[Link]
69
UNIT 3
COMPUTER SOFTWARE
3 COMPUTER SOFTWARE
3.1 Aim
The reader must understand all Computer Software and Software Ethics
3.2 Objectives
3.3 Definition
70
3.4 Software Classes
An operating system (OS) is software that consisting of programs and data, that
runs on computers and manages the computer hardware. It provides common
services for efficient execution of various programs. The operating system acts as
an intermediary between application programs and the computer hardware,
although the application code is usually executed directly by the hardware, but
will frequently call the OS or be interrupted by it. Operating systems are found on
almost any device that contains a computer from cellular phones and video game
consoles to supercomputers and web servers. Microsoft Windows, Mac OS X, and
Linux are examples of popular modern operating systems for personal computers.
The operating is also responsible for management of the following activities:
Program execution
Interrupts
Modes
Memory management
Virtual memory
Multitasking
Disk access and file systems
Device drivers
71
3.4.2 Application software
These are computer programs that apply to real-world tasks through solving user
related. All good application software must have the following characteristics:
User-friendly
Easy
Intuitive
Minimum training and documentation needed to use
Freeware
Free to all
Copyrighted
Distributed in machine-readable format
Shareware
Generally developed under government grants
Freely distributed for a trial period
Pay a nominal fee to register with the author
Public-domain software
Un-copyrighted
May be used or altered without restriction
Generally developed under government grants
Open-source
Free to all
Source code is distributed
May be used or altered
Popular under the LINUX OS
Commercial software
Used most often
Copyrighted
72
Generally costly
May not be copied without permission of the manufacturer
73
Figure 3-22 Microsoft Word
Uses
Microsoft word can be used in the production of:
Memos
Reports
Correspondence
Minutes of meetings
Anything to be typed
Functions
The following are list of the functions that can be executed on the word
document or on the document’s contents:
Create
Edit
Format
Store
Print text and graphics
74
[Link] Desktop Publishing
Uses
The following is a simple list of the works of publisher.
Newsletters
Reports
Brochures
Functions
Handles high-level publishing needs
75
[Link] Electronic Spreadsheets
Microsoft Excel is a package within Microsoft office suit. It is useful for works
that require statistical analysis. The illustration below is for a publisher work on
the design of a book cover.
Uses
Comparing mortgage interest rates
Preparing budgets
Tracking weight loss
Functions
Manipulates numbers in rows and columns
Recalculates the results when a number is changed
What if?
76
[Link] Database Management
Microsoft Access is a package within Microsoft office suit which is an instance of
a database application. It is used for the production of databases. The illustration
below is for a utility database designed in Microsoft Access.
77
[Link] Presentation Graphics
Microsoft power point is a package within Microsoft office suit which is an
instance of a presentation application. It is used for the production of
presentations.
78
[Link] Computer Art
Use software to
Produce art
Express ideas
Graphic artist
Artistic ability
Computer skills
Produces computer art
Computerised systems are the major backbone in most business systems. Almost
all organizations are becoming addicted to computerized systems as they are more
79
efficient that human counter parts in performing the same tasks. The following are
instances of business areas where computers are crucial as an aid to enhance
business operations.
Accounting
Spreadsheet software
Accounting package – Basic accounting, financial statements, tax
summaries, payroll
Writing and Advertising
Word processing
Desktop publishing
Customer Service
Database management
Keeping Up and Making Contacts
Networking over the Internet
Making Sales Pitches
Graphical presentation software
80
[Link] Counterfeiting
Software counterfeiting can be defined by the following:
Software is copied onto CD-ROMS / DVD-ROMS
Package duplicates the original
Sold in flea markets or small stores
Cheaper price
Occurs more overseas
81
Activity 3
82
REFERENCE
[Link]
[Link]
[Link]
83
UNIT 4
DATABASES
4 DATABASES
4.1 Aim
The reader must understand databases, their design, models and database
management.
4.2 Objectives
Define a DBMS
4.3 Definition
84
queries) about the data stored in the database and produce reports summarizing
selected contents.
Information is data that have been organized and communicated in a coherent and
meaningful manner. Data is converted into information, and information is
converted into knowledge. Knowledge is information, which is evaluated and
organized so that it can be used purposefully.
85
Longitudinal tracking
Hierarchical databases are the oldest database models. Unlike other models, they
do not have a well documented history. The hierarchical database was the first
one developed and therefore was commonly used in the first mainframe database
management systems. They were developed out of the 1950's and 60's
Information Management Systems. Many banks and insurance companies, as well
as government departments and hospitals (for inventory and accounting systems)
still use them today. The hierarchical database stores data in a series of records.
These records have a set of field values attached to them. All instances of a
specific record are collected together as a "record type". It uses "Parent Child
Relationships" to create links between record types. It does this by using trees.
However, it is only able to cope with one tree. As well, there can only be one
parent per child, and no relationships among the child records are possible. As an
example, we could have a tree representing a university department, with sub
trees representing staff members, students, courses, and facilities. We could have
numerous department trees, but we could not have one employee working for
more than one department. In order to do this, we would have to create two
instances of the employee. Obviously, this would create inaccuracies when
updating information, as the information might not be the same for all records.
There is also the issue of data repetition in the various records. A hierarchical
database has a very structured form, as it allows no links between layers in
86
different branches of the tree. Therefore, it is easy to use for adding, updating and
deleting records.
87
[Link] Hierarchical model example
Consider this typical business situation:-
A customer can place many orders
An order can contain many details
CUSTOMER
ORDER
ORDER
DETAIL
88
Column Values Are of the Same Kind
The Sequence of Columns is Insignificant
The Sequence of Rows is Insignificant
Each Column Has a Unique Name
Certain fields may be designated as keys, which mean that searches for specific
values of that field will use indexing to speed them up. Where fields in two
different tables take values from the same set, a join operation can be performed
to select related records in the two tables by matching values in those fields.
Often, but not always, the fields will have the same name in both tables. For
example, an "orders" table might contain (customer-ID, product-code) pairs and a
"products" table might contain (product-code, price) pairs so to calculate a given
customer's bill you would sum the prices of all products ordered by that customer
by joining on the product-code fields of the two tables. This can be extended to
joining multiple tables on multiple fields. Because these relationships are only
specified at retrieval time, relational databases are classed as dynamic database
management system. The RELATIONAL database model is based on the
Relational Algebra.
89
Figure 4-30 Relational Database
90
Wide Web document structures, design and manufacturing systems, and hospital
patient record systems, which have complex relationships between data.
Advantages and disadvantages
The main benefit of creating a database with objects as data is speed. OODBMS
are faster than relational DBMS because data isn’t stored in relational rows and
columns but as objects. Objects have a many to many relationship and are
accessed by the use of pointers. Pointers are linked to objects to establish
relationships. Another benefit of OODBMS is that it can be programmed with
small procedural differences without affecting the entire system. This is most
helpful for those organizations that have data relationships that aren’t entirely
clear or need to change these relations to satisfy the new business requirements.
This ability to change relationships leads to another benefit which is that
relational DBMS can’t handle complex data models while OODBMS can.
Benchmarks between ODBMSs and RDBMSs have shown that an ODBMS can
be clearly superior for certain kinds of tasks. The main reason for this is that many
operations are performed using navigational rather than declarative interfaces, and
navigational access to data is usually implemented very efficiently by following
pointers.
91
Other things that work against ODBMS seem to be the lack of interoperability
with a great number of tools/features that are taken for granted in the SQL world,
including but not limited to industry standard connectivity, reporting tools, OLAP
tools, and backup and recovery standards. Additionally, object databases lack a
formal mathematical foundation, unlike the relational model, and this in turn leads
to weaknesses in their query support. However, this objection is offset by the fact
that some ODBMSs fully support SQL in addition to navigational access, e.g.
Objectivity/SQL++, Matisse, and InterSystems CACHÉ. Effective use may
require compromises to keep both paradigms in sync.
The popularity of the network data model coincided with the popularity of the
hierarchical data model. Some data were more naturally modeled with more than
one parent per child. So, the network model permitted the modeling of many-to-
many relationships in data. In 1971, the Conference on Data Systems Languages
(CODASYL) formally defined the network model. The basic data modeling
92
construct in the network model is the set construct. A set consists of an owner
record type, a set name, and a member record type. A member record type can
have that role in more than one set, hence the multi-parent concept is supported.
An owner record type can also be a member or owner in another set. The data
model is a simple network, and link and intersection record types (called junction
records by IDMS) may exist, as well as sets between them. Thus, the complete
network of relationships is represented by several pair wise sets; in each set some
(one) record type is owner (at the tail of the network arrow) and one or more
record types are members (at the head of the relationship arrow). Usually, a set
defines a 1: M relationship, although 1:1 is permitted. The CODASYL network
model is based on mathematical set theory.
There are number of characteristics that differ from traditional file management
system. In file system approach, each user defines and implements the needed
files for a specific application to run. For example in sales department of an
enterprise, One user will be maintaining the details of how many sales personnel
are there in the sales department and their grades, these details will be stored and
maintained in a separate file. Another user will be maintaining the salesperson
salary details working in the concern, the detailed salary report will be stored and
maintained in a separate file. Although both of the users are interested in the
data’s of the salespersons they will be having their details in separate files and
they need different programs to manipulate their files. This will lead to wastage of
space and redundancy or replication of data’s, which may lead to confusion,
sharing of data among various users is not possible, data inconsistency may occur.
These files will not be having any inter-relationship among the data’s stored in
these files. Therefore in traditional file processing every user will be defining
their own constraints and implement the files needed for the applications.
93
and then accessed by many users. The fundamental characteristic of database
approach is that the database system not only contains data’s but it contains
complete definition or description of the database structure and constraints. These
definitions are stored in a system catalog, which contains the information about
the structure and definitions of the database. The information stored in the catalog
is called the metadata, it describes the primary database. Hence this approach will
work on any type of database for example, insurance database, Airlines, banking
database, Finance details, and Enterprise information database. But in traditional
file processing system the application is developed for a specific purpose and they
will access specific database only.
The other main characteristic of the database is that it will allow multiple users to
access the database at the same time and sharing of data is possible. The database
must include concurrency control software to ensure that several users trying to
update the same data at the same time, it should maintain in a controlled manner.
In file system approach many programmers will be creating files over a long
period and various files have different format, in various application languages.
94
known as program-data independence.
Database can be used to provide persistent storage for program objects and data
structures that resulted in object oriented database approach. Traditional systems
suffered from impedance mismatch problem and difficulty in accessing the data,
which is avoided in object oriented database system. Database can be used to
represent complex relationships among data’s as well as to retrieve and update
related data easily and efficiently.
It is possible to define and enforce integrity constraints for the data’s stored in the
database. The database also provides facilities for recovering hardware and
software failures. The backup and recovery subsystem is responsible for recovery.
It reduces the application development time considerably when compared to the
file system approach and availability of up-to-date information of all the users. It
also provides security to the data’s stored in the database system.
95
A file-processing system only A database coordinates the physical
coordinates physical access to data and logical access to the data;
There is duplication A DBMS reduces the amount of data
duplication
Pre-set standards each user defines and implements the
needed files for a specific application
to run
Less secure More secure
Can not be used to represent complex Database can be used to represent
relationships among data, its difficult to complex relationships among data’s as
update data efficiently and easily. well as to retrieve and update related
data easily and efficiently.
96
Activity 4
1. State any four differences between databases and file system [4]
2. Define the following terms
i. Hierarchical database model [2]
ii. Object oriented database model [2]
iii. Network topology [2]
iv. DBMS [2]
Name ID Grade
Alice 1 A
Bob 2 B
Cathy 3 C
Danny 4 A
97
Reference:
Apte, C., B. Liu, E.P.D. Pednault and P. Smyth (2002). Business applications of
data mining. CACM 45(8): 49–53.
Berson, A. and S.J. Smith (1997). Data Warehousing, Data Mining and OLAP.
New York, McGraw- Hill.
Blaha, M.R., W.J. Premerlani and J.E. Rumbaugh (1988). Relational database
design using an object-oriented methodology. Comm. of ACM 31(4): 414–27.
Bobrowski, S.M. (1998). Oracle 8 Architecture. Berkeley, CA, Mcgraw-
98
UNIT 5
TELECOMMUNICATIONS
5 TELECOMMUNICATIONS
5.1 Aim
5.2 Objectives
5.3 Definition
99
Figure 5-31 Network
NIC refers to Network Interface Card. Switch and Routers are examples of
Network devices(see network devices).
5.4 Networks
Computer Networks are categorized into three: that is, LAN, MAN and WAN
Local Area Networks (LAN)
Metropolitan Area Networks (MAN)
Wide Area Networks (WAN)
100
LANs using circuit switching are available. ATM LANs, fibre channel baseband,
and broadband LANs are being used.
5.4.2 WANs
WANs were developed to communicate over a large geographical area (e.g. lab-
to-lab; city-to-city; east coast-to-west coast; North America-to-South America
etc). WANs require the crossing of public right of ways (under control and
regulations of the interstate commerce and institute of telephone and data
communications established by the government and international treaties). WANs
around the world rely on the infrastructure established by the telephone
companies (“common carrier”) or public switched telephone network (PSTN).
WANs consist of a number of interconnected switching. Transmission signals are
routed across the network automatically by software control to the specified
destination. The purposes of these nodes are to route messages through switching
facilities to move data from node to node to its destination. WANs originally
implemented circuit switching and packet switching technologies. Recently,
frame relay and asynchronous transfer mode (ATM) networks have been
implemented to achieve higher operating and processing speeds for the message.
WAN are owned by the common carrier in the U.S. and government in most
foreign countries. Interconnected devices, I.e. LANs or Personal Computers (PC)
or Workstation or Servers can be (usually are) privately owned by companies.
Network topology refers to the way that your computer network is arranged. The
network can have a physical or a logical topology. The physical topology
describes the layout of computers and where the workstations are positioned. The
logical network topology describes how the information flows through the
network. Ring, Star, Bus, Mesh and Hybrid are examples of Network Topologies.
101
5.5.1 Bus Topology
Each node is daisy-chained (connected one right after the other) along the same
backbone. Information sent from a node travels along the backbone until it
reaches its destination node. Each end of a bus network must be terminated with a
resistor.
The Nodes can be computers or any other devices that are able to communicate
(share data) in a Computer Network. The Backbone is a communication media:
that is, the means of connection between the communicating devices. Twisted pair
cables, coaxial cable and fiber optic cables are good instances of communication
media.
Similar to a bus network, rings have nodes daisy chained, but the end of the
network in a ring topology comes back around to the first node, creating a
complete circuit. Each node takes a turn sending and receiving information
through the use of a token. The token along with any data is sent from the first
102
node to the second node which extracts the data addressed to it and adds any data
it wishes to send. Then second node passes the token and data to the third node,
etc. until it comes back around to the first node again. Only the node with the
token is allowed to send data. All other nodes must wait for the token to come to
them.
103
Figure 5-34 Star Topology
A Star network topology can be blended with network topologies like the Ring
and to Bus topology to form a hybrid network topology.
104
Figure 5-35 Hybrid Network
105
[Link] Coaxial cable
This is the widely used medium and is installed for use in business and
corporation Ethernet and other types of LANs. It consists of inter copper insulator
covered by cladding material, and then covered by an outer jacket.
[Link].1 Applications:
TV distribution (cable TV); long distance telephone transmission; short
run computer system links
Local area networks
106
Figure 5-37 Twisted Pair Cable
107
Twisted together to reduce cross talk
Often bundled into cables of two or four twisted pairs
If enclosed in a sheath then is shielded twisted pair (STP) otherwise often
for home usage unshielded twisted pair (UTP).
[Link].3 Application:
Common in building for digital signaling used at speed of 10’s Mb/s
(CAT3) and 100Mb/s (CAT5) over 100s meters.
Common for telephone interconnection at home and office buildings
Multimode fiber is optical fiber that is designed to carry multiple light rays or
modes concurrently, each at a slightly different reflection angle within the optical
fiber core. It is used for relatively short distances because the modes tend to
disperse over longer lengths (this is called modal dispersion). For longer
108
distances, single mode fiber (sometimes called monomode) fiber is used. In single
mode fiber a single ray or mode of light act as a carrier
[Link].2 Applications:
Long distance telecommunication
high attenuation (reduction in strength of signal) communication
environment
Electromagnetic infested environment.
Satellite is a microwave relay station. Satellite ground stations are aligned to the
space satellite, establishes a link, broadcast at a specified frequency. Ground
station normally operates at a number of frequencies. Satellite space antenna is
aligned to the ground station establishes a link and transmits at the specified
frequency. Satellites are capable of transmitting at multiple frequencies
simultaneously, full duplex. To avoid satellites from interfering with each other, a
4 degree separation is required for 4/6 GHz band and 3 degree for 12/14 GHz
band.
109
Figure 5-39 Space Satellite
110
26 GHz to 40 GHz: for microwave with highly directional beam as
possible
30 MHz to 1 GHz: for Omni directional applications
300MHz to 20000 GHz: for infrared spectrum; used for point to point and
multiple point application (line of sight)
5.7.1 Hubs
A hub is the central component place where data converges from one or more
directions and is forwarded out in one or more directions in a LAN. There are four
components in a basic wired hub network:
Ethernet wire: This is the physical cable that links the computers
together, enabling them to communicate. The Ethernet cable, also called
twisted pair, or 10-Base T, plugs into a network card located in each
computer on the LAN.
111
Network Interface Cards (NICs): One of these cards goes into a vacant
PCI slot inside each computer. The back of the card features a port for one
end of an Ethernet cable. Newer computers normally have a networking
card built-in.
Networking Hubs: The networking hub is a junction box with several
ports in the back for receiving the Ethernet cables that are plugged into
each computer on the LAN. With Ethernet cables going from each NIC to
the hub, all computers are connected to the hub.
Networking Software: Most operating systems today come with
networking software built-in, but the software is also available from third
parties. The software works with the hardware to create a networking
environment on each computer, allowing the user to see shared files and
recourses. It also allows for administration of the network.
With a group of computers wired to the hub and the software installed, the
computers can talk to each other. Networking hubs will broadcast all traffic that
comes through the hub to all machines or nodes connected to the LAN. Each
computer/node on the LAN will have its own address, called a MAC (Medium
Access Control) address. Each node will ignore any traffic not addressed to its
MAC address.
Networking hubs are simple devices that are fine for home use in most cases, but
not considered optimal for workplace environments. Networking hubs can only
operate in half-duplex mode -- a computer cannot receive and send transmissions
at the same time. Another drawback is that networking hubs broadcast traffic
indiscriminately to all machines on the LAN. This opens the door to security
issues, making it easy to use so-called "packet sniffers," for instance, to snoop on
all network traffic.
5.7.2 Gateway
112
A gateway is a network point that acts as an entrance to another network. On the
internet, in terms of routing, the network consists of gateway nodes and host
nodes. Host nodes are computer of network users and the computers that serve
contents (such as Web pages). Gateway nodes are computers that control traffic
within your company’s network or at your local internet service provider (ISP). A
gateway interconnects dissimilar protocols and servers, and Macintosh and IBM
LANs and equipment
5.7.3 Router
5.7.4 Bridge
A bridge is a product that connects a local area network (LAN) to another local
area network that uses the same protocol (for example, Ethernet or token ring). A
bridge examines each message on a LAN, "passing" those known to be within the
same LAN, and forwarding those known to be on the other interconnected LAN
(or LANs). A bridge interconnects two LANs that use the SAME logical link
control protocol but may use different medium access control protocols.
5.7.5 Switch
A networking switch is the central device in a wired or wireless LAN (local area
network). It receives signals from each computer on the network via Ethernet
cables in a wired network or radio waves in a wireless LAN. In both cases, the
113
networking switch directs traffic across the LAN, enabling the computers to talk
to each other and share resources. It allows different nodes of a network to
communicate directly with each other. A networking switch runs in full-duplex
mode, meaning a machine on the LAN can receive and transmit data
simultaneously. This is much faster than a networking hub, an alternate device
that serves the same purpose as a switch but operates in half-duplex mode,
allowing each machine or node either to send or receive at any given time.
Another key difference between a networking switch and a hub is that the switch
sends traffic discriminately, using addresses to direct traffic packets exactly where
they are supposed to go.
114
5.8.3 Frame Relay Techniques
Packet switching was developed at a time (1960’s) when digital long distance
transmission facilities exhibited a relatively high error rate compared to today’s
facilities. A large amount of overhead was included for error detection and
control. Each packet included additional bits and each node performed additional
processing to insure reliable transmission. Frame relay has removed the overhead
bits and additional processing. It has become unnecessary to invoke these
overhead checks and thereby enables higher capacity transmission rates. Frame
relay takes advantage of these high rates and low error rates. Frame relay
networks are designed to operate efficiently at user data rates of 2 Mb/s and
higher. (Packet switching originally designed with a 64 Kb/s data rate to the end
user). Frame relay achieves these higher rates by stripping out most of the
overhead involved with error control.
ATM also referred to as “Cell Relay” and it evolution from frame relay and
circuit switching. Frame relay uses variable length packets called “frames” but
ATM uses fixed length packets called “cells”. ATM provides little overhead for
error control like frame relay, and depends on inherent reliability of the
transmission system and on higher layers of logic in the end systems to identify
and correct errors. ATM is designed to operate in range of 10s to 100 Mb/s
compared to frame relay (2 Mb/s). ATM allows multiple virtual channels with
higher data rates for transmission paths. Each channel dynamically sets on
demand.
115
multiple networks, but integrated to provide user with single, uniform
accessibility and world wide interconnection. First generation ISDN was
narrowband, 64 Kb/s channels of switching and circuit switching orientations.
Frame relay resulted from the ISDN narrowband efforts. Second generation is
broadband ISDN. It supports high data rates of 100s Mb/s and has a packet
switching orientation.
5.9 Ethernet
A group of standards for defining a local area network that includes standards in
cabling and the structure of the data sent over those cables as well as the hardware
that connects those cables. Ethernet is a standard communications protocol
embedded in software and hardware devices, intended for building a local area
network (LAN). Ethernet networks can also be wireless. Rather than using
Ethernet cable to connect the computers, wireless NICs use radio waves for two-
way communication with a wireless switch or hub. In lieu of Ethernet ports,
wireless NICs, switches and hubs each feature a small antenna. Wireless networks
can be more flexible to use, but also require extra care in configuring security.
116
The following are examples of protocols:
WAN Protocol: TCP/IP, UDP ,SMTP, HTTP, POP3, DHCP, DNS
LAN Protocol: Media Access Control; Contention; Token Passing
Application Layer
Presentation Layer
Session Layer
Transport Layer
Network Layer
Data link Layer
Physical Layer
117
Is the predominate network protocol in use today (Other includes OSI
Model) for interoperable architecture and the internet
TCP/IP is a result of protocol research and development conducted on
experimental packet switched network by ARPANET funded by the
defense advanced research projects agency (DARPA). TCP/IP used as
internet standards by the internet architecture board (IAB).
Application Layer: contains the logic needed to support the various user
applications. Separate modules are required for each application.
Host-to-host or transport Layer: collection of mechanisms in a single and
common layer
Internet Layer: IP provides the routing functions across the multiple
networks
Network access layer: concerned with access to and routing data across a
network for two end systems attached to the same network.
Physical Layer: covers physical interface between PC or workstation and a
transmission medium or network
118
HTTP This protocol, the core of the World Wide Web, facilitates retrieval
and transfer of hypertext (mixed media) documents. Stands for
the HyperText Transfer protocol
Telnet A remote terminal emulation protocol that enables clients to log
on to remote hosts on the network.
SNMP Used to remotely manage network devices. Stands for the
Simple Network Management Protocol.
The Internet was developed in 1969 for the U.S. military and eventually spread to
universities and civilian researchers. Because of its open structure, interest in its
use began to grow beyond these exclusive groups. In 1990 a scientist named Tim
Berners-Lee created a software program that he called the World Wide Web
which allowed people to find documents on the Internet much more easily. This
program allowed for the use of hyperlinks, which connect one document to
another. In 1991 commercial use of the Internet was permitted for the first time
and that is when its use started to explode. In 1994 the Netscape Communications
Company (first named Mosaic) was formed by Marc Andreeson and Jim Clark to
market a new software application for the Web called a browser. This graphical
user interface allowed users to maneuver around the Web using a point-and-click
method instead of text commands.
No single computer
No single control source
No single entry point
119
No single type of application
The Internet consists of computers spread all over the world, connected through
wired and wireless transmission media, which contain software codes that allow
them to talk to each other. That's it. If you tried to find a single "front door" to the
Internet, you'd be looking for a long, long time.
Small businesses and individuals connect to the Internet through Internet Service
Providers (ISP) such as AT&T World Net or a commercial online service
provider such as America Online. With recent mergers in the entertainment and
Internet industries, some users can now access the Internet through their cable TV
companies
Email is the most widely used application on the Internet. America Online alone
processes an average of 51 million email messages per day, according to the CNet
Web site, April 3, 1999. The text explains the construction of an email address.
What you need to remember is that the text input is extremely sensitive, so you
must be careful when you enter an address. The best way to cut down on errors is
to store addresses in an address book and use them instead of typing in an address
every time. If you make it a habit to use the Reply function when responding to an
email, you also reduce the chance for error.
In March 1999 a malicious virus called "Melissa" was sent throughout the world
via email messages. The Computer Emergency Response Team at Carnegie
Mellon University called it one of the worst viruses ever released. It created havoc
with network servers and shut many of them down because of the tremendous
number of emails it generated. This incident demonstrated how pervasive email is
and yet how vulnerable it can be to hackers.
The most useful feature of email is the ability to attach files to an email message
and send them to colleagues anywhere in the world. This feature alone makes it a
valuable tool for telecommuters and for collaboration with co-workers wherever
they may be located.
120
5.11.1 Information Retrieval on the Internet
Another useful technology for collaborative work is the File Transfer Protocol
(FTP) application. Many companies and individuals use FTP to share documents
among geographic locations. It's a little faster and easier than email, but you do
need a special software program to use it. Some Web sites offer FTP as a way to
move files from a server computer to client computers.
You can get many free software programs for Internet use from various World
Wide Web sites. They are very good programs and are easily installed. In fact,
many software production companies no longer stock their programs in retail
stores and offer them only through their Web sites. This drastically reduces the
cost of distribution, packaging and shipping, and allows the company to offer the
very latest editions of their programs. It's much more convenient for consumers
too because they can just download and install the programs right to their hard
drive.
You can also use Web sites offered by software companies to download "patches"
or additional features. A patch is actually software code that fixes bugs in
programs. An excellent example of how convenient this process is demonstrated
by the Melissa virus mentioned earlier. Within 48 hours after the virus was
discovered, many companies had patches to detect the virus or protect their
system from it available through their Web sites. If we were doing business the
old-fashioned way, these patches wouldn't have been available for weeks. But
then some of you will say that if we had continued to do business the old-
fashioned way, we wouldn't have needed the patch in the first place!
121
When you purchase software now, either through a regular retail outlet or on a
Web site, make sure you register with the company, because this will allow it to
send you email messages regarding new products, improved products, or patches
to existing products. You'll also be able to access its Web site for free technical
support. Yes, you do give up information when you send the registration in
electronically, but the advantages associated with the notifications and other
services may be worth it.
Many computer companies have established Web sites that offer free and quick
support for problems you may be having with their products - either hardware or
software. You don't have to spend hours on the phone waiting for a person to
answer. Most of the problems you have are probably common to other users, and
the Web sites are a better way for you to get help.
The World Wide Web is a vast repository of data and information connected
through hyperlinks. When you think about the fact that it didn't even exist ten
years ago, it's amazing to realize how much it has permeated everything we do in
our personal and business lives.
We discussed protocols before: these are the rules by which data are transmitted
over networks. The Hypertext Transfer Protocol (http) is what allows the Web to
operate. Universal Resource Locator (URL) address on a Web site it will always
start with [Link] Most software browser programs now automatically insert
the http for you so you can simply enter the URL address of the Web site you
want to access, beginning with the www.
Hypertext Markup Language (HTML) is the common language with which you
create Web documents. It is very easy to use and is now included in most
common software applications such as Word, WordPerfect, Excel, etc. As the
technology improves to include audio, video, animated graphics, and movies on
122
Web sites, derivative languages such as Dynamic HTML, Java, and ActiveX are
becoming more common.
There is a difference between a Web site and a Web page. A Web site has the
short domain address such as [Link]. It is the central repository for
many, many Web pages that will be included at the end of the address after the
domain name and a slash. For example, [Link]/[Link] is a Web
page within the Web site for Prentice Hall. A Web page is a single document
stored within the Web site and probably linked to other pages on the site.
Webmasters, people who create and maintain Web sites, are in hot demand
because of the limited knowledge and experience most companies have with Web
sites. Software application programs such as FrontPage 98 or Macromedia
Dreamweaver can help you set up and manage a Web site. You can also use these
programs to create single pages and store them on a Web host computer. Many
Internet service providers such as America Online and Web sites such as
Geocities also give you the ability to create and store your own Web page on their
servers.
The text gives you the basic information for using search engines and directories.
You need to understand and remember that the various search engines use
different methods of helping you find information on the Web. You shouldn't
restrict yourself to just one or two search engines but should try many different
ones. You may be surprised at the different results you'll get using the same topic.
Search engines use special software programs to monitor the Web for new or
updated sites or pages. When they reach a new site or page they analyze the
contents and determine the category in which it will be listed. They then add it to
their database so that it will appear on the search result list when someone enters
the appropriate subject. You can also search for FTP sites, Usenet, newswires,
business news, stock quotes, and weather using these search engine capabilities.
123
If you develop a site or page you can add your URL to the search engine so it will
know your site is available. Many search engines don't require you to do this since
their software programs will eventually find your site, but you can speed up the
process by registering with the search engines.
Some innovative entrepreneurs have established businesses that will register your
site with all the search engines - over 400 of them - for a price. You can do it
yourself with your time as your cost.
When you are searching for information, try using a search site which submits
your inquiry to 25 different search engines and returns a complete list of the
results. [Link] is the most popular of these services. If you type in a topic
such as "horse breeding" on the [Link] Web site, it will submit the topic to
popular search directories and engines such as Yahoo, Excite, Lycos, Infoseek,
and HotBot. You tell the search service how you want the contents listed and in
what priority. It's much easier and faster than visiting each search engine site
yourself.
You also should be aware of the individual and business directories on the Web.
You could call them the "Yellow Pages of the World." They act just like the
Yellow Pages of your telephone book. In fact, most of the information listed in
them is gathered from telephone directories.
Net this, Net that, it's almost enough to drive you crazy! Intranets and Extranets
are basically the same thing as the Internet and use the same operating methods.
Intranets are restricted to the internal members of an organization and Extranets
are limited to certain users outside of an organization who are given special
access to the Web site. Access to Intranets and Extranets is controlled through the
use of usernames, and passwords, plus firewalls, security software programs that
keep unauthorized users out of the network.
124
The beauty of Intranets and Extranets is that they don't require any special
software or hardware other than what you would use for the Internet. The easy-to-
use software programs to create Web sites and pages give more people in an
organization the ability to use these Nets for very creative purposes. Using these
'Nets can drastically reduce the costs of disseminating information to employees,
customers, and suppliers.
Suppose you are the Human Resources Manager of a mid-size company and you
are establishing a new employee 401K plan. Of course you need to get the
information out to the employees as soon as possible so they can sign up for the
plan. Many of them will have questions and will want some help computing the
benefits of their enrollment. You can quickly and easily set up a Web page that
explains how to enroll and gives them an enrollment form right on the Web. You
can have a Frequently Asked Questions (FAQ) page employees can use to read
what other people are asking and also post their questions.
You can answer their questions on the FAQ page, which gives other employees
the opportunity to see the information. An especially useful tool would be to
include an online calculator to compute contributions and the rate of return on
investments. Think of the time you and the other Human Resource Office
members will save if employees can do all that on their own and don't have to
visit your office.
Extranets are becoming very popular as a way for companies to get information to
customers and suppliers quickly and efficiently. It's much less costly to put the
information on the Extranet and it's faster to update the information than to have
to print and send out paper updates. Some companies are using Extranets to
replace EDI systems. Smaller companies that couldn't afford the cost of EDI are
using Extranets as a way to allow online product ordering and shipment tracking.
125
5.11.4 Advantages of internet
Communication
The foremost target of internet has always been the communication. And internet
has excelled beyond the expectations .Still; innovations are going on to make it
faster, more reliable. By the advent of computer’s Internet, our earth has reduced
and has attained the form of a global village. Now we can communicate in a
fraction of second with a person who is sitting in the other part of the world.
Today for better communication, we can avail the facilities of e-mail; we can chat
for hours with our loved ones. There are plenty messenger services in offering.
With help of such services, it has become very easy to establish a kind of global
friendship where you can share your thoughts, can explore other cultures of
different ethnicity.
Information
Students and children are among the top users who surf the Internet for research.
Today, it is almost required that students should use the Internet for research for
the purpose of gathering resources. Teachers have started giving assignments that
require research on the Internet. Almost every coming day, researches on medical
issues become much easier to locate. Numerous web sites available on the net are
offering loads of information for people to research diseases and talk to doctors
126
online at sites such as, America’s Doctor. During 1998 over 20 million people
reported going online to retrieve health information.
Entertainment
Entertainment is another popular raison d'être why many people prefer to surf the
Internet. In fact, media of internet has become quite successful in trapping
multifaceted entertainment factor. Downloading games, visiting chat rooms or
just surfing the Web are some of the uses people have discovered. There are
numerous games that may be downloaded from the Internet for free. The industry
of online gaming has tasted dramatic and phenomenal attention by game lovers.
Chat rooms are popular because users can meet new and interesting people. In
fact, the Internet has been successfully used by people to find life long partners.
When people surf the Web, there are numerous things that can be found. Music,
hobbies, news and more can be found and shared on the Internet.
Services
Many services are now provided on the internet such as online banking, job
seeking, purchasing tickets for your favorite movies, guidance services on array
of topics engulfing the every aspect of life, and hotel reservations. Often these
services are not available off-line and can cost you more.
E-Commerce
127
to entertainment.
5.15.5 Disadvantages
If you use the Internet, you may be facing grave danger as your personal
information such as name, address, and credit card number etc. can be accessed
by other culprits to make your problems worse.
Spamming
Virus threat
Virus is nothing but a program which disrupts the normal functioning of your
computer systems. Computers attached to internet are more prone to virus attacks
and they can end up into crashing your whole hard disk, causing you considerable
headache.
Pornography
This is perhaps the biggest threat related to your children’s healthy mental life. It
is a very serious issue concerning the Internet. There are thousands of
pornographic sites on the Internet that can be easily found and can be a
detrimental factor to letting children use the Internet. Though, internet can also
128
create havoc, destruction and its misuse can be very fatal, the advantages of it
outweigh its disadvantages
129
Activity 5
1. Take a look at the two pictures below and answer the following questions.
4. There are typically three ways of structuring a LAN (Local Area Network) –
star, ring and bus. Suppose there is a small LAN with 4 computers, draw a
picture to illustrate a bus topology. [2]
130
Reference:
Berners-Lee, T. (1999). Weaving the Web: The Past, Present and Future of the
World Wide Web by its Inventor. London, Orion Business Publishing.
Dick, D.(2002) .PC Multimedia & Web, Technology and Techniques. 2nd Edition,
Dumbreck Publishing.
131
UNIT 6
COMPUTER VIRUSES
6 COMPUTER VIRUSES
6.1 Aim
The reader must understand computer viruses and their impact to computer
systems
6.2 Objectives
A computer virus is a small program written to alter the way a computer operates,
without the permission or knowledge of the user. A virus must meet two criteria:
It must execute itself. It often places its own code in the path of execution
of another program.
It must replicate itself. For example, it may replace other executable files
with a copy of the virus infected file. Viruses can infect desktop
computers and network servers alike.
132
Some viruses are programmed specifically to damage the data on your computer
by corrupting programs, deleting files, or even erasing your entire hard drive.
Many viruses do nothing more than display a message or make sounds / verbal
comments at a certain time or a programming event after replicating themselves to
be picked up by other users one way or another. Other viruses make your
computer's system behave erratically or crash frequently. Sadly many people who
have problems or frequent crashes using their computers do not realize that they
have a virus and live with the inconveniences.
133
6.3.1 Five recognized types of viruses
File infector File infector viruses infect program files. These viruses normally
viruses infect executable code, such as .com and .exe files. The can infect
other files when an infected program is run from floppy, hard
drive, or from the network. Many of these viruses are memory
resident. After memory becomes infected, any noninfected
executable that runs becomes infected. Examples of known file
infector viruses include Jerusalem and Cascade.
Boot sector Boot sector viruses infect the system area of a disk; that is, the
viruses boot record on floppy disks and hard disks. All floppy disks and
hard disks (including disks containing only data) contain a small
program in the boot record that is run when the computer starts
up. Boot sector viruses attach themselves to this part of the disk
and activate when the user attempts to start up from the infected
disk. These viruses are always memory resident in nature. Most
were written for DOS, but, all PCs, regardless of the operating
system, are potential targets of this type of virus. All that is
required to become infected is to attempt to start up your
computer with an infected floppy disk Thereafter, while the virus
remains in memory, all floppy disks that are not write protected
will become infected when the floppy disk is accessed. Examples
of boot sector viruses are Form, Disk Killer, Michelangelo, and
Stoned.
Master boot Master boot record viruses are memory-resident viruses that infect
record viruses disks in the same manner as boot sector viruses. The difference
between these two virus types is where the viral code is located.
Master boot record infectors normally save a legitimate copy of
the master boot record in an different location. Windows NT
computers that become infected by either boot sector viruses or
master boot sector viruses will not boot. This is due to the
difference in how the operating system accesses its boot
information, as compared to Windows 98/Me. If your Windows
NT systems is formatted with FAT partitions you can usually
remove the virus by booting to DOS and using antivirus software.
If the boot partition is NTFS, the system must be recovered by
using the three Windows NT Setup disks. Examples of master
boot record infectors are NYB, AntiExe, and Unashamed.
Multipartite Multipartite (also known as polypartite) viruses infect both boot
viruses records and program files. These are particularly difficult to
repair. If the boot area is cleaned, but the files are not, the boot
area will be reinfected. The same holds true for cleaning infected
files. If the virus is not removed from the boot area, any files that
you have cleaned will be reinfected. Examples of multipartite
134
viruses include One_Half, Emperor, Anthrax and Tequilla.
Macro viruses These types of viruses infect data files. They are the most
common and have cost corporations the most money and time
trying to repair. With the advent of Visual Basic in Microsoft's
Office 97, a macro virus can be written that not only infects data
files, but also can infect other files as well. Macro viruses infect
Microsoft Office Word, Excel, PowerPoint and Access files.
Newer strains are now turning up in other programs as well. All of
these viruses use another program's internal programming
language, which was created to allow users to automate certain
tasks within that program. Because of the ease with which these
viruses can be created, there are now thousands of them in
circulation. Examples of macro viruses include [Link],
[Link] and [Link].
Worms are programs that replicate themselves from system to system without the
use of a host file. This is in contrast to viruses, which requires the spreading of an
infected host file. Although worms generally exist inside of other files, often
Word or Excel documents, there is a difference between how worms and viruses
use the host file. Usually the worm will release a document that already has the
"worm" macro inside the document. The entire document will travel from
computer to computer, so the entire document should be considered the worm
[Link]@mm is an example of a worm
135
6.3.4 What is a virus hoax?
Virus hoaxes are messages, almost always sent by email, that amount to little more
than chain letters. Following are some of the common phrases that are used in
these hoaxes:
If you receive an email titled [email virus hoax name here], do not open it!
Delete it immediately!
It contains the [hoax name] virus.
It will delete everything on your hard drive and [extreme and improbable
danger specified here].
This virus was announced today by [reputable organization name here].
Forward this warning to everyone you know!
Most virus hoax warnings do not deviate far from this pattern. If you are unsure if
a virus warning is legitimate or a hoax, additional information is available at the
Symantec Security Response online database.
If you suspect or confirm that your computer is infected with a computer virus,
obtain the current antivirus software. The following are some primary indicators
that a computer may be infected:
136
You see unusual error messages.
You see distorted menus and dialog boxes.
There is a double extension on an attachment that you recently opened,
such as a .jpg, .vbs, .gif, or .exe. extension.
An antivirus program is disabled for no reason. Additionally, the antivirus
program cannot be restarted.
An antivirus program cannot be installed on the computer, or the antivirus
program will not run.
New icons appear on the desktop that you did not put there, or the icons
are not associated with any recently installed programs.
Strange sounds or music plays from the speakers unexpectedly.
A program disappears from the computer even though you did not
intentionally remove the program.
The infected file may make copies of itself. This behavior may use up all
the free space on the hard disk.
A copy of the infected file may be sent to all the addresses in an e-mail
address list.
The computer virus may reformat the hard disk. This behavior will delete
files and programs.
The computer virus may install hidden programs, such as pirated software.
This pirated software may then be distributed and sold from the computer.
The computer virus may reduce security. This could enable intruders to
remotely access the computer or the network.
You receive an e-mail message that has a strange attachment. When you
open the attachment, dialog boxes appear, or a sudden degradation in
system performance occurs.
Someone tells you that they have recently received e-mail messages from
you that contained attached files that you did not send. The files that are
137
attached to the e-mail messages have extensions such as .exe, .bat, .scr,
and .vbs extensions.
Windows does not start even though you have not made any system
changes or even though you have not installed or removed any programs.
There is frequent modem activity. If you have an external modem, you
may notice the lights blinking frequently when the modem is not being
used. You may be unknowingly supplying pirated software.
Windows does not start because certain important system files are
missing. Additionally, you receive an error message that lists the missing
files.
The computer sometimes starts as expected. However, at other times, the
computer stops responding before the desktop icons and the taskbar
appear.
The computer runs very slowly. Additionally, the computer takes longer
than expected to start.
You receive out-of-memory error messages even though the computer has
sufficient RAM.
New programs are installed incorrectly.
Windows spontaneously restarts unexpectedly.
Programs that used to run stop responding frequently. Even if you remove
and reinstall the programs, the issue continues to occur.
A disk utility such as Scandisk reports multiple serious disk errors.
A partition disappears.
The computer always stops responding when you try to use Microsoft
Office products.
You cannot start Windows Task Manager.
Antivirus software indicates that a computer virus is present.
138
6.3.7 What Viruses Don't Do!
Computer viruses can not infect write protected disks or infect written documents.
Viruses do not infect compressed files, unless the file was infected prior to the
compression. [Compressed files are programs or files with its common characters,
etc. removed to take up less space on a disk.] Viruses do not infect computer
hardware, such as monitors or computer chips; they only infect software.
One further note-> viruses do not necessarily let you know they are present in
your machine, even after being destructive. If your computer is not operating
properly, it is a good practice to check for viruses with a current "virus checking"
program.
Viruses begin to work and spread when you start up the program or application of
which the virus is present. For example, a word processing program that contains
a virus will place the virus in memory every time the word processing program is
run.
Once in memory, one of a number of things can happen. The virus may be
programmed to attach to other applications, disks or folders. It may infect a
network if given the opportunity.
Viruses behave in different ways. Some viruses stay active only when the
application it is part of is running. Turn the computer off and the virus is inactive.
Other viruses will operate every time you turn on your computer after infecting a
system file or network.
139
6.3.9 How to Prevent a Virus Invasion!
1. Load only software from original disks or CD's. Pirated or copied software
is always a risk for a virus.
2. Execute only programs of which you are familiar as to their origin.
Programs sent by email should always be suspicious.
3. Computer uploads and "system configuration" changes should always be
performed by the person who is responsible for the computer. Password
protection should be employed.
4. Check all shareware and free programs downloaded from on-line services
with a virus checking program.
5. Purchase a virus program that runs as you boot or work your computer.
Up-date it frequently.
6. On the computer, turn on the firewall.
7. Keep the computer operating system up-to-date.
8. Use updated anti-spyware software on the computer.
Even for an expert, removing a computer virus can be a difficult task without the
help of computer virus removal tools. Some computer viruses and other unwanted
software, such as spyware, even reinstall themselves after the viruses have been
detected and removed. Fortunately, by updating the computer and by using
antivirus tools, you can help permanently remove unwanted software.
To remove a computer virus, follow these steps:
140
the Malicious Software Removal Tool, visit the following Microsoft Web
site:
141
Activity 6
142
REFERENCE
[Link]
[Link]
[Link]
143
Glossary
Backbone: the main cabling of a network that all of the segment connect to.
Usually, the backbone is capable of carrying more information than the individual
segments.
Baud (don’t really use anymore; not accurate) = one electronic state change per
second
Bit rate – a method for measuring data transmission speed – bits per second
Database Layout: a design for a database that contains field names and possibly
graphics
Entity: a physical object or real world thing that bears a name and associated
characteristics
Error rate – rate at which errors occur where error in 1 or 0 bit occurs
144
File: A group or collection of similar records, like INST6031 Fall Student File,
American History 1850-1866 file, Basic Food Group Nutrition File
Mbps – millions of bits per second (data speed; measure of bandwidth = total
information flow over a given time) on a telecommunication medium
Record book: a "rolodex" of data records, like address lists, inventory lists,
classes or thematic units, or groupings of other unique records that are combined
into one list (found in AppleWorks, FileMaker Pro software).
Record / tuple : one piece of data, i.e., one student's information, a recipe, a test
question. It is a collection of attributes that belongs to the same entity.
145
Relation: is a table in relational database system.
146