0% found this document useful (0 votes)
12 views2 pages

Quiz 1 Solution

Brac University CSE330 Quiz 1 Questions

Uploaded by

Debjoty Mitra
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
12 views2 pages

Quiz 1 Solution

Brac University CSE330 Quiz 1 Questions

Uploaded by

Debjoty Mitra
Copyright
© © All Rights Reserved
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/ 2
CSE330 Fall 2022 Total time: 30 min Quiz 1 Set-A ‘Name: 10: For part (a), (b), (c) and (d), assume that the system has the following parameters: B = 2, m=3, @q,=—1and nm = 2. (a) (4 marks) Consider x€6/B, and low convert these numbers into floating point fi(x) and fl(y). {b) (6 marks) Compute x*y, then evaluate fil) *fily) and state whether any rounding error occurs or not. (©). (2 mark) How many non-negative numbers are perfectly representable by this system in Lecture Notes Convention 1? (¢) (2 marks) Find the minimum positive number represented by the system in Convention 1. For part (e), assume that the system follows the denormalized convention and has the following parameters: 8 = 2, 1 bit for sign, 3 bit for exponent, and 6 bit for the mantissa. (€) (2 +4 marks) Find the value for enis 2d €nye Then assume Enis reserved for zero and mais reserved for infinity, now calculate the highest possible and lowest possible non-negative number that can be represented by the system. & 241) = Corned, x2° = qed Ay) G (ou), x2 =F © MPN xf1y) - 443 4E - 2B O'l0l Z 0'10\0) 2 O'llO Lssince m=S 5 Hue ON digit sis oO. ee Oe | Jap) —>y | = dp @ © $= Cordds +) 16" 4 m 1,2, e en (o- pau xe otal = 16 ® +#(o100,.x29 © 8 bit fon e.So, 2 sonn a } @-> w > woral for <0 igo possibe non-negative. = + (Or4 111 IM)2%7 boroeat possible nen-nsgabive 24 (0-1 sovoes) xO? 4 coomal De . ~ rounding enon octuns . Scanned with CamScanner CSE330 Fall 2022 Total time: 30 m Quiz Set-B For part (a), (b), (c) and (d), assume that the system has the following parameters: B = 2, m=3, @no=~1 and Cran = 2. {a) (4 marks) Consider x = 4/8, and y = 5/8. Now convert ‘these numbers into floating points fl(x) and fily). (b) (6 marks) Compute x*y, then evaluate fl(x)*flly) and state whether any rounding error occurs or not. {c)_ (2 mark) How many non-negative numbers are perfectly representable by this system in the Denormalized form? (d) (2 marks) Find the minimum positive number represented by the system in the Denormalized form. For part (e), assume that the system follows the denormalized convention and has the following parameters: B = 2, 1 bit for sign, 4 bit for exponent, and 5 bit for the mantissa. {e) (2+4 marks) Find the value for en, and €nay- Then assume Cn is reserved for zero aNd Cay IS reserved for infinity, now calculate the highest possible and lowest possible non-negative number that can be represented by the system. @ a SH) - (orto). x2 ; ye BSN) ~ (oro n2® Toa) = $l) rf) Ae fe > e+ tr G4 =(o 20101),%2 Orldt COr1O1D ZorlpID = (1010... xe Ae). Gates Jol oA Dred ae a a 1 rowing eteom OCS. 4 © #e*C1dden Dinpe ae 2 (onnary) xp“) (2) +(01000), xe! ©) 4 bib ston empormk, So, g! > DOAN “mint 0 } thags Ibe highs possibe non nepative = tort yuiyoxe bowel poscibl nee = + (o1 22004), xe = > 0 pend don geno, Jota = B2- > ars IS ruspred -~ Scanned with CamScanner

You might also like