Question

Consider the word DOG. a. What would the hexadecimal representation of this word be in ASCII?...

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?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Following are the ASCII representations of the letters :

  • D = decimal 68 = 0x44 = binary 01000100
  • O = decimal 79 = 0x4F = binary 01001111
  • G = decimal 71 = 0x47 = binary 01000111

a.

Thus, the hexadecimal ASCII representation is :

0x44 0x4F 0x47

b.

Thus, the binary ASCII representation is :

01000100 01001111 01000111

c.

By rotating the word bits 8 bits to the right, the lowest 8 bits will rotate over to the beginning, whle the other bits will shift right.

Thus, the binary ASCII representation would be:

01000111 01000100 01001111

equivalent to ASCII letters

G D O

d.

By rotating the word bits 8 bits to the left, the highest 8 bits will rotate over to the end, whle the other bits will shift left.

Thus, the binary ASCII representation would be:

01001111 01000111 01000100

equivalent to ASCII letters

O G D

e.

Writing 0x20 0x20 0x20 in binary, we get

00100000 00100000 00100000

Also, the binary ASCII representation of DOG is

01000100 01001111 01000111

Upon bitwise-XORing, we get the result as

01100100 01101111 01100111

which is equivalent to hexadecimal

0x64 0x6F 0x67

Writing the corresponding ASCII letters for 0x64, 0x6F, 0x67 respectively, we get the letters

d o g

f.

Writing 0x07 0x0E 0x13 in binary, we get

00000111 00001110 00010011

Also, the binary ASCII representation of DOG is

01000100 01001111 01000111

Upon bitwise-XORing, we get the result as

01000011 01000001 01010100

which is equivalent to hexadecimal

0x43 0x41 0x54

Writing the corresponding ASCII letters for 0x43, 0x41, 0x54 respectively, we get the letters

C A T

Add a comment
Know the answer?
Add Answer to:
Consider the word DOG. a. What would the hexadecimal representation of this word be in ASCII?...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • e. What would the results be (in letters) if we XORed the bits that represent COW...

    e. What would the results be (in letters) if we XORed the bits that represent COW with the hexadecimal value 20 20 20? f. What would the results be (in letters) if we XORed the bits that represent COW with the hexadecimal value 11 0E 03?

  • What is the ASCII representation for the numeral 3.1415 in binary? In octal? in hexadecimal? in...

    What is the ASCII representation for the numeral 3.1415 in binary? In octal? in hexadecimal? in decimal?​

  • ASCII Code Question 13: What character is the hexadecimal ASCII code 23? Question 14: What character...

    ASCII Code Question 13: What character is the hexadecimal ASCII code 23? Question 14: What character is the hexadecimal ASCII code 4A? Question 15: What character is the hexadecimal ASCII code 6A? Part 4: Converting numbers to binary (20 points) Question 16: For each scenario determine if the numbers should be stored as ASCII codes or binary equivalents. Then find the ASCII code or calculate the binary equivalent. Scenario ASCII code Binary equivalent The course number: 107 The year: 2001...

  • Given the interpretation and the word(s), tell what characters or decimal numbers are stored in main memory by the desig...

    Given the interpretation and the word(s), tell what characters or decimal numbers are stored in main memory by the designated word(s). We assume our computer uses 8 bits for characters and 16 bits for binary integers: (show your work) Word I 1011 0010 0010 0000 Word II 0100 1001 0101 0010 1) Binary Integer - Word I 2) Character (ASCII) – Word II _____________________________________________________________________________________________________________________________________________________ For the following problems, assume that our computer uses 16 bits for binary integers. Find the...

  • 5-Given that the ASCII code for A is 1000001, what is the ASCII code for J?...

    5-Given that the ASCII code for A is 1000001, what is the ASCII code for J? Express the answer as 7 binary digits. 6- Suppose we are working with an error-correcting code that will allow all single-bit errors to be corrected for memory words of length 7. We have already calculated that we need 4 check bits, and the length of all code words will be 11. Code words are created according to the Hamming algorithm presented in the text....

  • 2. Perform the following binary multiplications, assuming unsigned integers: B. 10011 x 011 C. 11010 x...

    2. Perform the following binary multiplications, assuming unsigned integers: B. 10011 x 011 C. 11010 x 1011 3. Perform the following binary divisions, assuming unsigned integers: B. 10000001 / 101 C. 1001010010 / 1011 4. Assume we are using the simple model for floating-point representation as given in the text (the representation uses a 14-bit format, 5 bits for the exponent with a bias of 16, a normalized mantissa of 8 bits, and single sign bit for the number ):...

  • If we use the IEEE standard floating-point single-precision representation (1 sign bit, 8 bit exponent bits...

    If we use the IEEE standard floating-point single-precision representation (1 sign bit, 8 bit exponent bits using excess-127 representation, 23 significand bits with implied bit), then which of the following hexadecimal number is equal to the decimal value 3.875? C0780000 40007800 Oo 40780000 40A80010 The binary string 01001001110000 is a floating-point number expressed using a simplified 14-bit floating-point representation format (1 sign bit, 5 exponent bits using excess-15 representation, and 8 significand bits with no implied bit). What is its...

  • 1) We would like to design a bus system for 32 registers of 16 bits each....

    1) We would like to design a bus system for 32 registers of 16 bits each. How many multiplexers are needed for the design? Select one: 5 16 1 4 32 2) The basic computer can be interrupted while another interrupt is being serviced. Select one: True False 3) If the Opcode bits of an instruction is 111, then the basic computer instruction type is either memory-reference or input-output. Select one: True False 4) The content of AC in the...

  • (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the...

    (3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a.      What is the range of the expressible numbers?    b.      What is the precision?    c.       What is the error?    ______________________________________________________________________________   (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below   (Note: the space in the binary string is purely for visual convenience) Show your work. Using...

  • . Huffman Encoding (a.) (6 points) Suppose a certain file contains only the following letters with the corresponding frequencies 1 AİB 73 9 30 44 130 28 16 In a fixed-length encoding scheme, cach...

    . Huffman Encoding (a.) (6 points) Suppose a certain file contains only the following letters with the corresponding frequencies 1 AİB 73 9 30 44 130 28 16 In a fixed-length encoding scheme, cach character is given a binary representation with the same number of bits. What is the minimum number of bits required to represent each letter of this file under fixed-length encoding scheme? Describe how to encode all seven letters in this file using the number of bits...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT