Number System03
Number System03
Sangeeth N.
● In the first step, we have to make the pairs of three bits on both sides
of the binary point. If there will be one or two bits left in a pair of three
bits pair, we add the required number of zeros on extreme sides.
● In the second step, we write the octal digits corresponding to each
pair.
Binary to Octal
● Convert to Octal (111110101011.0011)2
Binary to Octal
● Convert to Octal (10110111)2
Binary to Hexadecimal
● There are also only two steps to convert a binary number into a hexadecimal
number which are as follows:
● In the first step, we have to make the pairs of four bits on both sides of
the binary point. If there will be one, two, or three bits left in a pair of four
bits pair, we add the required number of zeros on extreme sides.
● In the second step, we write the hexadecimal digits corresponding to
each pair.
Binary to Hexadecimal
● Convert to hexadecimal (10110101011.0011)2
Binary to Hexadecimal
● Convert to hexadecimal (111101011001111)2
Octal to Binary
● The process of converting octal to binary is the reverse process of binary to
octal.
● We write the three bits binary code of each octal number digit.
Octal to Binary
● Convert to Binary (152.25)8
Octal to Binary
● Convert to Binary (467)8
Hexadecimal to Binary
● The process of converting hexadecimal to binary is the reverse process of
binary to hexadecimal.
● We write the four bits binary code of each hexadecimal number digit.
Hexadecimal to Binary
● Convert to binary (152A.25)16
Hexadecimal to Binary
● Convert to binary (4DE2F)16
Hexadecimal to Octal
● For converting hexadecimal to octal, there are two steps required to perform,
which are as follows:
○ In the first step, we will find the binary equivalent of the hexadecimal
number.
○ Next, we have to make the pairs of three bits on both sides of the binary
point. If there will be one or two bits left in a pair of three bits pair, we
add the required number of zeros on extreme sides and write the octal
digits corresponding to each pair.
Hexadecimal to Octal
● Convert to Octal (152A.25)16
Hexadecimal to Octal
● Convert to Octal (4DEF4)16
Octal to Hexadecimal
● For converting octal to hexadecimal, there are two steps required to perform,
which are as follows:
○ In the first step, we will find the binary equivalent of number.
○ Next, we have to make the pairs of four bits on both sides of the binary
point.
○ If there will be one, two, or three bits left in a pair of four bits pair, we
add the required number of zeros on extreme sides and write the
hexadecimal digits corresponding to each pair.
Octal to Hexadecimal
● Convert to hexadecimal (152.25)8
Octal to Hexadecimal
● Convert to hexadecimal (674)8
ASCII
● The ASCII stands for American Standard Code for Information Interchange.
● The ASCII code is an alphanumeric code used for data communication in digital
computers.
● The ASCII is a 7-bit code capable of representing 27 or 128 number of different
characters.
● ASCII code contains ten Arabic numerals from 0 to 9 from 48 to 57.
● Groups of letters are contained, i.e., the group of uppercase letters and the group
of lowercase letters. The range from 65 to 90 and 97 to 122 comes under this
category.
Unicode
● Unicode provides a unique way to define every character in every spoken
language of the world by assigning it a unique number.
● The Unicode standard is maintained by the Unicode Consortium and defines
more than 1,40,000 characters from more than 150 modern and historic
scripts along with emoji.
Unicode
● Unicode can be defined with different character encoding like UTF-8,
UTF-16, UTF-32, etc.
● Among these UTF-8 is the most popular as it used in over 90% of websites
on the World Wide Web as well as on most modern Operating systems like
Windows.
Question -1
Which of the following is the most widely used alphanumeric code for computer
input and output?
A) Gray
B) ASCII
C) Parity
D) EBCDIC
Ans: ASCII
Question -2
Convert (59.72)16 to binary.
A. 01011001.0111010
B. 01011001.01110010
C. 1110.11
D. 0101100101110010
Ans: 01011001.0111010
Question - 3
The binary number for octal 45 is
A. 100010
B. 100101
C. 110101
D. 100100
Ans: 100101
Question - 4
Convert 1100101000110101 to hexadecimal.
A. 121035
B. CA35
C. 53AC1
D. 530121
Ans: CA35
THANK YOU