Inha university tashkent
(iv) Two’s Complement form - B2T
Download 365.09 Kb. Pdf ko'rish
|
SOC2040 SP LAB ASSIGNMENT2 QUESTIONS SPRING 2023
(iv) Two’s Complement form - B2T
(v) Octal form - B2OCT (vi) Hexadecimal form - B2HEX a) 11011001 b) 11010011 c) 0111011010 d) 1011110100 e) 111111111111 f) 010111010110 g) 111001011011 h) 010011001110 i) 1011110111010111 j) 0101100101011110 k) 1110010101010101 l) 01111010111101101101 m) 11111101111101111110 n) 111111111111111111111111 o) 101101111011101111011010 p) 01000110001110111000110000111111 q) 11111110101011111111011101111010 r) 11110101101001111101011011001011 Sunday, March 05, 2023 SP LAB ASSIGNMENT 2 @ DR A R NASEER P a g e | 6 Q2) Convert the following Decimal numbers to (i) Binary form, (ii) Octal form and (iii) Hexadecimal form a) 89 b) 188 c) 247 d) 495 e) 2258 f)5378 g) 6989 h) 8596 i) 16789 j) 26498 k) 36876 l) 65567 Q3) Convert the following real numbers in decimal form to Binary form (provide atleast 16 bits after the binary point) a) N1= 458.5737 b) N2= -976.96468 c) N3= 3742.676 d) N4= -67569.9921875 e) N5= 767.8563 f) N6= -595.73587 g) N7= 5678.876 h) N8=89567.012345 i) N9= -57898.9941875 j) N10= 567374.67895 k) N11=-6745412.54321 l) N12= -7654321.9999999 Q4) Convert the following real numbers in binary form to Decimal form. a) 1101110111.11010101 b) 111011010.101010111 c) 101011110101.1011101101 d) 1101011101011011.001011011 e) 111010101010.01011101011 f) 110110110110110.1101101101101101 Q5) Convert the following Hexadecimal numbers to (i) Binary form, (ii) Decimal form and (iii) Octal form a) 0xFEAC b) 0x98FC c) 0xBEDD d) 0x6789DEED e) 0xA5B6C7D8 f) 0xC9B8A7 g) 0x9876ABCD h) 0xF1E2D3C4 i) 0xCAFFE768 j) 0xBAD6CAB5 k) 0xFADEDADDEED l) 0xCAB89FEEDBAC67AD Q6) Convert the following Octal numbers to (i) Binary form, (ii) Decimal form and (iii) hexadecimal form a) 6745 b) 735421 c) 57615423 d) 33445566771 e) 6073714 f) 436745412 g) 74645321 h) 7776665554 i) 11002233445566 j) 65764253451 k) 6543210123456 l) 7766554433220011 Sunday, March 05, 2023 SP LAB ASSIGNMENT 2 @ DR A R NASEER P a g e | 7 Q7) Convert the following decimal numbers into the IEEE 754 format for single precision floating point numbers and express each in packed hex form : a) N1= 458.5737 b) N2= -976.96468 c) N3= 3742.676 d) N4= -67569.9921875 e) N5= 767.8563 f) N6= -595.73587 g) N7= 5678.876 h) N8=89567.012345 i) N9= -57898.9941875 j) N10= 567374.67895 k) N11=-6745412.54321 l) N12= -7654321.9999999 Q8) Convert the following binary numbers into the IEEE 754 format for single precision floating point numbers and express each in packed hex form : a) N1=1101110111.11010101 b) N2= -111011010.101010111 c) N3= 101011110101.1011101101 d) N4= -1101011101011011.001011011 e) N5= 111010101010.01011101011 f) N6= -110110110110110.1101101101101101 Q9) Given the following real numbers a) N1= 458.5737 b) N2= -976.96468 c) N3= 3742.676 d) N4= -67569.9921875 e) N5= 767.8563 f) N6= -595.73587 g) N7= 5678.876 h) N8=89567.012345 i) N9= -57898.9941875 j) N10= 567374.67895 k) N11= -6745412.54321 l) N12= -7654321.9999999 Express them in IEEE 754 single precision floating point forms and Perform the following operations and express the results in packed hex form : (i) N1 + N2 (ii) N1 + N12 (iii) N2 + N4 (iv) N3 + N11 (v) N5 + N6 (vi) N6 + N10 (vii) N7 + N8 (viii) N8 + N9 (ix) N9 + N11 (x) N8 + N4 (xi) N6 + N11 (xii) N7 + N12 Q10) Given the following real numbers a) N1= 458.5737 b) N2= -976.96468 c) N3= 3742.676 d) N4= -67569.9921875 e) N5= 767.8563 f) N6= -595.73587 g) N7= 5678.876 h) N8=89567.012345 i) N9= -57898.9941875 j) N10= 567374.67895 k) N11=-6745412.54321 l) N12= -7654321.9999999 Express them in IEEE 754 single precision floating point forms and Perform the following operations and express the results in packed hex form : (i) N1 - N2 (ii) N12 – N1 (iii) N2 - N4 (iv) N3 - N11 (iv) N6 - N5 (vi) N7 – N10 (vii) N7 - N8 (viii) N8 - N9 (ix) N11 - N9 (x) N8 - N4 (xi) N6 - N11 (xii) N7 – N12 Sunday, March 05, 2023 SP LAB ASSIGNMENT 2 @ DR A R NASEER P a g e | 8 Q11) Rewrite the following expressions involving x & y variables by replacing the multiplication (*) and division (/) operations with the simple operations left shift (<<) , right shift (>>), addition(+) and subtraction(-) operations : (For example : x * 12 = x << 3 + x << 2 ) a) x * 29 b) x * 175 c) x * 238 d) x * 487 e) x * 5367 f) x * 9419 g) x * 18924 h) x * 25589 i) x * 39998 k) x * 65575 l) y * 98 m) y * 100 n) y * 150 o) y * 200 p) y * 250 q) y * 300 r) y * 400 Download 365.09 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling