Computer Science > EXAM > TM112 - Introduction To Computing 2- TMA01 (Marked)/TM112 TMA01/TMA01 TM112 (All)
TM112 - Introduction To Computing 2- TMA01 (Marked) TM112 TMA01 TMA01 TM112 Question 1 (22 marks) a. i. The float 0.0000000031 (3.1 x 10-9 ) cannot be represented in binary scientific notation a... s the smallest exponent that can be stored is -7 (1111). This is known as Underflow. ii. If the system tried to represent the number it will lose the 3 and 1 and will store as 0.0 x 10-9 . The scientific notation is - 1.101 x 2-29 iii. -5 iv. 1111 (6 marks) b. i. 0.40625 x 2 = 0.8125 0 0.8125 x 2 = 1.625 1 0.625 x 2 = 1.25 1 0.25 x 2 = 0.5 0 0.5 x 2 = 1.0 1 Therefore 0.011012 ii. 0.01102 and 0.01112 iii. 0.011012 + 0.011012 = 0.110102 0.01102 + 0.01102 = 0.11002 and 0.01112 + 0.01112 = 0.11102 iv. 0.110102 = 0.812510 0.11002 = 0.7510 - minimum 0.11102 = 0.87510 - maximum v. 0.8125 This exceeds the actual value by 7.14% (10 marks) c. i. Complete the missing values for the rows of the following truth table. A B C (A OR B) NOT C (B OR C) (A OR B) AND NOT C A AND (B OR C) 1 0 0 1 1 0 1 0 [Show More]
Last updated: 1 year ago
Preview 1 out of 9 pages
Connected school, study & course
About the document
Uploaded On
Sep 04, 2021
Number of pages
9
Written in
This document has been written for:
Uploaded
Sep 04, 2021
Downloads
0
Views
82
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·