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:

2QuotientRemainder
2651 (LSB)
2320
2160
280
240
220
211 (MSB)
 0 

Therefore, binary representation of 'A' in ASCII is 1000001.

Converting 65 to Hexadecimal:

16QuotientRemainder
16651
1644
 0 

Therefore, hexadecimal representation of 'A' in ASCII is (41)16.

Similarly, converting 97 to binary:

2QuotientRemainder
2971 (LSB)
2480
2240
2120
260
231
211 (MSB)
 0 

Therefore, binary representation of 'a' in ASCII is 1100001.

Answered By

9 Likes


Related Questions