CBSE Class 11 Computer Science
Question 90 of 91
Data Representation — Question 21
Back to all questions 21
Question Question 21
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 ?
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.