Computer Science
Given that A's code point in ASCII is 65, and a's code point is 97. What is the binary representation of 'A' in ASCII ? (and what's its hexadecimal representation). What is the binary representation of 'a' in ASCII ?
Number System
23 Likes
Answer
Binary representation of 'A' in ASCII will be binary representation of its code point 65.
Converting 65 to binary:
2 | Quotient | Remainder |
---|---|---|
2 | 65 | 1 (LSB) |
2 | 32 | 0 |
2 | 16 | 0 |
2 | 8 | 0 |
2 | 4 | 0 |
2 | 2 | 0 |
2 | 1 | 1 (MSB) |
0 |
Therefore, binary representation of 'A' in ASCII is 1000001.
Converting 65 to Hexadecimal:
16 | Quotient | Remainder |
---|---|---|
16 | 65 | 1 |
16 | 4 | 4 |
0 |
Therefore, hexadecimal representation of 'A' in ASCII is (41)16.
Similarly, converting 97 to binary:
2 | Quotient | Remainder |
---|---|---|
2 | 97 | 1 (LSB) |
2 | 48 | 0 |
2 | 24 | 0 |
2 | 12 | 0 |
2 | 6 | 0 |
2 | 3 | 1 |
2 | 1 | 1 (MSB) |
0 |
Therefore, binary representation of 'a' in ASCII is 1100001.
Answered By
9 Likes
Related Questions
Convert the following binary numbers to decimal, octal and hexadecimal numbers.
(i) 100101.101
(ii) 10101100.01011
(iii) 1010
(iv) 10101100.010111
Convert the following binary numbers to octal
(a) 111010
(b) 110110101
(c) 1101100001
Add the following binary numbers:
(i) 10110111 and 1100101
(ii) 110101 and 101111
(iii) 110111.110 and 11011101.010
(iv) 1110.110 and 11010.011
Convert the following binary numbers to octal
(a) 11001
(b) 10101100
(c) 111010111