CFOA_Notes_Unit_I_Introduction_to_Computers[1]
CFOA_Notes_Unit_I_Introduction_to_Computers[1]
CFOA SYLLABUS
UNIT-I Introduction to Computers
Secondary Storage Devices (FD, CD, HD, Pen drive) I/O Devices (Scanners, Plotters, LCD, Plasma
Display) Number Systems
Dos – History, Files and Directories, Internal and External Commands, Batch Files, Types of O.S.
CONTENT
1. Introduction & Definition of Computer
2. Characteristics of Computers
4. Evolution of computer
5. Types of computers
9. Storage System
Binary Addition
Binary Multiplication
Binary Subtraction
Binary Division
Page 3 of 45
Nowadays term computer stands for: “Common Operating Machine Purposely Used for
Technological and Educational Research”, which is also one of the many hypothetical
full forms of the computer.
I
A computer is an electronic machine that manipulates data according to a list of instructions.
TH
A computer is an electronic machine (device) that accepts input (data), processes it gives
(output) results (information) and saves it as an electronic file.
A
DATA -> raw details that require processing for generating useful information
R
PROGRAM -> set of instructions that can be executed by the computer in sequential or
non-sequential order
T
USER REPLY -> input provided by the user in response to a query asked by the computer
EE
Nowadays, computers are making jobs easier for people. Computers can be used in
M
without computers.
CHARACTERISTICS OF COMPUTERS
F.
O
PR
Page 4 of 45
1. Speed: Speed is one of the major characteristics of the computer system. A computer works
so fast that it can process any task and provide the output in fractions of seconds. A powerful
computer can handle trillions of instructions per second, which is incredible.
With its incredible speed, computers can reduce the amount of time to perform any digital
task. The speed of a computer is measured in microseconds and nanoseconds. Due to their
incredible speed, computers can quickly retrieve data from storage devices.
2. Storage Capacity: A computer has a built-in memory to store instant data immediately.
Here, we are referring to random access memory (primary memory) that holds data as long as
the computer is connected to a power source. Data is erased from memory after shutting
down the computer. In addition, the computer includes ROM (read-only memory), the cache
memory of different levels, virtual memory, etc., thereby speeding up performance.
It can store vast amounts of data. Today's computers have increased storage capacity
I
TH
compared to earlier days. Besides, we also have the option to store data in secondary devices
such as external drives, or floppies, etc.
These secondary devices can be kept separate from the computer or attached to other
A
computers. The storage capacity of the computer is commonly measured in Mega-Byte (MB),
R
Giga-Bytes (GB), Tera-Bytes (TB), and Peta-bytes (PB).
T
3. Accuracy: A computer carries out any calculation with a 100% accuracy. However, this
EE
depends on the configuration of the system and instruction from the user.
Computers not only provide incredible speed, instead, they are also capable of consistently
working with accuracy. The degree of accuracy in computers is very high; computers can
M
perform calculations at almost 100% accuracy. Errors may occur in a computer system, but
SU
4. Reliability: A computer process results with 0 error. Mostly the error generated in the
F.
computer is due to the user’s fault. The results obtained by the computer are very reliable. But
this is true only when the data given to the computer or program is correct and reliable.
O
PR
5. Diligence: A computer can be set to perform repetitive tasks for numerous times and the
result will always be displayed with the same accuracy and efficiency. Computers aren’t
affected by human traits like dizziness, fatigue, distraction, tiredness, etc.
Unlike a human, the computer doesn’t get tired or lacks its concentration. Due to this
characteristic, it overpowers human being in most of the regular tasks. It can work for hours
without any fault. This means that if millions of calculations are to be done, a computer will
perform every calculation and provide all the results with the same accuracy.
6. Versatility: The same computer can be used for many different tasks for many different
purposes.
Versatility is one of the most wonderful features of computers. This means that the computer
has the ability to perform completely different kinds of works with the same accuracy and
efficiency at the same time. It is not just a calculating machine anymore. For example: for one
moment it can be used to create invoices or bills, and the next moment it can be used for
inventory management or any multimedia task, etc.
Page 5 of 45
CONTROL
ARTHIMETIC &
LOGIC UNIT
I
TH
A
AUXILIARY STORAGE
R
T
EE
A computer system is a combination of three components:
1. Input Output Unit
2. CPU (Central Processing t)ing
M
3. Memory Unit
SU
electronic machines, a computer takes inputs as raw data (binary data) and performs
necessary processing giving out processed data. Therefore, the input unit is the medium of
O
communication that takes data from us to the computer in an organized manner for
PR
processing.
The Input Unit performs the following major functions:
The input unit converts the inputted data or instructions into binary form for further
processing.
Input Unit transmits the data to the main memory of the computer.
Output unit consists of devices that are used to display the results or output of processing.
The output data is first stored in the memory and then displayed in human-readable form
through output devices. Some of the widely used output devices are Monitors, Printers, and
Projectors.
The Output Unit performs the following major functions:
The output unit accepts the data or information in binary form from the main memory of
the computer system.
The output unit converts the binary data into a human-readable form for better
understanding.
Page 6 of 45
This unit of the Computer is also known as the brain of the computer system. It is an
electronic hardware device that processes all the operations, which include:
1. Fetching instructions from memory
2. Decoding the instruction to decide what operations are to be performed
3. Executing Instructions
4. Storing the result back into memory
CONTROL
I
ARTHIMETIC &
TH
LOGIC UNIT
A
R
MEMORY UNIT T
EE
1. Control Unit
M
It controls the flow of data and information. It maintains the sequence of operation being
SU
performed by the CPU. The control unit fetched instruction from storage area, decode the
instructions and transmit the corresponding signal to ALU and the storage registers.
Acts like the supervisor which determines the sequence in which computer programs and
F.
instructions are executed. It retrieves instructions from memory, decodes the instructions,
O
execute them. In short, the control unit determines the sequence of operations to execute the
given instructions.
1. Control Unit
2. Arithmetic/ Logical Unit
The logical unit operates the data logically. Logical operations include greater than (>), less
than (<), equals to (=), not equal to (! =), shift left, shift right, etc. This unit makes use of logical
gates (AND, OR, NAND, NOR, etc.) to perform logical operations.
1. Control Unit Page 7 of 45
2. S
3. Memory Unit
It is an essential part of the computer system which is used to store data and instructions
before and after processing. The memory unit transmits the information to other units of the
computer system when required.
A computer has two types of memories, i.e. internal and external memories. The internal one’s
are termed as main memory while of external is auxiliary memory. RAM is an example of main
memory while peripherals storge devices are some examples of auxiliary storage.
I
computers were built from mechanical components rather than electronic components, such
TH
as levers and gears to the latest high-end and portable computers.
A
1. Mechanical Era
R
A mechanical computer is a computer built from mechanical components such as levers and
T
gears rather than electronic components. The most common examples are adding machines
and mechanical counters, which use the turning of gears to increment output displays. More
EE
complex examples could carry out multiplication and division. eg Hamman Manus R
mechanical.
M
SU
F.
O
PR
I
Employed: 1964 – 1975
TH
Employed: 1964 – 1975 Technology Used: Integrated Circuits (I.C.)
Technology Used: Integrated Circuits (I.C.) Improvements: I.C.s made the size of computer smaller,
A
Improvements: I.C.s made the size of computer smaller, performance efficientefficient
performance and faster and
and reliable
faster and
Advantages: computational time reduced to nano-seconds, use
R
reliable
Advantages: computational time reduced to nano-seconds, use of high-level of high-level
languagelanguage
T
Disadvantages: low storage, costly Disadvantages: low storage, costly
EE
TYPES OF COMPUTERS
I
TH
Super Mainframe Mini Micro
A
Computer Computer Computer Computer
R
T
A computer that operates on discrete-time signals (or discontinuous-time signals) is called a
digital computer while the one that operates on continuous-time signals, i.e. takes input and
EE
produces output in the form of signals that vary continuously with time is called an analog
computer.
M
Analog computers were very common during the 1950s to 1960s. A digital computer is built
up of digital electronic devices like logic gates, digital ICs, transistors, etc.
SU
Super Computer
F.
Supercomputers are large and require huge space for installation. They are the fastest and
O
most expensive computers compared to others. They are used for performing huge
PR
complex calculations.
Supercomputers are the most powerful computers among digital computers. These
consist of several processors running together thereby making them immensely faster and
powerful.
These computers are capable of handling huge amounts of calculations that are beyond
human capabilities.
Supercomputers can perform billions of instructions per second. Some of today's
supercomputers have the computing capability equal to that of 40000 microcomputers.
A Japanese supercomputer has calculated the value of Pi to 16 million decimal places.
Supercomputers are mainly used for the following purposes or applications: Weather
forecasting • Nuclear science research • Aerodynamic modelling • Seismology • Metrology
According to the top500 list, since June 2013 Tianhe-2 is the fastest supercomputer in the
world developed by China’s National University of Defense Technology.
It is capable of performing 33.86 petaflops (quadrillions of calculations per second).
It can best be used for simulation, analysis and government security applications.
Page 10 of 45
I
TH
Tianhe-2
A
Mainframe Computer
R
Mainframe Computers are smaller than supercomputers, still, they are comparatively
T
huge. These are not as fast as supercomputers. These are expensive as well as take up
EE
huge space for the entire setup. Mainframe computers can store huge amounts of data
and they are capable of handling large calculations. These computers are usually found in
M
These can support more than 100 users at the same time. These very large and expensive
computers have great processing speed and very large storage capacity and memory as
compared to minicomputers.
F.
These computers even possess and work with more than one processor at the same time.
Thus one can say these are multi-user, multiprocessor systems.
O
For mainframe computers, very sophisticated operating systems are needed to control
PR
Mini Computer
Mini computers are cheaper and easy to carry. Notebook and Tablet are examples of
minicomputers.
Minicomputers also called mid-range servers, are more powerful computers than
microcomputers in terms of processing power and capabilities.
Minicomputers are mainly multi-user systems where many users simultaneously work on
the systems.
Minicomputers possess greater storage capacity and larger memories as compared to
microcomputers. These are even capable of handling more input/output devices.
Examples of minicomputers are: PDP-11 • VAX • 7500 MAGNUM
Page 11 of 45
Microcomputer
I
TH
TYPES OF PROGRAMMING LANGUAGES
A
R
T
EE
Machine Assembly
O
Language Langauge
PR
A programming language is a set of rules that provides a way of telling a computer what
operations to perform, for communicating an algorithm and provides a linguistic framework
for describing computations. It is a notational system for describing computation in a
machine-readable or human-readable form.
Low-Level Language
Machine language is the lowest level of programming language. It handles binary data i.e.
0’s and 1’s. It directly interacts with the system. Machine language is difficult for human
beings to understand as it comprises the combination of 0’s and 1’s.
There is software which translates programs into machine-level language.
Examples include operating systems like Linux, UNIX, Windows, etc. In this language, there
is no need of compilers and interpreters for conversion and hence the time consumption
is less.
I
TH
0 0 0 1 1 1 1 1 0 0 0 0 1 0 1 0 1 0 1
0 0 1 1 1 0 0 1 1 1 0 0 1 1 0 1 0 1 0
A
0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0
R
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 0 1 0
T 1 0 0 0 0 0 1 1 1 1 1 0 0 0 0
EE
1 0 1 0 1 0 1 0 0 0 1 1 1 0 0 0 1 0 1
M
1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 0 1 0 1
SU
specific format called commands. It uses symbols to represent the field of instructions. It is
very close to machine-level language.
PR
ALL MLL
Medium-level language
I
TH
analyzed by the primary software program, the medium-level language is interpreted into
machine code for execution.
Because C language has both the feature of high-level and low-level language so it is often
A
called middle-level language and Java byte code are also some examples of medium-level
R
language.
High-level Language
T
EE
The high-level language uses a format or language that is most familiar to users. The
instructions in this language are called codes or scripts.
M
The computer needs a compiler and interpreter to convert high-level language programs
SU
to machine-level language.
Examples include C++, Python, Java, etc.
It is easy to write a program using a high-level language and is less time-consuming.
F.
The main disadvantages of this are that it takes a lot of time for execution and occupies
more space when compared to Assembly- or Machine-level languages.
O
PR
CCLASS X{
FLOAT SURFACE()
RETURN B*H/2; High-level program
}
I
within a storage device. A single directory may or may not contain multiple files. It can also
TH
have sub-directories inside the main directory. Information about files is maintained by
Directories. In Windows OS, it is called folders.
A
R
It provides I/O support for a variety of storage device types.
T
Minimizes the chances of lost or destroyed data
EE
Helps OS to standardise I/O interface routines for user processes.
It provides I/O support for multiple users in a multiuser systems environment.
Three types of file structures in OS:
M
STORAGE SYSTEM
Besides processing data and getting the results for immediate use computer is used for
storing data as well. Therefore, there are two types of memory in a computer system, one for
storing data that are currently being handled by the CPU and another for storing data and
results for future reference.
1 Byte = 8 Bits
1 KB = 1024 Bytes
1 MB = 1024 KB = 1048576 Bytes
1 GB = 1024 MB = 1073741824 Bytes
1 TB = 1024 GB = 1099511627776 Bytes
Page 15 of 45
TYPES OF MEMORY
RAM ROM
I
TH
SRAM PROM
DRAM EPROM
EEPROM
PRIMARY MEMORY
A
R
The storage system used for handling the running process is called primary memory. They
T
are temporary in nature. The storage which is used to store data and information for
EE
longer-term is called secondary memory.
M
The data and information held by the primary memory can be directly accessed by the
CPU using data and address buses. However, the data stored in the secondary memory is
SU
to be fetched to the primary memory through I/O channel first and the CPU reads the data
from the secondary memory via the primary.
F.
Primary storage devices store the inputted data and immediate calculation results. The
data stored in primary storage is temporary and will be lost if they are disconnected from
O
RAM
It is volatile in nature and loses all its content once the power of the computer is turned
off. Hence RAM is used for storing the data and instructions only during the processing.
Unlike the Secondary form of memory, it is faster in data transfer. It is the internal memory.
It is also called Read/ Write memory as it can perform both read and write operations.
In SRAM data is stored only until the power of the computer is on. It uses a number of
transistors to store a single bit of data.
In DRAM, data is stored in a storage cell consisting of transistors and capacitors. Unlike
SRAM, DRAM needs to be refreshed continuously with the power supply because the
capacitor has the tendency to get discharged.
Page 16 of 45
ROM
ROM stores data permanently. This means unlike RAM; it can retain data even after the
computer is turned off. Generally, the contents of ROM cannot be erased, modified or
changed. Devices such as calculators, laser printers, etc. use ROM. It allows sequential
access to data.
Erasable Programmable ROM (EPROM) is a type of ROM, in which data can be erased or
I
TH
destroyed using Ultraviolet (UV) rays. As such, the facility of changing the content is
available. It facilitates the storage of data for longer terms.
A
Electrically Erasable Programmable ROM (EEPROM) is a type of ROM in which data can
R
be erased or destroyed electrically with the means of an electric charge. Here, data can be
written or read at the rate of one bit per unit time which makes it slow.
T
SECONDARY MEMORY
EE
M
Secondary storage devices are used to store the data permanently for future use. The data
stored in them is secure even if there is no power supply. Hard Disk Drive is the widely
SU
used secondary storage. The reason for their requirement is that the content of memory is
volatile in nature i.e. data will be lost if power is lost hence in order to preserve data for a
longer period or forever we need secondary memory or secondary storage devices.
F.
Magnetic Tapes are plastic tapes with a magnetic coating that are used for data storage.
O
They are similar to normal recording tapes which can be used for storing audio and video.
PR
Magnetic Disks are flat disks covered with magnetic coating for holding information. It is
used to store digital information in the form of small and magnetized needles. It is large in
storage size and cheaper than RAM. It allows random access to data and provides the
facility of erasing and recording data as many times as required.
Optical Storage System uses laser light as the optical medium to retrieve as well as record
data. Example: CD-ROM, DVD, CR-R, CD-RW, DVD-R, DVD-RW
Solid State Drive (SSD) is a device that contains all the properties of a hard drive to store
data and uses solid-state memory which has no moving part. It uses semiconductors to
store data. Its main principle is to process data electronically. Since it has no mechanical
moving part, the data access time is faster than that in HDD.
Page 17 of 45
I
TH
scanners are dragged across the image manually.
Most scanners have a flat scanning surface as they are flatbed devices mainly used for
scanning magazines, photographs, and numerous documents. The most popular type of
A
optical scanner is a flatbed scanner, which scans documents on a flat surface. These scanners
R
do not require the document to be moved and can capture all of the document's elements.
A scanner that allows only paper to be scanned, is known as sheetfed scanners. These
T
scanners are a little smaller than regular flatbed scanners, and they feature a lesser image
EE
resolution. Sheetfed scanners allow you to scan multiple documents at once instead of
turning pages manually after each scan. Like photocopiers, these scanners allow you to insert
M
papers into a feeder tray and then scan one page at a time.
A portable scanner is a compact manual scanning device that functions
SU
I
TH
A
R
T
EE
M
High-resolution colour displays, such as modern LCD display units, use an active-matrix
SU
structure. A matrix of thin-film transistors (TFTs) is added to the electrodes in contact with the
LC layer. Each pixel has its own dedicated transistor. Active-matrix-addressed displays look
brighter and sharper than passive-matrix-addressed displays of the same size and generally
F.
the front plate. The coating is transparent and conductive. Its sections (segments) are in the
PR
shape of desired characters. LCDs do not emit their own light. Therefore, a light source is to be
used. LCDs simply change the reflection of available light. Today, most LCDs used are of the
type that produces dark images on a silver background.
Advantages:
Light weight as compared to CRT, Plasma and a few other displays.
Perfectly flat screen.
Consumed low electricity power.
Able to generate higher brightness in images.
Disadvantages:
Fixed resolution that cannot be changed.
Expensive than a CRT display.
Limited viewing angle.
Short life
Page 19 of 45
I
TH
A
R
T
EE
M
SU
A number of parallel wires run horizontally as well as vertically. A small amount of current is
passed through one horizontal and one vertical wire to cause the gas to glow at a spot at the
F.
intersection of the wires. TV’s computer collects the encoded information in the video signal
to know which level to excite the gas to, which is passed on to a grid of electrodes that use
O
the potential difference in them to create a current flow in each cell. The current creates a
PR
rapid flow of charged particles. The IBM 581 display employs 960 horizontal and 768 vertical
pixels as compared to the IBM-PC colour graphic adapter which is provided with 320 X 200
pixels in medium resolution and 640 X 200 in high resolution.
Advantages:
Large viewing angle.
Thinner in width.
Freestanding or can be easily mounted on the wall.
Clear image, brighter viewing angle, better colour quality & high contrast ratio.
Disadvantages:
The plasma display screens are costly.
These are available on the selected models of portable computers.
More electricity than LCD.
As your plasma get older the brightness gets dimmer.
Page 20 of 45
I
3. Burn-in problem; i.e., plasma panels are
kind of problem.
TH
easily to burn-in of static images.
A
4. Life-Span around 50, 000 to 1, 00, 000
around 20, 000 to 60, 000 hours.
hours.
R
5. Cost They are cheaper. They are costly.
T It also shows the same view but
EE
Viewing It shows the same view from the
6. upto 165 degrees, picture in the
angle every angle.
LCD suffers from the side view.
M
Power
7. It consumes more power. It consumes less power.
SU
Consumption
8. Performance
in between the gases and also high issues.
O
Contrast It has higher contrast ratio which is It has lower contrast ratio which
9.
Ratio upto 3000:1. is upto 350-450:1.
The impact printer works on the same mechanism as the type-writer. It forms a character or
I
TH
image by striking a mechanism such as a hammer or wheel against to ink ribbon, leaving an
image on paper It can be capable of printing a single character or line at the same time.
Common types of impact printers are dot matrix, daisy wheel, chain, and drum printer. while
A
the non-impact printer forms characters & and images on paper without actually strikingthe
R
paper. Paper & and print heads come in contact & and hence the text or image is formed.
There are many different types of printers.
1. Daisy-wheel
T
EE
2. Dot-matrix
3. Ink-jet
4. LCD & LED
M
5. Line printer
SU
The impact printer works on the same mechanism as the type-writer. It forms a character or
image by striking a mechanism such as a hammer or wheel against to ink ribbon, leaving an
image on paper It can be capable of printing a single character or line at the same time.
Common types of impact printers are dot matrix, daisy wheel, chain, and drum printer. while
the non-impact printer forms characters & and images on paper without actually strikingthe
paper. Paper & and print heads come in contact & and hence the text or image is formed.
There are many different types of printers.
1. Daisy-wheel
2. Dot-matrix
3. Ink-jet
4. LCD & LED
5. Line printer
6. Thermal printer etcetera.
I
TH
Dot matrix printer:
A
R
Character printer.
Capable of printing single characters at the same time.
T
Forms characters & and images as a pattern of dots.
EE
Contains a print head which moves horizontally across the paper.
Uses a 5 × 7 matrix to form a character.
Print by hammering the pins on the inked ribbon to leave ink impressions on the paper.
M
ADVANTAGES:
Low cost & easily available.
F.
Cheap in cost.
Can make a carbon copy of print out.
O
DISADVANTAGES:
Railway Ticket Printed via DMP
Slow in speed.
Very noisy.
Cannot work perfectly in graphics
Page 23 of 45
I
TH
Low cost.
Can make a carbon copy of print
A
out.
R
Low maintenance cost.
Printing quality is similar to a
typewriter.
T
EE
Able to print bold characters.
Allows using different font-face
in the same document.
M
SU
DISADVANTAGES:
DRUM PRINTER:
It’s a line printer.
Able to print a line at the same time.
Consists of a solid cylindrical drum with characters embossed on it in a circular band.
Each band consists of a character set which contains 96 characters.
The drum rotates quickly when desired characters arrive an appropriate hammer strike on
the ribbon & character is printed on paper.
Capable of printing 300 to 2000 lines per minute.
ADVANTAGES:
I
TH
Low cost than non-impact printer.
Can make a carbon copy of print out.
Low maintenance cost.
A
Faster than another impact printer.
R
Printing quality is similar to a typewriter.
DISADVANTAGES: T
EE
Very slow in speed.
Very noisy.
M
CHAIN PRINTER:
O
ADVANTAGES: DISADVANTAGES:
Low cost than non-impact printer. Slower than the non-impact printer.
Can make a carbon copy of print out. Very noisy.
The chain can be easily changed. Large & heavy.
Allowed to print different type font. Cannot print graphics.
Printing quality is similar to a Only prints predefined set of
typewriter. characters
INK-JET PRINTER
It’s a non-impact printer.
It’s a character printer.
Forms characters and all kinds of images by spraying drops of ink onto the paper.
I
TH
The print head contains 64 tiny nozzles.
To print a character the printer the printer selectively heats the appropriate set of nozzles
as the print head moves horizontally.
A
Inkjet printers can either colour or monochrome.
R
Capable of printing 30 to 400 characters per minute.
ADVANTAGES:
T
EE
High-quality output.
Silent during the operation.
M
DISADVANTAGES:
O
LASER PRINTER:
It’s a non-impact printer.
It’s a page printer.
Three main components laser beam, a
multi-sided mirror, a photoconductive
drum & toner.
To print the page laser beam is focused on
the drum by spinning a multisided mirror.
The drum is electrically charged.
A toner which is composed of oppositely
charged ink particles, sticks to the drum.
Page 26 of 45
Then toner focused on the paper with heat & and pressure to generate output.
Low-speed laser printers can print 4 to 12 pages per minute while high-speed laser printers
are Capable of printing 500 to 1000 pages per minute.
ADVANTAGES:
DISADVANTAGES:
I
TH
Very expensive and cannot make a carbon copy of print out.
A
R
T
EE
M
SU
F.
O
PR
Less
4. Maintenance High Maintenance cost Low Maintenance cost
cost
Page 27 of 45
NUMBER SYSTEMS
The number system defines a set of values used to represent quantity. For example, you go
to your college canteen and order the following:
1 Packet Chips
1 Plate Momos
1 1/2 ltr Bottle Cold Drink
4 Chocolates
Number line is a line where all numbers lies. The origin is called zero and from there in right
all numbers are positive numbers till +ve infinity while on the left lies all negative numbers till
-ve infinity. Remember in positive numbers, greater the value when goes to right while in
negative numbers lower the value when going in left.
I
TH
A
R
Numbers are increasing from left
T to right
EE
M
SU
F.
O
PR
NUMBER SYSTEMS
TYPES OF NUMBERS
Natural Numbers: Natural Numbers are the most basic type of Numbers that range from 1
to infinity. These numbers are also called Positive Numbers or Counting Numbers. Natural
Numbers are represented by the symbol N. Example: 1, 2, 3, 4, 5, 6, 7, and so on.
Whole Numbers: Whole Numbers are basically the Natural Numbers, but they also include
‘zero’. Whole numbers are represented by the symbol W. Example: 0, 1, 2, 3, 4, and so on.
Integers: Integers are the collection of Whole Numbers plus the negative values of the
Natural Numbers. Integers do not include fraction numbers i.e. they can’t be written in a/b
form. The range of Integers is from the Infinity at the Negative end and Infinity at the
Positive end, including zero. Integers are represented by the symbol Z. Example: ...,-4, -3, -2,
I
TH
-1, 0, 1, 2, 3, 4,...
Fractions: Fractions are the numbers that are written in the form of a/b, where, a belongs
A
to Whole numbers and b belongs to Natural Numbers, i.e., b can never be 0. The upper
R
part of the fraction i.e. a is termed as a Numerator whereas the lower part i.e. b is called a
Denominator. Example: 1/2, 3/7, 8/3, etc.
T
EE
Rational Numbers: Rational numbers are the numbers that can be represented in the
fraction form i.e. a/b. Here, a and b both are integers and b≠0. All the fractions are rational
numbers but not all the rational numbers are fractions. Example: -2/5, 0.54, 1/5, 13/4, ...
M
SU
Irrational Numbers: Irrational numbers are the numbers that can’t be represented in the
form of fractions i.e. they can not be written as a/b. Example: √2, √3, √.434343, π...
F.
Real and Imaginary Numbers: Real numbers are numbers that can be represented in the
decimal form. These numbers include whole numbers, integers, fractions, etc. All the
O
integers belong to Real numbers but all the real numbers do not belong to the integers.
PR
Imaginary Numbers are all those numbers that are not real numbers. These numbers
when squared will result in a negative number. The √-1 is represented as i. These numbers
are also called complex numbers. Example: √-2, √-5,...
Prime Numbers and Composite Numbers: Numbers that do not have any factors other
than 1 and the number itself are termed as Prime Numbers. All the numbers other than
Prime Numbers are termed as Composite Numbers except 0. Zero is neither a prime nor a
composite number. Example: 2, 3, 5, 7,... are prime numbers and 4, 6, 8, 9, 12,... are
composite numbers
Page 29 of 45
I
Every number is named because it has a base value and the name of that number is in other
TH
common languages such as Latin or Greek. For example, the term Decimal comes from Decimus
which is a Latin term which means tenth or 10, its adjective is decem.
Every number system has a base number or R-value which decides the quantity of numbers that the
A
number system can have.
To define the set of numbers in a particular number system we create a formula of :
R
T {0to (R-1)}
EE
This means that if my system is decimal to its R-value is 10 and the number of numbers this system
M
can have is ten numbers now since R=10, therefore the set it’ll have will {0-9}. This system is most
widely used by contemporary societies.
SU
F.
O
PR
Using this calculation of the R-number the binary number system has {0,1} and please note this is the
language of the computer. We also have a number system with R-number 1, called Unary or Bijective
number system and it is used for tally marks and counting
Please note in the number system, those who have an R-number beyond 10 i.e 11/12/13 don’t use
numbers after 10 instead they use alphabets to denote the numbers.
For example, in the Undecimal number system, we have R number 11 and hence the set will be {0 to
10} but we’ll write A instead of 10 so our set will be {0,1,2,3,4,5,6,7,8,9,A}.
Similarly in the duodecimal system and tredecimal we have R-values of 12 & 13 respectively so
instead of 11 & 12 we’ll write B & C respectively. This way in hexadecimal we have the value of R-
number 16 therefore our set of numbers will {0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F}
Page 30 of 45
Undecimal, unodecimal,
1 1 Unary 1. 11
undenary
4 4 Quaternary Quattuordecimal,
4. 14
I
quadrodecimal
TH
5 5 Quinary Quindecimal,
15
pentadecimal
A
6 6 Senary, seximal
Hexadecimal,
R
16
sexadecimal, sedecimal
7 7 Septimal
T 17
Septendecimal,
EE
8 8 Octal heptadecimal
18 Octodecimal
9 9 Nonary, nonal
M
Undevicesimal,
SU
10 10 Decimal, denary 19
nonadecimal
20 Vigesimal
F.
O
PR
1. Divide the Decimal Number with the base of the number system to be converted to. Here
the conversion is to binary, hence the divisor will be 2.
2. The remainder obtained from the division will become the least significant digit of the
new number.
3. The quotient obtained from the division will become the next dividend and will be divided
by base i.e. 2.
I
4. The remainder obtained will become the second least significant digit i.e. it will be added
TH
in the left of the previously obtained digit.
A
R
T
EE
M
SU
F.
O
PR
1. Divide the Decimal Number with the base of the number system to be converted to. Here
the conversion is to octal, hence the divisor will be 8.
2. The remainder obtained from the division will become the least significant digit of the
new number.
3. The quotient obtained from the division will become the next dividend and will be divided
by base i.e. 8.
4. The remainder obtained will become the second least significant digit i.e. it will be added
in the left of the previously obtained digit.
Page 32 of 45
I
TH
Decimal Number System to Hexadecimal Number Systems
A
1. Divide the Decimal Number with the base of the number system to be converted to. Here
R
the conversion is to Hex hence the divisor will be 16.
2. The remainder obtained from the division will become the least significant digit of the
new number. T
EE
3. The quotient obtained from the division will become the next dividend and will be divided
by base i.e. 16.
4. The remainder obtained will become the second least significant digit i.e. it will be added
M
Practise yourself
Convert the following decimal numbers to binary, octal and hexadecimal numbers:
1. Multiply each digit of the Binary number with the place value of that digit, starting from
right to left i.e. from LSB to MSB.
2. Add the result of this multiplication and the decimal number will be formed.
I
TH
A
R
T
EE
M
SU
F.
O
PR
1. Multiply each digit of the Binary number with the place value of that digit, starting from
right to left i.e. from LSB to MSB.
2. Add the result of this multiplication and the decimal number will be formed.
1. Divide the binary number into groups of four digits starting from right to left i.e. from LSB
to MSB.
2. Convert these groups into equivalent hex digits.
Page 34 of 45
I
TH
A
R
T
EE
M
SU
F.
O
PR
Practise yourself
Convert the following binary numbers to decimal, octal and hexadecimal numbers:
1. Multiply each digit of the Octal number with the place value of that digit, starting from
right to left i.e. from LSB to MSB.
Add the result of this multiplication and the decimal number will be formed.
I
TH
A
R
T
EE
M
SU
F.
1. We need to convert the Octal number to Binary first. For that, follow the steps given in the
above conversion.
2. Now to convert the binary number to Hex number, divide the binary digits into groups of
four digits starting from right to left i.e. from LSB to MSB.
3. Add zeros prior to MSB to make it a proper group of four digits(if required)
4. Now convert these groups into their relevant decimal values.
5. For values from 10-15, convert it into Hex symbols i.e from A-F
I
TH
A
R
T
EE
M
SU
F.
O
PR
Practise yourself
Convert the following octal numbers to decimal, binary and hexadecimal numbers:
1. Write the decimal values of the symbols used in the Hex number i.e. from A-F
2. Multiply each digit of the Hex number with its place value. starting from right to left i.e.
LSB to MSB.
3. Add the result of multiplications and the final sum will be the decimal number.
I
TH
A
R
T
EE
M
SU
1. We need to convert the Hexadecimal number to Binary first. For that, follow the steps
given in the above conversion.
2. Now to convert the binary number to Octal number, divide the binary digits into groups of
three digits starting from right to left i.e. from LSB to MSB.
3. Add zeros prior to MSB to make it a proper group of three digits(if required)
4. Now convert these groups into their relevant decimal values.
I
TH
A
R
T
EE
M
SU
F.
O
PR
Practise yourself
Convert the following hexadecimal numbers to decimal, binary and octal numbers:
I
TH
A
//converted using the conversion
R
method of other to decimal
BINARY ARITHMETICS
Binary Addition
I
TH
A
R
T
EE
M
SU
F.
O
PR
Page 41 of 45
I
TH
A
R
T
EE
M
SU
F.
O
PR
Practise yourself
BINARY ARITHMETICS
Binary Subtraction
I
TH
A
R
T
EE
M
SU
F.
O
PR
Practise yourself
BINARY ARITHMETICS
Binary Multiplication
I
TH
A
R
T
EE
M
SU
F.
O
PR
Practise yourself
BINARY ARITHMETICS
Binary Division
I
TH
A
R
T
EE
M
SU
F.
O
PR
Practise yourself