Digital Electronics - Number Systems and Codes - Discussion
Discussion Forum : Number Systems and Codes - General Questions (Q.No. 6)
6.
Decode the following ASCII message.
10100111010100101010110001001011001
01000001001000100000110100101000100
Discussion:
47 comments Page 1 of 5.
Manas said:
1 year ago
As ASCII code is 7 bit.
So,
The first 7 bit is =1010011 which is equivalent to 83 equivalent ASCII= S.
2nd 7 bit is= 1010100 which is equivalent 84 equivalent ASCII= T.
3rd 7 bit is =1010101 ------------------- 85 equivalent ASCII= U.
4th 7 bit is= 1000100 ------------------- 68 equivalent ASCII= D.
5th 7 bit is = 1011001 ------------------- 89 equivalent ASCII= Y.
6th 7 bit is = 0100000 ------------------ 32 equivalent ASCII= space.
7th 7 bit is = 1001000 ------------------ 72 equivalent ASCII= H.
8th 7 bit is = 1000001 ------------------ 65 equivalent ASCII= A.
8th 7 bit is = 1010010 ------------------ 82 equivalent ASCII= R.
9th 7 bit is= 1000100 ------------------ 68 equivalent ASCII= D.
So,
The first 7 bit is =1010011 which is equivalent to 83 equivalent ASCII= S.
2nd 7 bit is= 1010100 which is equivalent 84 equivalent ASCII= T.
3rd 7 bit is =1010101 ------------------- 85 equivalent ASCII= U.
4th 7 bit is= 1000100 ------------------- 68 equivalent ASCII= D.
5th 7 bit is = 1011001 ------------------- 89 equivalent ASCII= Y.
6th 7 bit is = 0100000 ------------------ 32 equivalent ASCII= space.
7th 7 bit is = 1001000 ------------------ 72 equivalent ASCII= H.
8th 7 bit is = 1000001 ------------------ 65 equivalent ASCII= A.
8th 7 bit is = 1010010 ------------------ 82 equivalent ASCII= R.
9th 7 bit is= 1000100 ------------------ 68 equivalent ASCII= D.
(11)
Vinsan said:
1 decade ago
Correct Explanation available here:
Step 1: Divide the code into 7-bits each
(1010011) (1010100) (1010101) (1000100) (1011001)
(0100000) (1001000) (1000001) (1010010) (1000100)
Step 2: Convert binary data to decimal individually
Step 3: (83) (84) (85) (68) (89) (32) (72) (65) (82) (68)
Step 4: Substitute characters of ASCII values
Example:-
65-A
66-B
67-C
....
....
90-Z
32-blank, etc.
i.e code converted into text as STUDY HARD
Note:- If given data is not consisting 7 multiples of bits then append 0's to MSB i.e left hand side of data.
Also you should remember that characters case i.e upper or lower.
Step 1: Divide the code into 7-bits each
(1010011) (1010100) (1010101) (1000100) (1011001)
(0100000) (1001000) (1000001) (1010010) (1000100)
Step 2: Convert binary data to decimal individually
Step 3: (83) (84) (85) (68) (89) (32) (72) (65) (82) (68)
Step 4: Substitute characters of ASCII values
Example:-
65-A
66-B
67-C
....
....
90-Z
32-blank, etc.
i.e code converted into text as STUDY HARD
Note:- If given data is not consisting 7 multiples of bits then append 0's to MSB i.e left hand side of data.
Also you should remember that characters case i.e upper or lower.
(4)
Manoj said:
11 months ago
@All.
Correct explanation is available here:
First divide the code into 7 bits.
(1010011) (1010100) (1010101) (1000100) (1011011)
(0100000) (1001000) (1000001) (1010010) (1000100)
Then convert Binary data into Decimal form
1010011 = 1 * 2^6 + 0 * 2^5 + 1 * 2^4 + 0 * 2^3 + 0 * 2^2 + 1 * 2^1 + 1 * 2^0
= 64 + 0 + 16 + 0 + 0 + 2 + 1.
= 83.
Like this do all.........
we get decimal values.....
83, 84, 85, 68, 89, 32, 72, 65, 82, 68.
Characters of ASCII are.
32 is the space.
65-90 are (A-Z).
So, 65 = A.
66 = B.
67= C.Then 90=Z.
Now choose the correct form of letters then we get;
[STUDY HARD]
This is the correct way to understand easily.
Thank you.
Correct explanation is available here:
First divide the code into 7 bits.
(1010011) (1010100) (1010101) (1000100) (1011011)
(0100000) (1001000) (1000001) (1010010) (1000100)
Then convert Binary data into Decimal form
1010011 = 1 * 2^6 + 0 * 2^5 + 1 * 2^4 + 0 * 2^3 + 0 * 2^2 + 1 * 2^1 + 1 * 2^0
= 64 + 0 + 16 + 0 + 0 + 2 + 1.
= 83.
Like this do all.........
we get decimal values.....
83, 84, 85, 68, 89, 32, 72, 65, 82, 68.
Characters of ASCII are.
32 is the space.
65-90 are (A-Z).
So, 65 = A.
66 = B.
67= C.Then 90=Z.
Now choose the correct form of letters then we get;
[STUDY HARD]
This is the correct way to understand easily.
Thank you.
(3)
Sai said:
1 year ago
Thanks for the great information @Manas.
(3)
Kahindi said:
6 years ago
Nice explaination, thanks @Vinsan.
(1)
Mohini said:
7 years ago
1010011 first convert to octal or hexadecimal eg. In hexadecimal, it is 53 then 53 into decimal 5*16^1 + 3*16^0=80+3=83 decimal number.
Bhask said:
9 years ago
ASCII code is a Alpha Numeric code, which is 7 bit code. So,divide each 7 bits apart and then follow the ASCII no logic.
A=65
B=67
.
.
.
so on
STUDY HARD will come.
A=65
B=67
.
.
.
so on
STUDY HARD will come.
Vipin said:
9 years ago
Your explanation is brilliant @Vinsan.
Venkatesh said:
9 years ago
Another way to do. First, we can observer question it consists of a 70. Each ASCII bit is 7. Total 70/7=10 characters. Only b option contains 10 characters.
Y@seen said:
9 years ago
Good explanation @Vinsian.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers