Fit Unit-2
Fit Unit-2
1|Page
What is a Number System?
Number systems are very important because the design and organisation of a
computer system depends upon the number system.
A number system has an ordered set of symbols known as digits with rules defined
for performing arithmetic operations like addition, multiplication etc.
Classification of Number System:
1. Positional or weighted number system
2. Non-Positional number system
Positional (or Weighted) Number System:
A positional number system is also known as weighted number system.
Positional number systems use only few symbols called digits.
According to its position of occurrence in the number, each digit is weighted.
For example:
1358 = 1 x 103 + 3 x 102 + 5 x 101 + 8 x 100
13.58 = 1 x 101 + 3 x 100 + 5 x 10-1 + 8 x 10-2
3|Page
(10101)2 (16 + 0 + 4 + 0 + 1)10
(10101)2 (21)10
(12570)8 (5496)10
(19FDE)16 ((1 x 164) + (9 x 163) + (15 x 162) + (13 x 161) + (14 x 160))
4|Page
(19FDE)16 (65536+ 36864 + 3840 + 208 + 14)10
(19FDE)16 (106462)10
Number Conversion:
There are many methods or techniques which can be used to convert numbers from one
base to another.
Decimal to Binary Binary to Decimal
Decimal Number: (29)10 Binary Number: (11101)2
Calculating Binary Equivalent − Calculating Decimal Equivalent −
Division Quotient Remainder Binary Decimal Number
by 2 Number
29 / 2 14 1 (11101)2 ((1 x 24) + (1 x 23) + (1 x 22) + (0 x 21) +
14 / 2 7 0 (1 x 20))10
7/2 3 1 (11101)2 (16 + 8 + 4 + 0 + 1)10
3/2 1 1 (11101)2 (29)10
1/2 0 1 Binary Number: (11101)2 = Decimal Number: (29)10
Decimal Number: 2910 = Binary
Number: (11101)2.
Binary Arithmetic:
Binary arithmetic is essential part of all the digital computers and many other digital
systems.
Binary Addition
6|Page
In fourth case, a binary addition is creating a sum of (1 + 1 = 10) i.e. 0 is written in the given
column and a carry of 1 over to the next column.
Example − Addition
Binary Subtraction
Subtraction and borrow, these two words will be used very frequently for the binary
subtraction. There are four rules of binary subtraction.
Example − Subtraction
Binary Multiplication
Example − Multiplication
7|Page
Binary Division
Binary division is similar to decimal division. It is called as the long division procedure.
Example – Division
8|Page
Comparison Between Primary and Secondary Memories
1. Primary memory is the computer’s main memory and stores data temporarily.
2. Secondary memory is external memory and saves data permanently.
3. Data stored in primary memory can be directly accessed by the CPU, which cannot be
accessed in secondary memory.
4. Primary memory is lost during a power outage, while secondary memory saves the
data.
5. Primary memory is volatile, while secondary memory is non-volatile.
6. Primary memory is stored on semiconductor chips, while secondary memory is
stored on external hardware devices.
7. Primary memory is classified into cache memory and random-access memory, while
secondary memory has no such categories.
8. Primary memory is faster than secondary memory.
9. Primary memory uses the computer’s current data, while secondary memory can
save data in various formats that can be accessed at any time.
Local storage: This involves storing data on a device that is physically connected to
the computer or device that is accessing the data. Common local storage devices
include hard drives, solid-state drives (SSDs), and optical drives (CDs, DVDs, and Blu-
rays).
Remote storage: This involves storing data on a device that is not physically
connected to the computer or device that is accessing the data. Common remote
storage methods include cloud computing and network-attached storage (NAS).
Hard drives: Hard drives are the most common type of local storage device. They are
relatively inexpensive and have a large storage capacity. However, hard drives can be
slow and noisy.
Solid-state drives (SSDs): SSDs are faster and more durable than hard drives, but
they are also more expensive. SSDs are a good choice for applications that require
fast data access, such as gaming and video editing.
9|Page
Optical drives: Optical drives are used to store data on CDs, DVDs, and Blu-rays.
Optical drives are relatively slow and have a limited storage capacity, but they are
portable and can be used to share data with others.
Cloud computing: Cloud computing is a service that allows users to store and access
data over the internet. Cloud computing offers a number of advantages over local
storage, including scalability, accessibility, and security. However, cloud computing
can be more expensive than local storage, and there may be concerns about data
privacy and security.
Network-attached storage (NAS): NAS is a storage device that is connected to a
network. NAS devices can be used to share data between multiple computers on the
network. NAS devices are a good choice for applications that require centralized data
storage and sharing.
Once data has been stored, it needs to be able to be retrieved efficiently. Some of the most
common data retrieval methods include:
File systems: File systems are used to organize data on storage devices. They allow
users to create, delete, and modify files, and to move files between different storage
devices.
Databases: Databases are used to store structured data in a way that makes it easy
to retrieve and analyse. Databases use a variety of techniques to index and organize
data, which allows users to quickly and easily find the data they need.
Search engines: Search engines are used to search for data on the internet. They
index websites and other online content, and they allow users to search for specific
keywords or phrases.
Data mining: Data mining is a process of extracting knowledge from large amounts of
data. It can be used to identify trends, patterns, and relationships in data.
10 | P a g e
Primary Storage: - RAM, ROM, PROM, EPROM, EEPROM:
Primary storage (also known as main memory) is the component of the computer
that holds data, programs and instructions that are currently in use.
Primary storage is located on the motherboard. As a result, data can be read from
and written to primary storage extremely quickly.
This gives the processor fast access to the data and instructions that the primary
storage holds.
There are two types of primary storage:
1. Random access memory (RAM)
2. Read Only Memory (ROM)
RAM:
RAM (Random Access Memory) is the internal memory of the CPU for storing data,
program, and program result.
It is a read/write memory which stores data until
the machine is working.
As soon as the machine is switched off, data is
erased.
Data in the RAM can be accessed randomly but it is
very expensive.
11 | P a g e
RAM is volatile, i.e., data stored in it is lost when we switch off the computer or if
there is a power failure.
Hence, a backup Uninterruptible Power System (UPS) is often used with computers.
RAM is small, both in terms of its physical size and in the amount of data it can hold.
Secondary Storage:
Secondary storage is a memory that is stored external to the computer.
It is mainly used for the permanent and long-term storage of programs and data.
Hard Disk, CD, DVD, Pen/Flash drive, SSD, etc, are examples of secondary storage.
1. Magnetic Tapes:
In magnetic tape only one side of the ribbon is used
for storing data.
It is sequential memory which contains thin plastic
ribbon to store data and coated by magnetic oxide.
Data read/write speed is slower because of
sequential access.
It is highly reliable which requires magnetic tape
drive writing and reading data.
2. Magnetic Disks.
A magnetic disk is a type of secondary memory.
It is used to store various programs and files.
Magnetic disks are less expensive than RAM and can store large amount of data, but
the data access rate slower than main memory.
Data can be modified or can be deleted easily in the magnetic disk memory.
13 | P a g e
It also allows random access to data.
3. Cartridge tape:
A tape cartridge is a storage device that
contains a spool of magnetic tape used to
store different kinds of data, from corporate
data to audio and video files.
Each cartridge is designed to fit into a
compatible audio/video recorder system or
computer system.
4. hard disks:
A computer hard disk drive (HDD) is non-volatile data
storage device.
All computers need a storage device, and HDD are
just one example of a type of storage device.
Hard disks are usually installed inside desk-top
computers.
Most basic hard drives consist of several disk platters
-- a circular disk made of either aluminium, glass or
ceramic -- that are positioned around a spindle inside
a sealed chamber.
5. Floppy disks:
A floppy disk is a magnetic storage medium for
computer systems.
The floppy disk is composed of a thin, flexible
magnetic disk sealed in a square plastic carrier.
14 | P a g e
In order to read and write data from a floppy disk, a computer system must have a
floppy disk drive (FDD).
A floppy disk is also referred to simply as a floppy. Since
the early days of personal computing, floppy disks were
widely used to distribute software, transfer files, and
create back-up copies of data.
When hard drives were still very expensive, floppy disks
were also used to store the operating system of a
computer.
6. Optical Disks:
An optical disk is any computer disk that uses optical
storage techniques and technology to read and write
data.
It is a computer storage disk that stores data digitally
and uses laser beams (transmitted from a laser head
mounted on an optical disk drive) to read and write
data.
An optical disk is primarily used as a portable and
secondary storage device.
It can store more data than the previous generation of magnetic storage media,
and has a relatively longer lifespan.
Compact disks (CD), digital versatile/video disks (DVD) and Blu-ray disks are
currently the most commonly used forms of optical disks.
These disks are generally used to:
Distribute software to customers
Store large amounts of data such as music, images and videos
Transfer data to different computers or devices
Back up data from a local machine.
7. Compact Disks:
Abbreviated as CD, a compact disc is a flat, round, optical storage medium invented
by James Russell.
The first CD was created at a Philips factory in Germany on August 17, 1982.
The main material of the CD is plastic
The shape of the plastic is circular and one side of the circular plastic is coated with
the reflecting metal coating, usually aluminium.
15 | P a g e
8. Zip Drive:
A Zip drive is a medium-capacity and portable magnetic
disk storage system launched by Iomega in the mid-
1990s.
It was popular at the time of launch as cost per storage
unit was lower than that of hard disks, and it could store
a larger amount of data than a floppy disk.
The Zip drive was capable of fast data transfer and was
durable and reliable.
The rise of other devices that later came to market, such
as USB drives, were favoured over the Zip drive and Zip
disk, and these became obsolete soon afterward.
9.Flash Drives:
A USB flash drive is a device used for data storage that includes a flash memory and an
integrated Universal Serial Bus (USB) interface.
Most USB flash drives are removable and rewritable.
Physically, they are small, durable and reliable.
The larger their storage space, the faster they tend to
operate.
USB flash drives are mechanically very robust because
there are no moving parts.
They derive the power to operate from the device to
which they are connected (typically a computer) via the
USB port.
16 | P a g e