# Quiz Answers - Use this setup for problems 1 through 4 Let...

This preview shows pages 1–11. Sign up to view the full content.

Use this setup for problems 1 through 4: Let a 32 bit quantity have the value 0xC17B0000 (in binary that would be 11000001 01111011 00000000 00000000) Assume the value is being interpreted as a single precision floating point value and answer the following questions: 1.What is the sign of the value, + or -? 1 -> - 2.What is the decimal value of the exponent? 10000010 2 – 127 10 = 130 – 127 = 3 3.What decimal value is represented by the whole 32 bit quantity. Mantissa: 1. 1111011 00000000 00000000 1. 1111011 00000000 00000000 = 1.9609375 10 -1.9609375 * 2^3 = -15.6875 -1.1111011 * 2^3 = -1111.1011 = -15.6875 10

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Use this setup for questions 5 through 10: Assume a hardware instruction is storing a 4 byte integer from a register to location 0x104. Let the value in the register be 0x01020304. 4. What value ends up in location 0x103 on a big-endian machine? not affected 5. What value ends up in location 0x103 on a little-endian machine? not affected
Use this setup for questions 5 through 10: Assume a hardware instruction is storing a 4 byte integer from a register to location 0x104. Let the value in the register be 0x01020304. 6. What value ends up in location 0x104 on a big-endian machine? 0x01 7. What value ends up in location 0x104 on a little-endian machine? 0x04 8. What value ends up in location 0x105 on a big-endian machine? 0x02 9. What value ends up in location 0x105 on a little-endian machine? 0x03

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
10. Express 3.14 as a single precision floating point number in computer: 3.14 = 11. 0010001111010111000010 2 = 1.10010001111010111000010 2 * 2 Mantissa field = 10010001111010111000010 Exponent field= 1 + 127 = 128 = 10000000 2 Sign = + = 0 3.14 = 0 10000000 10010001111010111000010
Example from lecture Operation Leading Digit .6875 2 = 1.375 1 .375 2 = 0.750 0 .75 2 = 1.500 1 .5 2 = 1.000 1 .6875 10 = .1011 2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Quiz 2 Answers 1,2,3 True or False? Each of the following are valid IP addresses www.digipen.edu: FALSE. . This is a domain name which can be translated by DNS (Domain Name Service) into the IP address 206.15.72.210 127.175.61: FALSE. This is only three bytes, IP address are always four bytes. 304.175.61.155: FALSE: This may look like four bytes, but the first quantity (304) cannot be represented by a byte. Bytes can represent integers from 0 to 255 only.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Quiz 2 Answers 4 Request retransmission of a packet that got lost or garbled. The TCP protocol at the t ransport layer performs this task. Lower levels, and even UDP at this level, make no attempt at sequencing packets, or recognizing missing or garbled packets. 5 Transmit a packet to a machine somewhere far across the Internet. The network layer (IP) preforms the task of sending packets from machine to machine across the internet. It has no concept of applications at either end producing or consuming the packets. 6
This is the end of the preview. Sign up to access the rest of the document.

## This homework help was uploaded on 04/18/2008 for the course CS 180 taught by Professor Hou during the Spring '06 term at DigiPen Institute of Technology.

### Page1 / 35

Quiz Answers - Use this setup for problems 1 through 4 Let...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online