Bit 1101 Computer Architecture Complete Lecture Notes for First
Bit 1101 Computer Architecture Complete Lecture Notes for First
TABLE OF CONTENTS
COURSE OUTLINE ................................................................................................................................... 5
CHAPTER ONE: COMPUTER ARCHITECTURE ............................................................................... 7
INTRODUCTION TO COMPUTERS .................................................................................................... 8
1.1. HISTORY OF COMPUTERS ............................................................................................................ 8
1.2 GENERATION OF COMPUTERS .................................................................................................... 8
1.2.1 Computer generations ............................................................................................................ 8
1.3 CHARACTERISTICS OF COMPUTERS .......................................................................................... 10
1.4 BASIC COMPUTER CONCEPTS ................................................................................................... 10
1.5 TYPES OF COMPUTERS .............................................................................................................. 10
1.6 SOFTWARE AND HARDWARE.................................................................................................... 12
1.7 CHAPTER REVIEW QUESTIONS ................................................................................................. 13
CHAPTER 2: BASIC HARDWARE UNITS OF A COMPUTER...................................................... 14
2.1 INPUT DEVICES ......................................................................................................................... 14
2.2 OUTPUT DEVICE ........................................................................................................................ 15
2.3 CENTRAL PROCESSING UNIT (CPU)/PROCESSOR:.................................................................. 16
2.4 MAIN MEMORY:........................................................................................................................ 17
2.5 SECONDARY STORAGE .............................................................................................................. 19
2.6 COMPUTER UNITS INTERACTION DIAGRAM ............................................................................. 20
2.7 HOW INFORMATION IS STORED IN COMPUTERS ....................................................................... 21
2.8 SIZE............................................................................................................................. ............... 21
2.9 CHAPTER REVIEW QUESTIONS ................................................................................................. 21
CHAPTER THREE: INSIDE THE COMPUTER ................................................................................. 23
3.1 THE PROCESSOR ........................................................................................................................ 23
3.2 CLOCK SPEED ................................................................................................................ ............ 24
3.3 REGISTERS ............................................................................................................................. .... 24
3.4 MOTHERBOARD ........................................................................................................................ 26
3.4.1 Form Factor .......................................................................................................................... 26
3.5 BUSES......................................................................................................................................... 28
3.6 WORD SIZE ............................................................................................................................. ... 30
3.7 I/O CONTROLLERS ................................................................................................................... 30
3.8 COMMON BUS INTERFACES ...................................................................................................... 30
3.9 CHAPTER REVIEW QUESTIONS .................................................................................................. 31
3.10 SUGGESTED READINGS ............................................................................................................. 31
CHAPTER FOUR: FAULT DIAGNOSIS ............................................................................................. 32
4.1 POWER SUPPLY TROUBLESHOOTING ........................................................................................ 32
4.2 VIDEO FAILURE TROUBLESHOOTING ....................................................................................... 32
4.3 MOTHERBOARD AND CPU TROUBLESHOOTING ..................................................................... 32
4.4 HARD DRIVE FAILURE TROUBLESHOOTING............................................................................. 33
4.5 CHAPTER REVIEW QUESTIONS .................................................................................................. 38
4.6 SUGGESTED READINGS ............................................................................................................. 38
CHAPTER FIVE: INPUT AND OUTPUT DEVICES AND INTERRUPTS ................................... 39
5.1 INPUT DEVICES ......................................................................................................................... 39
5.2 OUTPUT DEVICE ........................................................................................................................ 39
5.3 INTERRUPTS ............................................................................................................................... 39
5.3.1 Types of interrupt ................................................................................................................. 39
COURSE OUTLINE
VI. C o m p u t e r Languages
A. First Generation - Machine language
B. Second generation - Assembly Language
C. Third Generation - High Level Languages
D. Fourth Generation
E. Fifth Generation
VII. S o f t w a r e
A. System Software
B. Application Software; general purpose, special purpose
C. Operating systems (OS) concepts; functions of OS, types of OS
VIII. E x t e r n a l Storage
A. Storage Devices
B. Access time, block size and access speed
C. Files – types and organization
IX. U p g r a d i n g
computers
A. Upgrading a slow computer; changing the parts
B. Upgrading memory
C. Upgrading the Processor
Reference Books
i. White R., How Computers Work (Millennium edition).
ii. Capron H.L., Computers: Tools for information age (5th Edition).
iii. C.S. French, Computer science (Fifth Edition)
It may also be defined as the science and art of selecting and interconnecting
hardware components to create computers that meet functional, performance
and cost goals.
INTRODUCTION TO COMPUTERS
Objectives
At the end of the chapter the learner shall be able to;
i. Explain the evolution of computing technology and the technological
advancement in computer architecture to current technologies
ii. Explain the characteristics of computers and how they are different from
humans.
iii. Explain the different types of computers categorized based on size, price
and capabilities
iv. Explain the fundamental difference between computer hardware and
software
developed for use on these machines. The speed of these machines was described
in microseconds (1/1000, 000 of a second). These computers had programming
languages whose vocabularies are close to the human natural language, English
language.
Summary
Research shows that the trend in computer technology revolution is that there is;
o Continual decrease in computer size
o Improved speed and power processing
o Decrease in computers and the related facilities cost
10
Super computers
They are very large in size and use multiple processors and superior technology.
Super computers are biggest in size, the most expensive in price than any other is
classified and known as super computer. It can process trillions of instructions in
seconds. This computer is not used as a PC in a home neither by a student in a
college. Governments specially use this type of computer for their different
calculations and heavy jobs. Different industries also use this huge computer for
designing their products.
In most of the Hollywood’s movies it is used for animation purposes. This kind
of computer is also helpful for forecasting weather reports worldwide. They are
known for von Newman’s design i.e. multiple processor system with parallel
processing. In such a system a task is broken down and shared among processes
for faster execution. They are used for complex tasks requiring a lot of
computational power.
Mainframe computers
A mainframe is another giant computer after the super computer and can also
process millions of instruction per second and capable of accessing billions of
data .They are physically very large in size with very high capacity of main
memory. This computer is commonly used in big hospitals, air line reservations
companies, and many other huge companies prefer mainframe because of its
capability of retrieving data on a huge basis. They can be linked to smaller
computers and handle hundreds of users they are also used in space exploitation.
The term mainframe was mainly used for earliest computers as they were big in
size though today the term is used to refer to large computers. A large number of
peripherals can be attached to them. They are expensive to install.
Minicomputers
They are smaller than the main frame but bigger than microcomputers. They
support concurrent users. They can be used as servers in companies. They are
slower and less costly compared to mainframe computers but more powerful,
reliable and expensive than micro computers.
Micro computers
They are of advanced technology i.e. the micro era based on large scale
integration that confines several physical components per small elements thumb
size IC, hence the size reduced. It is the smallest of the three computers. They are
usually called personal computers since they are designed to be used by
individuals. The micro chip technology has enabled reduction of size of
11
Computer software
A set of programs associated with the operation of a computer.
Suggested Readings
13
14
Printout is permanent
Color laser printers are still fairly expensive
16
The processor and main memory of a PC are commonly held on a single board
called a mother board. The processor has the following functions:
The processor contains the control unit and the arithmetic/logic unit(ALU).
The control unit coordinates and controls all the operations carried out by the
computer. The control unit operates by repeating three operations which are:
17
The cycle (input - processing - output) would not be possible without a holding
place for the instructions and data that the processors (CPU) can easily reach.
This holding place is known as memory also called main storage and is internal
to the computer consisting of RAM and possibly ROM.
Is the basic kind of internal memory that holds data and instructions while
the computer is in use.
It can be read from and written to.
It is called random access because the processor or computer can access
any location in memory in any order as contrasted with sequential access
devices which must be accessed in order.
RAM is volatile; losing the stored information in an event of power loss,
and quite expensive.
Over the years, newer computers have been introduced that contain faster
microprocessors. To accommodate the increased speed, chip manufacturers have
designed and built faster RAM chips. SDRAM (Synchronous DRAM) divides
RAM into two separate memory banks to increase the processing of the memory
requests. To overcome the performance limitations of SDRAM, two competing
technologies have been developed. RDRAM (Rambus DRAM) involves a new
memory design that achieves a higher data transfer speeds but it is expensive to
manufacture. DDR SDRAM (Double Data Rate SDRAM) can transfer data twice
as fast as SDRAM because it reads data twice during each clock cycle. Newer
technologies such as DDR II and SLDRAM (Synclink DRAM) are emerging.
18
Types of ROM
ROM: A mask programmed read only memory that can be only be produced by
the manufacturer. It is designed to perform a specific function and cannot be
changed. This is inflexible and so regular ROMs are only used generally for
programs that are static (not changing often) and mass-produced. This product is
analogous to a commercial software CD-ROM that you purchase in a store.
19
compared to real read-write memory (RAM) where rewriting is done often many
times per second!
Cache memory
After Random Access Memory (RAM)
Cache memory is a type of very fast memory that is used to improve the speed of a
computer doubling it in some cases. It acts as an intermediate store between the CPU and
the maim memory, and works by storing the most frequently or recently used instructions
and data so that it will be very fast to retrieve them again.
Processor
Cache Memory
Main Memory
These are devices which are used to store huge information for future use. This is
mostly hard drives and removable media such as floppy disks, optical media
(CD ROM) etc.
Hard Drive:
Floppy Disk: Floppy disks allow information to be transported easily from one
computer to another they have limited storage capacity, generally 1.44 MB.
Saving and retrieving information from a floppy disk is slower than on a hard
drive. They are more susceptible to physical damage and viruses than the hard
drive. The size of a hard drive is usually expressed in terms of megabytes and
gigabytes.
20
Compact Disk Read Only Memory (CD ROM): CD ROMs are read only storage
medium. Typically, a CD ROM holds up to 650 MB of information. While
information retrieval is faster than from a floppy disk, it is still not as fast as from
the hard drive.
Main Memory
Input Output
Devices Processor Devices
Secondary/Backing
Storage
The diagram above shows how the units interact with each other in the
processing of data. Input devices enter information to be processed by the
processor. The processor can read and write into the secondary storage devices.
The processor also stores the instructions being currently executed into the main
memory. So can be able to read and write into the main memory (RAM). Once
the data has been processed by the processor, the data can be displayed by the
output devices. Please note the direction of the arrows as it depicts the flow of
the data and instructions.
21
2.8 Size
22
5. Which of the following is used to store programs and data that are currently
being used
(a) Read only Memory (b) Hard Disk
(c) Random Access Memory (d) Magnetic Disk
Suggested Readings
23
Chapter Objectives
At the end of the chapter the learner shall be able to;
Explain the functions of the different components of the processor such as the
control unit, arithmetic/logic unit(ALU) and the system clock
Explain the term form factor in relation to mother boards
Explain the different types of buses and their functions in a computer system
Internal components are contained in the System Unit. The system unit is the
unit that houses the processing unit (processor), memory, the input output
controllers and the buses. The system unit is often called the Central Processing
Unit.
The processor contains the control unit and the arithmetic/logic unit(ALU) and
the system clock.
The control unit coordinates and controls all the operations carried out by the
computer. The control unit operates by repeating three operations which are:
24
The system clock – generates a continuous sequence of clock pulses to step the
control unit through its operation.
Examples of modern processors:
Some modern Intel Core i3, i5 and i7 processor brands are split into desktop and
laptop (or mobile) processors. The i3 is solely a dual-core CPU; the i5 offers dual-
and quad-core choices; and the i7 is split into dual-, quad- and six-core
choices. Intel Core i3, i5 and i7 are 1.2 GHz to 3.33 GHz, 1.06 GHz to 3.6 GHz and
1.06 GHz to 3.46 GHz, respectively.
3.2 Clock speed
In order to synchronise the various steps carried out during the fetch-execute
cycle, all the processors have an internal clock which generates regularly timed
pulses. All the processor activities, such as fetching an instruction, reading data
into the memory register etc. must begin on a clock pulse, although some
activities take more than one clock pulse to complete. Typically the clock pulse
rate in 2000 is around 500 megahertz (million cycles per second). The clock
speed, therefore, is one of the factors which will influence the speed at which
instructions are executed; a 600MHZ processor will in general operate faster than
a 500MHz processor.
The main features which distinguish one processor from another and which
determine the performance of each are;
Clock speed
Word size
Bus size
Architecture
25
3.3 Registers
26
The registers shown in the block diagram above, which represents a ‘typical’
computer, each have a specific purpose, which is described below.
27
Memory data register (MDR) is used to temporarily store data read from
or written to memory.
Status register (SR) contains bits that are set or cleared based on the result
of an instruction.
3.4 Motherboard
A motherboard allows all the parts of your computer to receive power and
communicate with one another. Motherboards have come a long way in the last
twenty years. The first motherboards held very few actual components. The first
IBM PC motherboard had only a processor and card slots. Users plugged
components like floppy drive controllers and memory into the slots. Today,
motherboards typically boast a wide variety of built-in features, and they directly
affect a computer's capabilities and potential for upgrades.
The socket for the microprocessor determines what kind of Central Processing
Unit (CPU) the motherboard uses.
The chipset is part of the motherboard's logic system and is usually made of two
parts -- the northbridge and the southbridge. These two "bridges" connect the
CPU to other parts of the computer.
28
The Basic Input/Output System (BIOS) chip controls the most basic functions of
the computer and performs a self-test every time you turn it on. Some systems
feature dual BIOS, which provides a backup in case one fails or in case of error
during updating.
The real time clock chip is a battery-operated chip that maintains basic settings
and the system time.
29
3.5 Buses
30
Control Bus
This bus is bi-directional meaning that signals can be carried in both directions.
All the components in the computer share the data and address buses. Control
lines are used to ensure that access to and use of the data and address buses by
the different components of the system does not lead to conflict. The purpose of
the control bus is to transmit command , timing and specific status information
between system components such as the memory, processor, keyboard input
controller VDU output controller and the Disk I/O controller.
Data bus
A data bus provides a bi-directional path for moving data and instructions
between system components. A typical data bus consists of 8, 16, or separate
lines. The width of the data bus is a key factor in determining overall system
performance. For example, if the data bus is 8 bits wide, and each instruction is
16 bits long, then the processor must access the main memory twice during each
instruction cycle.
Address bus
When the processor wishes to read a word (say 8, 16, 32 bits) of data from
memory, it first puts the address of the desired word of the address bus. The
address bus is used for communicating the physical addresses of computer
memory elements/locations that the requesting unit wants to access
(read/write).
The width of an address bus, along with the size of addressable memory
elements, determines how much memory can be accessed.
31
Word size means the number of Bits that the processor can process
simultaneously. Typical processors can have 8-, 16-, 32-, 64- or even larger word
sizes. Word size also determines the speed of the computer. Bus size means the
number of bits that can be transmitted together. Most mainframe computers
have 32-bit words.
Each peripheral device operates in a different way and hence these devices
cannot be connected directly to the processor. The processor communicates and
controls a peripheral device through an I/O or device controller. I/O controllers
are available which can operate both input and output transfers of bits, e.g.
floppy disk controller. Other controllers operate in one direction only, either as
an input controller, e.g. keyboard controller or as output controller, e.g. vdu
controller.
Although the EISA bus is backwards compatible and not a proprietary bus it
never became widely used and is no longer found in computers today.
32
1. Briefly describe the roles of the data bus and the address bus within the central
processing unit
2. State one benefit of increasing the width of the data bus
3. State one benefit of increasing the width of the address bus
4. Explain the importance of the system clock
33
Chapter Objectives
At the end of the chapter the learner shall be able to;
Troubleshoot a computer that is having a problem and identify the cause of the
problem and how it can be solved
Explain how to trouble shoot a Hard Drive Failure, Motherboard and CPU, Video
Failure and Power Supply Troubleshooting
Explain how the divide and conquer method of troubleshooting can be applied
during troubleshooting
When we talk about troubleshooting video failures, we're usually talking about
no image at all on the screen. The easy cases to diagnose are those where the
monitor or LCD isn't powering up properly, or the PC not powering up. Video
card failure isn't uncommon, and video cards can lose their contact with the
motherboard, especially early AGP adapters which frequently popped out of
their slot. Video failure can also be due to motherboard failure or to external
interference, when it comes to poor image quality.
There are very few instances when you'd turn on a PC, have it either power up or
not, and be able to say, "Oh, that's a motherboard problem." Motherboard
failures usually show up as second level problems, like "I've replaced the video
card and the screen is still dead." If you want to learn how to repair PC's without
swapping every part, it's critical to know what to look for on a powered up
system, like a CPU fan that isn't running, or RAM that stays cold. Sometimes you
can spot a blown capacitor on a motherboard, but it's not a common problem.
34
Students who are still learning the basics of computer repair, like what
components are involved in what operation, will frequently assume that all boot
issues are due to a hard drive failure. The truth is, of all the four subsystems
represented in this table, hard drives are probably the most reliable. I don't mean
that hard drives last longer than memory modules or video cards in the pure
MTBF (Mean Time Between Failure) sense, I mean they are rarely at fault when
you're called in to repair a PC. Hard drive failures are generally pretty easy to
troubleshoot, in part because the operating system will include tools to report on
the hard drive's reliability when it's accessible..
35
36
37
38
39
Howstuffworks.com
40
Chapter Objectives
At the end of the chapter the learner shall be able to;
Explain input and output devices and the role they play in a computer
Define the term interrupt and explain the different types of interrupts
Explain how an interrupt handler operates
The input and output devices are discussed in details in chapter 2 of the module.
5.3 Interrupts
An interrupt is a signal from some device or source seeking the attention of the
processor. The interrupt signal is sent along a control line to the processor, and
the currently executing program is suspended while control is passed to an
interrupt service routine.
The following are the different types of interrupt that could occur;
41
Program check interrupts; these are caused by various types of error such
as division by zero.
Machine check interrupts; these are caused by malfunctioning hardware
There is a special register in the CPU called the interrupt register. At the
beginning of each fetch-execute cycle, the interrupt register is checked. Each
bit of the register represents a different type of interrupt, and if a bit is set, the
state of the current process is saved and the operating system routes control
to the appropriate interrupt handler.
What happens when, for example, a key on the keyboard is pressed, thus
generating an interrupt? A small program called an interrupt service routine
(ISR) or interrupt handler is executed to transfer the character value f the key
pressed into main memory. A different ISR is provided for each different
source of interrupt. A typical sequence of actions when an interrupt occurs
would be:
42
43
Chapter Objectives
The computers can execute a program written using binary digits only. This type
of programs is called machine language programs and the programming
language is called machine code. Since these programs use only '0's and '1's it
will be very difficult for developing programs for complex problem solving. Also
it will be very difficult for a person to understand a machine language program
written by another person. At present, computer users do not write programs
using machine language. Also these programs written for execution in one
computer cannot be used on another type of computer. i.e., the programs were
machine dependent.
44
Assembly language is designed mainly to replace each machine code with and
understandable mnemonic code. To execute an assembly language program it
should first be translates into an equivalent machine language program. Writing
and understanding programs in assembly language is easier than that of machine
language. The programs written in assembly language are also machine
dependent. Assembly language is translated into machine code using an
assembler before they can be executed.
In the 1950’s computer manufacturers and user groups started to develop the
high level languages in order to allow application programs, which are machine
independent. High level language permits the user to use understandable codes
using the language structure. In order to execute a high-level language program,
it should be translated into a machine language either using a compiler or
interpreter. The high level languages commonly used are FORTRAN (FORmula
TRANslation), BASIC (Beginner's All-purpose Symbolic Instruction Code),
COBOL (COmmon Business Oriented Language). The following program
written in BASIC language is to add two given numbers.
A 4GL is an aid which the end user or programmer can use to build an
application without using a third generation programming language. Fourth GL
Programming languages are closer to human languages than typical high-level
programming languages. All 4GLs are designed to reduce programming effort,
the time it takes to develop software, and the cost of software development.
Applications of 4GL's are concentrating on the daily performed tasks such as
45
screen forms, requests for data, change data, and making hard copies. In most of
these cases one deals with Data Base Management Systems (DBMS).
Most 4GLs are used to access databases. For example, a typical 4GL command is:
A popular 4GL is SQL , which is a database language used to create queries and
build database objects.
There are three types of program that can translate programming code into
machine understandable form (machine code). These are:
1. Assembler
46
2. Compiler
The object code contains information not only on the instructions given by the
programmer but also instruction for the computer about memory allocation and
references towards external locations and sub routines (libraries). The code
written by the programmer is called the source code and the compiled code is
called the object code.
3. Interpreter
This is a program that translates high level source code into object code. The
interpreter translates one line a time and then executes it. During interpretation
no object code is produced, and so the program has to be interpreted each time it
is to be run.
Object code can be saved on disk and run whenever required without the
need to recompile. In case an error is discovered the source code has to be
recompiled after correcting an error.
Object code executes faster than interpreted code
47
48
Software
Classification of software
Software can be broadly classified into system software and application
software
50
51
NB: Nowadays most of the general purpose software is being sold as a complete
software suites such as Microsoft office or Lotus SmartSuite. These suites offer
52
four or more software products packaged together at a much lower price than
buying the packages separately.
Operating Systems
53
A stand a lone operating system controls a single computer that is not connected
to others on a network. Examples of this are Ms. Dos, and Windows.
There are two types of interface that can be provided by the operating system.
Command based Interface
In a command based interface the user enters commands through an interactive
terminal. The commands are entered on a prompt for example the Ms Dos
prompt looks like this
54
Once the commands are entered on the prompt a command line interpreter(CLI)
identifies and executes the commands. A command based interface is quick to
operate and very flexible, but the user needs to learn all the commands and type
them in correctly. Examples operating systems that use command based interface
are Ms Dos and Unix.
A graphical user interface (GUI) allows the user to interact with the system using
Windows, Icons, Menus, and Pointers to control the operating system. Icons
represent programs, groups of programs, folders, devices and files. Instead of
typing a command or file name, selection is achieved by moving a pointer with a
mouse and clicking a mouse button. Windows is a Graphical user interface based
operating system. The first in the Windows series was Windows 3.11 and the
latest being Windows Vista.
55
GUIs are easier for the novice user because they are more intuitive
The graphical symbols represent familiar objects such as a garbage bin
Only valid options are available to avoid confusing the user
No need to memorise commands
Help is available online showing the only relevant options
5. Which of the software below would assist a salesman in recording daily sales
for different items for which he needs totals among other analysis?
(a) Ms Word (b) Ms Access (c) Outlook (d) Ms Excel
6. Which is the most important software in a computer system?
56
Chapter Objectives
Relative Cost
Storage Speed Capacity Permanent?
($)
Registers Fastest Lowest Highest No
Floppy Very
Low Low Yes
Disk Slow
Hard Disk Moderate Very High Very Low Yes
57
These benefits apply to all the various secondary storage devices but, as
you will see, some devices are better than others. We begin with a look at
the various storage media, including those used for personal computers,
and then consider what it takes to get data organized and processed.
Reading data from the disk means converting the magnetized data to
electrical impulses that can be sent to the processor. Writing data to disk is
the opposite: sending electrical impulses from the processor to be converted
58
to magnetized spots on the disk. The surface of each disk has concentric
tracks on it. The number of tracks per surface varies with the particular type
of disk.
8.3 Diskettes
Made of flexible Mylar, a diskette can record data as magnetized spots on tracks
on its surface. Diskettes became popular along with the personal computer.
Flash memory
The older diskette, 5-1/4
inches in diameter, is still
in use, but newer
computers use the 3-1/2
inch diskette (Figure 1).
The 3-1/2 inch diskette
has the protection of a
hard plastic jacket, a size
Figure 1: Diskettes to fit conveniently in a
shirt pocket or purse, and
the capacity to hold significantly more data than a 5-1/4 inch diskette.
Diskettes offer particular advantages which, as you will see, are not readily
available with hard disk:
o Portability. Diskettes easily transport data from one computer to
another. Workers, for example, carry their files from office computer
to home computer and back on a diskette instead of in a briefcase.
Students use the campus computers but keep their files on their own
diskettes.
o Backup. It is convenient to place an extra copy of a hard disk file on a
diskette.
o New software. Although, for convenience, software packages are kept
on hard disk, new software out of the box may come on diskettes (new
software also may come on CD-ROM disks, which we will discuss
shortly).
The end of the diskettes useful life-time may be upon us. In 1998
Macintosh introduced its new computer, the IMAC, without a floppy disk
drive. Alternatives such as Zip disks (discussed later), or transferring data
via networks are making the low-capacity diskette become obsolete.
59
A disk drive is a machine that allows data to be read from a disk or written on a
disk. A disk pack is mounted on a disk drive that is a separate unit connected to
the computer. Large computers have dozens or ever hundreds of disk drives. In
a disk pack all disks rotate at the same time although only one disk is being read
or written on at any one time. The mechanism for reading or writing data on a
disk is an access arm; it moves a read/write head into position over a particular
track. The read/write head on the end of the access arm hovers just above the
track but does not actually touch the surface. When a read/write head does
accidentally touch the disk surface, this is called a head crash and all data is
destroyed. Data can also be destroyed if a read/write head encounters even
minuscule foreign matter on the disk surface. A disk pack has a series of access
arms that slip in between the disks in the pack. Two read/write heads are on
each arm, one facing up for the surface above it and one facing down for the
surface below it. However, only one read/write head can operate at any one
time.
In some disk drives the access arms can be retracted; then the disk pack can be
removed from the drive. Most disk packs, however, combine the disks, access
arms, and read/write heads in a sealed module called a Winchester disk.
Winchester disk assemblies are put together in clean rooms so even microscopic
dust particles do not get on the disk surface.
Hard disks for personal computers are 5-1/4 inch or 3-1/2 inch disks in sealed
modules and even gigabytes are not unusual. Hard disk capacity for personal
computers has soared in recent years; capacities of hundreds of megabytes are
60
common and gigabytes are not unusual. Although an individual probably cannot
imagine generating enough output-letters, budgets, reports, and so forth-to fill a
hard disk, software packages take up a lot of space and can make a dent rather
quickly. Furthermore, graphics images and audio and video files require large
file capacities. Perhaps more important than capacity, however, is the
convenience of speed. Personal computer users find accessing files on a hard disk
is significantly faster and thus more convenient than accessing files on a diskette.
The most popular removable disk media is the Zip drive from Iomega (Figure 3).
Over 100's of millions have been sold, making it the de facto standard. The disk
cartridges look like a floppy disk, but are slightly bigger in all dimensions. Older
Zip disks hold 100MB, newer ones hold 250MB and cost $8-$10 a piece (Floppies
hold 1.4MB and cost around $2). The drive sells for around $80- $125. Many new
PCs come with Zip drives built in addition to floppy drives. Zip disks are a great
way to store large files and software programs.
61
writing by having multiple access paths. The data file for, say, aircraft factory
tools, may be spread across several disks; thus, if the computer is used to look up
tools for several workers, the computer need not read the data in turn but instead
read them at the same time in parallel. Furthermore, data security is improved
because if a disk fails, the disk system can reconstruct data on an extra disk; thus,
computer operations can continue uninterrupted. This is significant data
insurance.
Zone Recording
The fact that a disk is circular presents a problem: The distances around the
tracks on the outside of the disk are greater than that of the tracks or the inside.
A given amount of data that takes up 1 inch of a track on the inside of a disk
might be spread over several inches on a track near the outside of a disk. This
means that the tracks on the outside are not storing data as efficiently.
Zone recording involves dividing a disk into zones to take advantage of the
storage available on all tracks, by assigning more sectors to tracks in outer zones
than to those in inner zones. Since each sector on the disk holds the same amount
of data, more sectors mean more data storage than if all tracks had the same
number of sectors.
To appreciate this, suppose you had an empty disk pack on which you wished to
record data. You might be tempted to record the data horizontally-to start with
the first surface, fill track 000, then fill track 001, track 002, and so on, and then
move to the second surface and again fill tracks 000, 001, 002, and so forth. Each
new track and new surface, however, would require movement of the access
arms, a relatively slow mechanical process.
62
Recording the data vertically, on the other hand, substantially reduces access arm
movement. The data is recorded on the tracks that can be accessed by one
positioning of the access arms-that is, on one cylinder. To visualize cylinder
organization, pretend a cylindrically shaped item, such as a tin can, were
figuratively dropped straight down through all the disks in the disk pack. All the
tracks thus encountered, in the same position on each disk surface, comprise a
cylinder. The cylinder method, then, means all tracks of a certain cylinder on a
disk pack are lined up one beneath the other, and all the vertical tracks of one
cylinder are accessible by the read/write heads with one positioning of the
access arms mechanism. Tracks within a cylinder are numbered according to this
vertical perspective: A 20-surface disk pack contains cylinder tracks numbered 0
through 19, top to bottom.
The explosive growth in storage needs has driven the computer industry to
provide cheaper, more compact, and more versatile storage devices with greater
capacity. This demanding shopping list is a description of the optical disk, like a
CD. The technology works like this: A laser hits a layer of metallic material
spread over the surface of a disk. When data is being entered, heat from the laser
produces tiny spots on the disk surface. To read the data, the laser scans the disk,
and a lens picks up different light reflections from the various spots.
63
CD-ROM has a major
advantage over other
optical disk designs: The
disk format is identical to
that of audio compact
disks, so the same dust-free
manufacturing plants that
are now stamping out
digital versions of Mozart
or Mary Chapin Carpenter
Figure 3: Compact Disk (CD) and Drive) can easily convert to
producing anything from
software to an encyclopedia. Furthermore, CD-ROM storage is large -up to
660 megabytes per disk, the equivalent of over 400 3-1/2 inch diskettes.
When buying a computer the speed of the CD-ROM drive is advertised using
an "X" factor, like 12X, or 24X. This indicates the speed at which the CD can
transfer data to the CPU - the higher the X factor, the faster the CD.
Modern computers now offer a write CD drive or, CD-RW as an option. CD-
RW is a write-once, read-many media. With a CD-RW drive, you can create
your own CDs. This offers an inexpensive, convenient, safe way to store large
volumes of data such as favorite songs, photographs, etc.
8.9 Digital Versatile Disk (DVD) drives are now widely available in computers as
well as home entertainment centers. DVD-ROM drives can read data, such as
stored commercial videos for playing. DVD-RW allow DVDs to be created on
a computer.
64
A 4.7 GB side of a DVD can hold 135 minutes top quality video with 6 track
stereo. This requires a transmission rate of 4692 bits per second. The 17 GB disk
holds 200 hours top quality music recording.
DVD movies are made in two "codes." Region one is USA and Canada, while
Europe and Asia is region two. When you play movies, your hardware (MPEG
decoder. MGEG is the data coding for movies similar to JPEG for pictures.) must
match the DVD region. The movies are made in two formats, each with their
own coding.
The DVD drives come in 2X, 4X, etc. versions, like the CD-ROM's.
The DVD drives will not replace the magnetic hard disks. The hard disks are
being improved as rapidly as DVD, and they definitely offer the fastest seek time
and transmission rate (currently 5-10 MB/second). No optic media can keep up
with this. But the DVD will undoubtedly gain a place as the successor to the CD
ROM and is playing an important role in the blending of computers and
entertainment centers.
The highest-capacity tape is the digital audio tape, or DAT, which uses a
different method of recording data. Using a method called helical scan recording,
DAT wraps around a rotating read/write head that spins vertically as it moves.
This places the data in diagonal bands that run across the tape rather than down
its length. This method produces high density and faster access to data.
Two reels are used, a supply reel and a take-up reel. The supply reel, which has
the tape with data on it or on which data will be recorded, is the reel that is
changed. The take-up reel always stays with the magnetic tape unit. Many
cartridges and cassettes have the supply and take-up reels built into the same
case.
Tape now has a limited role because disk has proved the superior storage
65
Personal computer users have the option of purchasing their own tape backup
system, to be used on a regular basis for copying all data from hard disk to a
high-capacity tape. Data thus saved can be restored to the hard disk later if
needed. A key advantage of a tape backup system is that it can copy the entire
hard disk in minutes, saving you the trouble of swapping diskettes in and out of
the machine.
66
How data files are stored in secondary storage varies with the types of media
and devices you are using. Data files may be stored on or in sequential-access
storage, direct-access storage, or random-access storage.
SEQUENTIAL-ACCESS STORAGE
This is a technology whereby stored data can be retrieved in only the order in
which it is it is physically stored. Punched cards, paper tape, and magnetic tape
are examples of sequential-access storage media. When operating in a sequential
environment, a particular record can be read only by first reading all the records
that come before it in the file. When you store a file on tape, the 125th record
cannot be read until the 124 records in front of it are read. The records are read in
sequence. You cannot read just any record at random. This is also true when
reading punched cards or paper tape.
DIRECT-ACCESS STORAGE
67
RANDOM-ACCESS STORAGE
68
Chapter objectives
At the end of the chapter the learner shall be able to;
Upgrade a slow computer
Identify the components that need to be changed in order to increase the speed of
a computer
Explain how to Change the CPU and the RAM of a computer while upgrading
There are many reasons for a slow computer, but upgrading the computer's
hardware can help speed it up. The CPU and the RAM are two main components
that can be upgraded to increase a computer's speed, though doing this may
require replacing the motherboard as well.
1. If the motherboard is compatible with the new CPU and RAM, it is not
necessary to change it out. But if it's not, a compatible one must be used.
Determine the compatibility by reading the motherboard specifications
from the manual or by searching for the correct specifications on the
manufacturer's website. Make sure all components are compatible before
moving on.
2. Turn off the computer and unplug it. Take off the side panel to access the
inside of the computer.
3. Unhook the various wires that are connected to the motherboard. This
may include hard-drive wires, case wires, disc drive wires and power
cables.
4. Remove all PCI cards from the motherboard. It may be necessary to
unscrew the cards from the chassis of the computer.
5. Unscrew the motherboard. Use a nonmagnetic screwdriver to avoid
damage.
6. Remove the motherboard with the CPU (including the cooling device) and
RAM still attached.
7. If the motherboard is compatible with the new CPU and RAM, remove the
old CPU and RAM. Unclip the RAM, then remove it. For the CPU, it may
be necessary to unscrew the cooling device to access the CPU socket.
Unclip the socket and remove the CPU.
8. Whether the motherboard is compatible or if a new motherboard is being
used, a backplate may need to be installed. Do this before installing
anything else.
9. Insert the new RAM onto the motherboard, making sure it clips into place.
10. Insert the new CPU into the socket and clip it in place.
69
11. Put a small amount of thermal paste on the CPU, then connect the cooling
device.
12. Put the motherboard back into the case by screwing it in first, then
connecting all the wires back into place. It may be necessary to refer to the
manual to ensure the various wires are connected correctly.
13. Close the case, then turn the computer on.
RAM Installation
When you remove the DIMM memory module from its packaging hold it by the
edges, try not to touch the gold coloured contacts, as this can damage the
memory.
Take a look at the images below on the right, as you can see, we have pointed out
certain parts of the DIMM memory module and the DIMM slot.
In Fig 1.3 you can see the ejector clips (D), using
your finger, push these into the down position as
shown in Fig 1.3, this allows the memory to be
inserted.
Instructions
1. First unplug the power cord from the computer and then all external
peripherals connected to the computer, i.e. monitor, printer, network
cable.
2. The next thing would be to remove the chassis cover off the desktop.
Some covers have screws while others have snap-in place latches. Remove
the cover and set it to the side.
70
3. The next step is a very important step. Once the cover is off it is important
to ground the static electricity from you. This accomplished by touching
the computer chassis for several moments. This will drain the static
electricity from you which can fry the microprocessors that you will be
handling.
71
Chapter objectives
At the end of the chapter the learner shall be able to;
Explain how computers store data
Convert binary numbers to denary and vise versa
Perform binary calculations such as Addition, subtraction, multiplication and
division
Convert Denary numbers to hexadecimals
Computer systems are constructed of digital electronics. That means that their
electronic circuits can exist in only one of two states: on or off. Most computer
electronics use voltage levels to indicate their present state. For example, a
transistor with five volts would be considered "on", while a transistor with no
voltage would be considered "off." Not all computer hardware uses voltage,
however. CD-ROM's, for example, use microscopic dark spots on the surface of
the disk to indicate "off," while the ordinary shiny surface is considered "on."
Hard disks use magnetism, while computer memory uses electric charges stored
in tiny capacitors to indicate "on" or "off."
These patterns of "on" and "off" stored inside the computer are used to encode
numbers using the binary number system. The binary number system is a method
of storing ordinary numbers such as 42 or 365 as patterns of 1's and 0's. Because
of their digital nature, a computer's electronics can easily manipulate numbers
stored in binary by treating 1 as "on" and 0 as "off." Computers have circuits that
can add, subtract, multiply, divide, and do many other things to numbers stored
in binary.
72
H|T|O
1|9|3
such that "H" is the hundreds column, "T" is the tens column, and "O" is the ones
column. So the number "193" is 1-hundreds plus 9-tens plus 3-ones.
Years later, we learned that the ones column meant 10^0, the tens column meant
10^1, the hundreds column 10^2 and so on, such that
10^2|10^1|10^0
1| 9| 3
the number 193 is really {(1*10^2)+(9*10^1)+(3*10^0)}.
As you know, the decimal system uses the digits 0-9 to represent numbers. If we
wanted to put a larger number in column 10^n (e.g., 10), we would have to
multiply 10*10^n, which would give 10^(n+1), and be carried a column to the
left. For example, putting ten in the 10^0 column is impossible, so we put a 1 in
the 10^1 column, and a 0 in the 10^0 column, thus using two columns. Twelve
would be 12*10^0, or 10^0(10+2), or 10^1+2*10^0, which also uses an additional
column to the left (12).
The binary system works under the exact same principles as the decimal system,
only it operates in base 2 rather than base 10. In other words, instead of columns
being
10^2|10^1|10^0
they are
2^2|2^1|2^0
Instead of using the digits 0-9, we only use 0-1 (again, if we used anything larger
it would be like multiplying 2*2^n and getting 2^n+1, which would not fit in the
73
2^n column. Therefore, it would shift you one column to the left. For example, "3"
in binary cannot be put into one column. The first column we fill is the right-
most column, which is 2^0, or 1. Since 3>1, we need to use an extra column to the
left, and indicate it as "11" in binary (1*2^1) + (1*2^0).
10
111
10101
11110
Remember:
2^4| 2^3| 2^2| 2^1| 2^0
| | | 1 | 0
| |1 | 1 | 1
1 |0 |1 | 0 | 1
1 |1 |1 | 1 | 0
23
+48
We begin by adding 3+8=11. Since 11 is greater than 10, a one is put into the 10's
column (carried), and a 1 is recorded in the one's column of the sum. Next, add
{(2+4) +1} (the one is from the carry)=7, which is put in the 10's column of the
sum. Thus, the answer is 71.
Binary addition works on the same principle, but the numerals are different.
Begin with one-bit binary addition:
0 0 1
+0 +1 +0
0 1 1
74
1+1 carries us into the next column. In decimal form, 1+1=2. In binary, any digit
higher than 1 puts us a column to the left (as would 10 in decimal notation). The
decimal number "2" is written in binary notation as "10" (1*2^1)+(0*2^0). Record
the 0 in the ones column, and carry the 1 to the twos column to get an answer of
"10." In our vertical notation,
1
+1
10
1010
+1111
Step one:
Column 2^0: 0+1=1.
Record the 1.
Temporary Result: 1; Carry: 0
Step two:
Column 2^1: 1+1=10. Record
the 0, carry the 1. Temporary
Result: 01; Carry: 1
Step three:
Column 2^2: 1+0=1 Add 1 from carry: 1+1=10.
Record the 0, carry the 1.
Temporary Result: 001; Carry: 1
Step four:
Column 2^3: 1+1=10. Add 1 from carry: 10+1=11.
Record the 11.
Final result: 11001
Alternately:
11 (carry)
1010
+1111
11001
75
Always remember
0+0=0
1+0=1
1+1=10
Multiplication in the binary system works the same way as in the decimal
system:
1*1=1
1*0=0
0*1=0
101
* 11
101
1010
1111
Note that multiplying by two is extremely easy. To multiply by two, just add a 0
on the end.
Follow the same rules as in decimal division. For the sake of simplicity, throw
away the remainder.
10011 r 10
11)111011
-11
76
101
-11
101
11
10
What we're doing here is finding the largest power of two within the number
(2^2=4 is the largest power of 2 in 5), subtracting that from the number (5-4=1),
and finding the largest power of 2 in the remainder (2^0=1 is the largest power
of 2 in 1). Then we just put this into columns. This process continues until we
have a remainder of 0. Let's take a look at how it works. We know that:
2^0=1
2^1=2
2^2=4
2^3=8
2^4=16
2^5=32
2^6=64
2^7=128
and so on. To convert the decimal number 75 to binary, we would find the
largest power of 2 less than 75, which is 64. Thus, we would put a 1 in the 2^6
column, and subtract 64 from 75, giving us 11. The largest power of 2 in 11 is 8,
or 2^3. Put 1 in the 2^3 column, and 0 in 2^4 and 2^5. Subtract 8 from 11 to get 3.
77
Put 1 in the 2^1 column, 0 in 2^2, and subtract 2 from 3. We're left with 1, which
goes in 2^0, and we subtract one to get zero. Thus, our number is 1001011.
Now that we have an algorithm, we can use it to convert numbers from decimal
to binary relatively painlessly. Let's try the number D=55.
Our first step is to find P. We know that 2^4=16, 2^5=32, and 2^6=64.
Therefore, P=5.
2^5<=55, so we put a 1 in the 2^5 column: 1-----.
Subtracting 55-32 leaves us with 23. Subtracting 1 from P gives us 4.
Following step 3 again, 2^4<=23, so we put a 1 in the 2^4 column: 11----.
Next, subtract 16 from 23, to get 7. Subtract 1 from P gives us 3.
2^3>7, so we put a 0 in the 2^3 column: 110---
Next, subtract 1 from P, which gives us 2.
2^2<=7, so we put a 1 in the 2^2 column: 1101--
Subtract 4 from 7 to get 3. Subtract 1 from P to get 1.
2^1<=3, so we put a 1 in the 2^1 column: 11011-
Subtract 2 from 3 to get 1. Subtract 1 from P to get 0.
2^0<=1, so we put a 1 in the 2^0 column: 110111
78
However, this is not the only approach possible. We can start at the right, rather
than the left.
Now we need to do the remaining digits. One idea is to "shift" them. It is also
easy to see that multiplying and dividing by 2 shifts everything by one column:
two in binary is 10, or (1*2^1). Dividing (1*2^1) by 2 gives us (1*2^0), or just a 1
in binary. Similarly, multiplying by 2 shifts in the other direction:
(1*2^1)*2=(1*2^2) or 10 in binary. Therefore
is equal to
Let's look at how this can help us convert from decimal to binary. Take the
number 163. We know that since it is odd, there must be a 1 in the 2^0 column
(a[0]=1). We also know that it equals 162+1. If we put the 1 in the 2^0 column, we
have 162 left, and have to decide how to translate the remaining digits.
Two's column: Dividing 162 by 2 gives 81. The number 81 in binary would also
have a 1 in the 2^0 column. Since we divided the number by two, we "took out"
one power of two. Similarly, the statement a[n-1]*2^(n-1) + a[n-2]*2^(n-2) + ... +
a[1]*2^0 has a power of two removed. Our "new" 2^0 column now contains a1.
We learned earlier that there is a 1 in the 2^0 column if the number is odd. Since
81 is odd, a[1]=1. Practically, we can simply keep a "running total", which now
stands at 11 (a[1]=1 and a[0]=1). Also note that a1 is essentially "remultiplied" by
two just by putting it in front of a[0], so it is automatically fit into the correct
column.
79
Four's column: Now we can subtract 1 from 81 to see what remainder we still
must place (80). Dividing 80 by 2 gives 40. Therefore, there must be a 0 in the 4's
column, (because what we are actually placing is a 2^0 column, and the number
is not odd).
Eight's column: We can divide by two again to get 20. This is even, so we put a 0
in the 8's column. Our running total now stands at a[3]=0, a[2]=0, a[1]=1, and
a[0]=1.
80
D=0, so we are done, and the decimal number 163 is equivalent to the binary
number 10100011.
Since we already knew how to convert from binary to decimal, we can easily
verify our result. 10100011=(1*2^0)+(1*2^1)+(1*2^5)+(1*2^7)=1+2+32+128= 163.
10.8 Hexadecimal
Hexadecimal works in the same way as binary and decimal, but it uses sixteen
digits instead of two or ten. Since the western alphabet contains only ten digits,
hexadecimal uses the letters A-F to represent the digits ten through fifteen. Here
are the digits used in hexadecimal and their equivalents in binary and decimal:
Hex 0 1 2 3 4 5 6 7 8 9 A B C D E F
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Binary 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
81
again, we are out of digits in the first column, so we add one to the next column.
Continue counting once again: 20, 21, 22, ..., 29, 2A, 2B, 2D, 2E, 2F, 30, 31, 32, ...,
3E, 3F, 40, 41, 42, ... 99, 9A, 9B, 9C, 9D, 9E, 9F, A0, A1, A2, ... F9, FA, FB, FC, FD,
FE, FF, 100, 101, 102, .... Watch the pattern of numbers and try to relate this to the
way you count in decimal or binary. You will see that it is the same procedure,
but with sixteen digits instead of 10 or 2.
Each column in hexadecimal is worth 16 times the column before, while each
column in binary is worth 2 times the column before. Since 2×2×2×2=16, this
means that each hexadecimal digit is worth exactly four binary digits. This fact
makes it easy to convert between binary and hexadecimal.
To convert from hexadecimal to binary, simply look at the chart above and
replace each digit in the hexadecimal number with its corresponding four-digit
binary number. For example, 8F in hexadecimal is 10001111 in binary, since
8=1000 and F=1111.
To converty from binary to hexadecimal, reverse the procedure and break the
binary number into blocks of four digits. Then, replace each block of four digits
with its corresponding hexadecimal digit. If you cannot divide the binary
number evenly into blocks of four digits, add zeros to the left side of the number
to make it work. For example, to convert 110101 to hexadecimal, first add two
zeros at the beginning of the number to make it 00110101. Since 00110101 has
eight digits, it can be divided into two blocks of four digits, 0011 and 0101. Since
0011=3 and 0101=5, the corresponding hexadecimal number is 35.
82
83
Chapter 1.
1. C 2. D 3. A 4. D 5. True
Chapter 2
1. D 2. B 3. B 4. D 5. C
Chapter 8
Chapter 10
Answers
1 255
2. a) 3 b) 6 c) 10 d) 65
3. a) 110010 b) 1001011 c) 11111010 d) 1000011
4. a) 1011 b) 0101 c) 1000001 d) 10001
5 a) 13 b) 2D c) 4D d) 65
84
Mt Kenya University
QUESTION ONE
(a) Name the two major components of the Central Processing Unit (processor)
and briefly describe what each does. (6 marks)
(b) List four of the conditions an ALU tests for. (4 marks)
(c) Explain the use of registers in the CPU. (2 marks)
(d) Convert the following into decimal showing your working:
(i) 010111 (ii) 101101 (2 marks)
(d) Convert the following into binary showing your working:
i) 45 ii) 97 (2 marks)
(e) Differentiate between RAM and ROM (2 marks)
(f) What is a computer bus? State three types of computer buses (4 marks)
(e) Computers have evolved through many generations over the years. State and
explain the five generations the computers have evolved through. (8 marks)
(Total 30 marks)
QUESTION TWO
(a) As you know, computers rely on accurate data input in order to provide
reliable outputs. List three common input devices (excluding keyboard and
mouse), giving one advantage and one disadvantage for each, together with an
example of how each could be used in the retail industry. (12 marks)
85
(b) Input and output devices usually connect to a PC via “ports”. List the names
of four different ports found on modern computers, together with a type of
device usually associated with each port. (8 marks)
(Total 20 marks)
QUESTION THREE
The Managing Director of Traco Sacco wants to assemble his own personal
computer:
I. Outline the major components of system unit he needs to acquire. (8Marks)
II. Advise him on the basic input and output devices he needs to buy.
(2 Marks)
III. He realize that he needed to watch television and listen to radio on the same
machine. Identify the type of card and slot where he need to plug it.
(2 Marks)
IV. Later he bought a digital camera. Advise him on which port he needs to
connect it to. (2 Marks)
V. Explain the two major types of software he needs to install in the
computer. Give two examples. (6 Marks)
QUESTION FOUR
(a) Describe how data is organised in a magnetic disk drive. Clarify your answer
using a clearly labeled sketch. (12 marks)
(b) Disk performance is greatly dependent upon access time, the time required to
directly access data on the disk. Describe the three major factors on which access
time depends. (6 marks)
(c) How can physical access time be improved? (2 marks)
(Total 20 marks)
QUESTION FIVE
(a) Explain the difference between serial and parallel data transmission, and
describe an example of a hardware device or communication channel that uses
each method. (8 marks)
(b) Expand the following abbreviations and give a brief description of each term:
(i) CPU (ii)
ALU (iii)
ASCII (iv)
CMOS (v)
GHz
(vi) BIT (12 marks)
(Total 20 marks)
86
Mt Kenya University
UNIVERSITY EXAMINATION 2010
SCHOOL OF APPLIED AND SOCIAL SCIENCES
DEPARTMENT OF INFORMATION TECHNOLOGY
SEMSTER I EXAMINATION FOR BACHELOR OF BUSINESS
INFORMATION TECHNOLOGY
COURSE CODE: BIT 1105
COURSE TITLE: COMPUTER ARCHITECTURE
Question Two
a. Describe four ways of classifying computer memory (4mks)
87
Question Three
(a). Define of the following computer terms while giving appropriate examples.
(i). Chipset (2mks)
(ii). CMOS battery (2mks)
(iii). BIOS (2mks)
(iv). PCI (2mks)
(v). AGP (2mks)
(b). Perform the following binary calculations/arithmetic operations.
(i). 01110 – 10111 (2mks)
(ii). 10111 + 01101 (2mks)
(iii). 10111 – 01110 (2mks)
(iv). 0110 * 1011 (2mks)
(|v) Convert 65 to binary (2mks)
(c). Indicate which kind of upgrades do the following fall under?
(i). 1.73 GHz to 2.56 GHz
(ii). 256MB to 512MB
(iii). 40GB to 120GB (3mks) (d).
As you know, computers rely on accurate data input in order to provide
reliable outputs. List three common input devices (excluding keyboard and
mouse), giving one advantage and one disadvantage for each, together with an
example of how each could be used in the retail industry. (7mks)
Question Four
88
(c). There are THREE main types of computer storage devices, state and explain
these three types. (8mks)
Question Five
(a). Discuss the THREE main types of computers giving their features,
advantages and disadvantages. (10mks)
(b). Draw the internal structure of a computer, showing the six major parts and
giving at least two functions of each part. (10mks)
89