Exams › GATE › Technical
Consider the following representation of a number in IEEE 754 single-precision floating point format with a bias of 127.
S: 1 E: 10000001 F: 11100000000000000000000
Here S, E and F denote the sign, exponent and fraction components of the floating point representation. The above representation (rounded to 2 decimal places) is
- -7.00
- -7.50
- -15.00
- -15.50
Correct answer: -7.50
Solution
E=10000001=129 so exponent=129-127=2, and mantissa 1.111b = 1.875; with sign bit 1 the value is -1.875 x 2^2 = -7.50. The stored -15.50 is wrong.
Related GATE Technical questions
- The decimal number 42 is represented in base 3 as 1120. What is the hexadecimal representation of 42?
- Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery.
- The following relation records the age of 500 employees of a company, where empNo (indicating the employee number) is the key:
empAge(empNo, age)
Consider the following relational algebra expression:
π_empNo, age (σ_age > age1 (ρ_empNo1, age1 (empAge)))
What does it generate?
- Let G be a group of order 6, and H be a subgroup of G such that 1 < |H| < 6. Which one of the following options is correct?
- For a Turing machine M, ⟨M⟩ denotes an encoding of M. Consider the following two languages.
L1 = {⟨M⟩ | M takes more than 2021 steps on all inputs}
L2 = {⟨M⟩ | M takes more than 2021 steps on some input}
- The three-dimensional state of stress at a point is given by σ = [[10, 0, 0],[0, 40, 0],[0, 0, 0]] MPa. The maximum shear stress at the point is
⚔️ Practice GATE Technical free + battle 1v1 →