ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions

Higher Computing Science 2019 Question 4

3 marks · Floating-point representation

The decimal number 6.125 converted to binary is 110.001. Convert 110.001 to floating-point representation. There are 16 bits for the mantissa (including the sign bit) and 8 bits for the exponent. Space for working mantissa exponent sign

Marking scheme

• Sign bit: 0 • Remaining 15 bits of mantissa: 110 0010 0000 0000 • Exponent: 0000 0011 1 mark for each bullet (9 x 0s) (6 x 0s)

Previous question: Higher Computing Science 2019 Question 3

Next question: Higher Computing Science 2019 Question 5