Skip to content
GATEiit

GATE CSE 2018 Q43: Which decimals are exactly representable in 5.3 unsigned fixed point

Syllabus topic: Number representation and arithmetic (fixed and floating point)

Question

Consider the unsigned 8-bit fixed point binary number representation below,

b7 b6 b5 b4 b3 . b2 b1 b0

where the position of the binary point is between b3 and b2. Assume b7 is the most significant bit. Some of the decimal numbers listed below cannot be represented exactly in the above representation:

(i) 31.500 (ii) 0.875 (iii) 12.100 (iv) 3.001

Which one of the following statements is true?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: C (official GATE 2018 final answer key)

Concept used: With 5 integer bits and 3 fraction bits, a value is exactly representable only if it is a multiple of 1/8 between 0 and 31.875.

Concept notes

Loading notes…

First step: Multiply each number by 8 and check whether the result is an integer no larger than 255.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Number representation and arithmetic (fixed and floating point)

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2018 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key