We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 26
TU Ra
leee 754 Floating Point Number Representation Questions
ing Point Number Representation MC\ jective Questions
India’s #1 Learning Platform
Start Complete Exam Preparation
Ree eee
ca Dail (Pa i) Da
oo resents Exon
Question 1:
View this Question Online >
A floating-point (FP) number is said to be normalized, if the most significant bit of the
mantissa is
Answer (Detailed Solution Below)
Option 1:1erent] y
India's Super Teachers for all
bs |
govt. exams Under One Roof
ees | y
leee 754 Floating Point Number Representation Question 1 Detailed Solution
=
A floating-point (FP) number is said to be normalized, if the most significant bit of the mantissa is 1.
If the exponentis all zeros, the floating point number is denormalized and the most significant bit of
the mantissa is known to be zero
The floating number representation has four parts:1. The first part represents a single fixed point
number is called the mantissa
2.The second part designates the position of the decimal point and is called the exponent.
The mantissa always a positive number holds the significant digits of the floating point number.
The exponent indicates the positive or negative power of the radix that the mantisse and sign should
be multiplied by.
ge
TCR aPC TL he Lllia) Rite Re cca
Start Complete Exam Preparation
rea rr Seats
peor)
for reanrersd Question Bank
D> Download App
Question 2:
Consider three floating-paint numbers A, B and C stored in registers Ry, Rs and Ro, respectively as per
IEEE-754 single-precision floating point format. The 32-bit content stored in these registers (in
hexadecimal form) are as follows.
R Re Ro |
| 0xc1400000 | 0x42100000 _ 0x41400000‘Which one of the following is FALSE?
1, A+C=0
2. C=A+B
3. B=3C
46-090 co™
Answer (Deiailed Solutio
Option 2: C=
xe ing Point Number Representation Question 2 Detailed Solution
‘he correct answer is option 2.
Concept:
IEEE single-precision floating-point:
IEEE single-precision floating-point computer numbering format is a binary computing format that
takes up 4 bytes (32 bits) of memory. Binary32 is the official name for the 32-bit base 2 formats in
IEEE 754-2008. IEEE 754-1985 referted to it as single.
IEEE single-precision format:
1 bit Bbils 23 bits,
sign | eed | Mantissa
Ss BE. M
Explanation:
The given data,
Decimal value =(-1]S x 1.M x 28a8e Exponent -Bias
Bias value in IEEE single-precision format is 127
Ra = 1100 0001 0100 0000 0000 0000 0000 0000
Ry sign= 1
R, Base Exponent =100 0001 0 = 130
Ry Mantisa = 100 0000 0000 0000 0000 O00 = 1.100 0000 aO00.Decimal value = (-1)' x1.1 x2190127 =-1,1x29=-1100 = (-12)10
An12
Rs = 0100 00100001 0000 0000 0000 0000 0000,
R, sign= 0
R, Base Exponent =100 0010 0= 132
R, Mantisa = 001 0000 0000 0000 0000 0000 = 1.001 000000.....
Decimal value = (-1)° x1.,001 x2"2127 =41.001x25= + 100100 = (+36):0
B=+36
Re = 0100 0001 0100 0000 0000 0000 0000 0000,
R, sign= 0 \e)
R, Base Exponent =100 0001 0= 130 G
R, Mantisa =100 0000 0000 0000 0000 0000= 1.100 9000 ko
Decimal value = (-1)® x1.1 x22 =+1.1x25= + 1100
C=+12
Option 1:A+#C=0
True, A+C= -12+12=0
Hence itis true.
Option 2:C = A+B
False, A+B=-12+36=+24
itnot equal to C. Hence itis false.
Option 3: B = 3C
True, B=3C
=3x412
it equal to B. Hence it is true.
Option 4: (B- C) >0
True, (B-C) >0
=(36-12)=2420
Hence itis true.
Hence the correct answer is C = A +B.nes Tee Resa
AS Ela ered Cd Lola)
live eed maa
5 (eres encug & Quizz
Re aes
Download App
Question 3:
View this Question Online >
Let R1 and R2 be two 4-bit registers that store numbers in 2's complement form. For the
operation R1 + R2, which one of the following values of R1 and R2 gives an arithmetic
overflow?
1, R1= 1011 and R2= 1110
2. R1= 1100 and R2 = 1010
3. R1=0011 and R2=0100
4. R1= 1001 andR2= 1111
Answer (Detailed Solution Below)
a” 2:R1 = 1100 and R2 = 1010
leee 754 Floating Point Number Representation Question 3 Detailed Solution
The correct answer is option 2.
Concept:
Stored numbers in registers R1 and R2 are in 2's complement form. Register size is 4 bits. The range
of numbers in 2's complement form is -8 to +7. If R1 + R2, the result is out of the above range, then itis
overflow.
The given data,
Given two four-bit registers R1 and R2.
Option 1: R1 = 1011 and R2 = 1110False,
Rt = 1011=-(0101)=-5
+R2 = 1110=-(0010)=-2
1001= =-
Here No overflow occurred, because sign bit is same for (R1 + R2)
Option 2: R1 = 1100 and R2 = 1010
True,
RI = 1100=-(0100)=-4
+R2 = 1010=-(0110)=-6
0110= =-10 Oo
Here Overflow occurred because the sign bit is different for (R1 + NO
Option 3: R1 = 0011 and R2 = 0100 &
~ Xe
RI = 0011=4(0011)- +3
+R2 = 0100=+(0100)= +4
0111 = 47
Here No overflow occurred, because the sign bit is the same for (R1 + R2).
Option 4: R1 = 1001 and R2 = 1111
False,
RI = 1001=-(0111) =-7
+R2 = 1111=-0001)=-1
1000= =8
Here No overflow accurred, because the sign bit is the same for (R1 +R2).
Hence the correct answer is R1 = 1100 and R2 = 1010.nes Tee Resa
AS Ela ered Cd Lola)
Re aes
live eed maa
5 (eres encug & Quizz
Download App
Question 4:
View this Question Online >
If we decide to stay away from IEEE 754 format by making our Exponent field 10 bits wide
and our Mantissa field 21 bits wide, then which of the following statement is TRUE?
1. None of the above
~" less precision as there will be fewer Mantissa bits
3. It will provide more precision as there will be fewer Mantissa bits
4, twill not change the precision
Answer (Detailed Solution Below)
Option 2 : It will provide less precision as there will be fewer Mantissa bits
leee 754 Floating Point Number Representation Question 4 Detailed Solution
The correct answer is option 2.
Concept:
The Institute of Electrical and Electronics Engineers created the IEEE Standard for Floating-Point
Arithmetic (IEEE 754) in 1985 as a technical standard for floating-point calculation (IEEE). The
standard addressed several issues encountered in various floating-point implementations.
IEEE 754 has 3 basic components are Sign, exponent, and Mantissa.
Given that,
Exponent field =10 bits
Mantissa field = 21 bitsSign= 1 bit (represents the positive lier or negative number)
Bias=Excess=2"" where n Is the number of bits in the Exponent.
To get Number = (-1)$ x (1.M) x BEBes
Explanation:
Fewer mantissa bits mean less precision. The smallest change that can be represented in floating-
point representation is called precision. In single precision, the mantissa is having 23 bits, and double-
precision the mantissa is having 52 bits are required. Hence the less precision as there will be fewer
Mantissa bits.
Hence the correct answer is |t will provide less precision as there will be fewer Mantissa bits.
e
Eee ane out Baril) LCC RR end
Start Complete Exam Preparation
ca} PD RGT p= Daca
Diels researc Exot ci
Download App
Question 5:
View this Question Online >
What is the range of the exponent E in IEEE 754 Double Precision (Binary64) format?
1. 1022¢ Es 1022
2, 1023 < Es 1023
3. ie
4. -1022 < E< 1023
Answer (Detailed Solution Below)
Option 4:-1022< E<1023
leee 754 Floating Point Number Representation Question 5 Detailed SolutionOption 4) -1022 < Es 1023 is the correct answer.
Explanation:-
According to the IEEE Std 754-2008 standard, the exponent field width of the binary 64 double-
precision floating-point formats is 11 bits, which is compensated by an exponent bias of 1023. The
standard also specifies that the maximum exponent Is 1023, and the minimum is -1022.
» Important Points
+ IN IEEE 754 tonics the exponent is biased in the engineering sense of the word -
the value stored is offset from the actual value by the exponent bias, also called a biased
exponent.
+ Double precision may be chosen when the range or precision of single-precision would be
insufficient.
+ Double-precision floating-point format is a computer number format usually occupying 64 bits in
computer memory.
+ It represents a wide dynamic range of numeric values by using a floating radix point.
Top leee 754 Floating Point Number Representation MCQ Objective Questions
&
eRe ane tuho elon}
Start Complete Exam Preparation
CBee a coe sn
ean pee é hal gi
D> Download App
Question 6 View this Question Online >
Given the following binary number in 32-bit (single precision) IEEE-754 format:
00111110011011010000000000000000
The decimal value closest to this floating-point number is
1. 1.45x 107
2. 1.45107
3. 2.27107
A...Answer (Detailed Solution Below)
Option 3: 2.27 x 107
leee 754 Floating Point Number Representation Question 6 Detailed Solution
Concept:
32-bit floating-point representation of a binary number in IEEE- 754 is
‘Sian (1 bit) Exponent (8 bit)Mantissa bit (23 bits)
Calculation:
Given binary number is Vl
00111110011011010000000000000000 O
Here, sign bit is 0. So, number is positive. x
j0(0111110011011010000000000000000 xe?
Exponent bits = E = 01111100 = imal)
Mantissa bits M = 11011010000000000000000
In IEEE-754 format, 32-bit (single precision)
(-1)8 x 1.M x 2&7 127
= (1) « 1.1101101 x 2124 = 127
=1.1101101 x2
=(1427422424425427) x23
= 0.231 = 2.31 x 107 = 2.27 x107eRe eer Peete)
AS Ea Orel le ed Ll)
PRO aerated mara
Ce) Mm 5 (eres euru Exotic
Question 7 View this Question Online >
In IEEE floating point representation, the hexadecimal number 0xC0000000 corresponds to
1-3
XW.
3. -4.0
4. -2.0
Answer (Detailed Solution Below)
Option 4: -2.0
leee 754 Floating Point Number Representation Question 7 Detailed Solution
Concept:
32-bit floating-point representation of a binary number in IEEE- 754 is,
{Sign (1 bit)Exponent (8 bit)Mantissa bit (23 bits)
Calculation:
Binary number is
0xC0000000 = (11000000000000000000000000000000)
Here, the sign bit is 1. So, the number is negative."!, oo0000¢o0000000000000000000%
Exponent bits = E = 10000000 = 128 (in decimal)
Mantissa bits M = 00000000000000000000000
In IEEE-754 format, 32-bit (single precision)
(-1)8 1M x 26-127
= (A)! 1, 0% 2128-127
=Ax10K2
=2
In IEEE floating-point representation, the hexadecimal number 0xC0000000 corresponds to -2.
Pod
EE are Bo olia) Rea erat
Start Complete Exam Preparation
Doric Question Bank & Quizz
DB Download App
cairo Fed kes
Question 8 View this Question Online >
Consider three floating-point numbers A, B and C stored in registers Ra, Ra and Re, tespectively as per
IEEE-754 single-precision floating point format. The 32-bit content stored in these registers (in
hexadecimal form) are as follows.
Ra= R; Ro=
oxc1400000 | 0x42100000 _ 0x41400000
Which one of the following is FALSE?
1, A+#C=0
2. C=A+B
3. B=3C4. @-0)>0 co
Answer (Detailed Solution AL
Option 2:C=A+ O°
1g Point Number Representation Question 8 Detailed Solution
I
Concept:
IEEE single-precision floating-point:
IEEE single-precision floating-point computer numbering format is a binary computing format that
takes up 4 bytes (32 bits) of memory. Binary32 Is the official name for the 32-bit base 2 formats in
IEEE 754-2008. IEEE 754-1985 referred to it as single
IEEE single-precision format:
1 bit 8bits 23 bits
sion | B84, | wontsa
Ss BE M
Explanation:
The given data,
Decimal value =(-1]S x 1.M x 2848¢ Exponent Bias
Bias value in IEEE single-precision format is 127
Ra = 1100 0001 0100 0000 0000 0000 0000 0000
R, sign=1
R, Base Exponent =100 0001 0 = 130
Ra Mantisa = 100 0000 0000 0000 0000 0000 = 1.100 0000 0000...
Decimal value = (-1)" x1.1 x2120127 =-1.1x22=-1100 = (12);9
A=12
R; = 0100 0010 0001 0000 0000 0000 0000 0000
R, sign= 0
R, Base Exponent =100 0010 0= 132
R, Mantisa = 001 0000 0000 0000 0000 0000 = 1.001 000000.....Decimal value = (-1)° x1.001 x2"177 =+1.001x25= + 100100 = (+36):9
B=436
R, = 0100 0001 0100 0000 0000 0000 0000 0000
Rx sign= 0
R, Base Exponent =100 0001 0= 130
R, Mantisa =100 0000 0000 0000 0000 0000= 1.100 0000.
Decimal value = (-1)? x1.1 x27 =#1.1x2%= + 1100
C=412
Option 1:A+C=0
True, A+C= -124+12=0
Hence itis true.
Option 2: = A+B
False, A+B=-12+36=+24
it not equal to C. Hence itis false.
Option 3: B = 3¢
True, B=3C
=3x+12 =36 =B
it equal to B. Hence it is true.
Option 4: (B-C) > 0
True, (B-C) >0
=(36-12)=240
Hence itis true.
Hence the correct answer is C = A +B.
&
eRe ane out eerie)
Start Complete Exam Preparation
roe er Sa)
le Bearers Be
Download App
Roe oeQuestion 9 View this Question Online >
Consider three registers R1, R2 and R3 that store numbers in IEEE-754 single precision floating point
format. Assume that R1 and R2 contain the values (in hexadecimal notation) 0x42200000 and
0xC1200000, respectively.
IFR3 = 2° what is the value stored in R3?
1. 0x40800000
2. 0xC0800000
3. 0x83400000
4. 0xc85800000
Answer (Detailed Solution Bel
Option 2: oxcos00000 N\A
leee 75: it Number Representation Question 9 Detailed Solution
“¢
In IFFE- 754 cinala nracician farmat a flnatina-noint number is renracentad in 2? hite
co™India's #1 Learning Platiorm
Start Complete Exam Preparation
POT arated aa
v a (ores eacus Pao
CR RR oe oss tra
D> Download App
Question 10 View this Question Online >
Let R1 and R2 be two 4-bit registers that store numbers in 2's complement form. For the
operation R1 + R2, which one of the following values of R1 and R2 gives an arithmetic
overflow?
1. R1= 1011 and R2= 1110
2. R1=1100 and R2= 1010
3. R1= 0011 and R2= 0100
4. R1= 1001 and R2=1111
Answer (Detailed Solution Below)
Option 2: R1 = 1100 and R2 = 1010nes Teta Poesy
AS Ea Orel le ed Ll)
live eed mara
5 (eres euru Exotic
Download App
Question 11
View this Question Online >
The decimal floating-point number -40.1 represented using IEEE-754 32-bit representation
and written in hexadecimal form is
1. 0xC2206000
2. 0xC2006666
3. 0xC2006000
4. 0xC2206666
Answer (Detailed Solution Below)
Option 4 : OxC2206666eR AR eS Rell) Ce RR ee Cet
Start Complete Exam Prepara
aed Mock Tests
ct
Download App
Question 12 View this Question Online >
The mbit fixed-point representation of an unsigned real number Xuses fbits for the
fraction part. Let / = - f, The range of decimal values for Xin this representation is.
1. 202!
2. 2% to (2/- 24)
3. 0to2!
4. 0to(2/-24
‘Answer (Detailed Solution Below)
Option 4: 0 to (2/-2"h&
India’s #1 Learning Platform
Pela ecel un) (Me Te Lda)
PLO eras
DOr earners Exerc
D> Download App
Question 13 View this Question Online >
Consider the following representation of a number in IEEE 754 single-precision floating point format
with a bias of 127.
S:1£: 10000001 F:11110000000000000000000
Here S, E and F denote the sign, exponent and fraction components of the floating point
representation.The decimal value corresponding to the above representation (rounded to 2 decimal places) is
Answer (Detailed Solution Below) -7.75
rd
Ue aL Ri) Seance
Start Complete Exam Preparation
Pec aa
Cee enna Exo
Download AppQuestion 14
What is the range of the exponent E in IEEE 754 Double Precision (Binary64) format?
1. 1022 s Es 1022
2. 1023 < E< 1023
3. -1023
In the standard IEEE 754 single precision floating point representation, there is 1 bit for
sign, 23 bits for fraction and 6 bits for exponent. What is the precision in terms of the
number of decimal digits?
Answer (Detailed Solution Below)
Option 3:7