1
a) Note that this will be stored in the two's complement format. Thus, the binary will be 11110001, hence it will be 0xF7.
b) x - y = -5, which will be 11111011, hence 0xFB.
c) x ^ y = 5 ^ 10, but this will overflow and finally produce 0x0F.
d) x << 2 is 0x18, thus (x << 2) & z (bit-wise and) gives 0x04.
e) As x^y = 0x0F, and | is bit-wise or, thus it gives 0x2F.
2. The sign bit is 1, thus the number is negative. The next three digits are for the decimal part, which is 100, and the exponent is 110, which is 6, but there is a bias of 3, which means the actual exponent is 3. Thus, the number is in the decimal representation.
Comment in case of any doubts.
1. [10] Given the declarations: signed char0x05, y 0x0A, z 0x2F: we are using 1 byte...
Problem #6 (Conversions) Given the following base 10 decimals a) 3.75 b) 0.3 c) 89.7 1) Convert to binary, octal and hex, then 2) Convert to NASA Hex float with first 24 bits representing thesigned fraction and the last 8 bits representing thesigned exponent. Scaled as 0.FRACTION x 2^EXPONENT 3) convert a) to scaled integer binary 1 unsinged byte maxium bits,convert b) to scaled integer binary 2 unsinged byte maxium bits,convert c) to scaled integer binary 3 unsinged byte maxium...
1 Help Entering Answers 1 point) Use Stokes' Theorem to evaluateF.dr where F(x,y,z) 6yzi 3xzj +3e k and C is the circy4,z 5 oriented counterclockwise as viewed from above Since the circle is oriented counterclockwise as viewed from above the surface we attach to the circle is oriented upwards The easiest surface to attach to this curve is the disk x2 + y2 < 4, z-5. Using this surface in Stokes' Theorem evaluate the following. F-dr = where sqrt(4-xA2) sqrt(4-x^2)...
10. Let F(x, y, z) = 〈y,-z, 10) per half of x2 +y2 + z2 = 1, oriented upward, and C the circle 2 y 1 in the z - y plane, oriented counter-clockwise. Find Jscurl(F) ndS directly and by using Stokes' Theorem. , where S is the up 10. Let F(x, y, z) = 〈y,-z, 10) per half of x2 +y2 + z2 = 1, oriented upward, and C the circle 2 y 1 in the z - y...
Question 2. Suppose (X.,X) . FXY, for i = 1, , n. We collect sample data for n-100, obtain sz-2 and Sy-1, and would like to test H0 : Var(x)-Var(y) versus HA : Var(z) Var(y). (a) Using the F test, what is the observed statistic? (b) Derive the null distribution and write out the p-value. Question 2. Suppose (X.,X) . FXY, for i = 1, , n. We collect sample data for n-100, obtain sz-2 and Sy-1, and would like...