In: Computer Science
Consider the word DOG.
a. What would the hexadecimal representation of this word be in ASCII?
b. What would the binary representation of this word be in ASCII?
c. If we rotated the bits that represent this word 8 bits to the right, what would the word become (in letters)?
d. If we rotated the bits that represent DOG 8 places to the left, what would the word become (in letters)?
e. What would the results be (in letters) if we XORed the bits that represent DOG with the hexadecimal value 20 20 20?
f. What would the results be (in letters) if we XORed the bits that represent DOG with the hexadecimal value 07 0E 13?
PLEASE FIND THE ANSWER(S) and EXPLANATION
BELOW.
***The answer in the below screenshot is neatly indented for
better understanding.
D O G
Hexadecimal:- 44 4f 47
Binary :- 01000100 01001111 01000111
Rotate the bits to the right, we get ⇒ “ ‘ #
00100010 00100111 00100011
“ ‘ #
Rotate the bits to the left, we get ⇒ �(non-printable), N, F
10001000 1001110 1000110
� N F
(DOG) 44 4F 47 XOR 20 20 20 = 64 6F 67
(DOG) 44 4F 47 XOR 07 0E 13 = 43 41 54

