Consider the following narrative to answer the questions 23- 25 The floating-poi
ID: 3907633 • Letter: C
Question
Consider the following narrative to answer the questions 23- 25
The floating-point format to be used in this problem is an 8-bit IEEE 754 normalized format with 1 sign bit, 3 exponent bits, and 4 mantissa bits. It is identical to the 32-bit and 64-bit formats in terms of the meaning of fields and special encodings. The exponent field employs an Excess-3 coding (given below). The exponents 000 and 111 are reserved.
000 (reserved)
111 (reserved)
23. Which of the following is the encoding of the decimal value 3.5 into the above FLP format?
a. 01010000
b. 01001100
c. 01010101
d. Cannot encode
24. Decode 01010100 into its decimal value:
a. 2.5
b. 3
c. 5
d. -2
25. What is the difference between the largest and second largest numbers in this representation?
a. (1/24) * 23 = 0.5
b. (1/23) * 24 = 2
c. 23= 8
d. 24= 16
27.
sw $8, 4($16)
addi $16, $16, 4
lw $9, 0($16)
beq $8, $9, -12
Consider the following code. Which of the following statements is true?
a. Only the first and third instructions will access the RAM.
b. All of the above instructions are I type instructions.
c. The above loop will NOT terminate
d. All true
000 (reserved)
111 (reserved)
Explanation / Answer
23. Which of the following is the encoding of the decimal value 3.5 into the above FLP format?
d. Cannot encode
24. Decode 01010100 into its decimal value:
All the answers given as a choice for the questions are not correct.
25. What is the difference between the largest and second largest numbers in this representation?
23= 8
27. Consider the following code. Which of the following statements is true?
d. All true
Since all the questions are direct type, there is no need for any explanations.