GATE 1998
February 13, 2024
Digital-Logic-Design
February 13, 2024
GATE 1998
February 13, 2024
Digital-Logic-Design
February 13, 2024

Digital-Logic-Design

Question 48

Suppose the domain set of an attribute consists of signed four digit numbers. What is the percentage of reduction in storage space of this attribute if  it is stored as an integer rather than in character form?

A
80%
B
20%
C
60%
D
40%
Question 48 Explanation: 
We assume byte addressable memory – nothing smaller than a byte can be used.
We have four digits. So to represent signed 4 digit numbers we need 5 bytes, 4 bytes for four digits and 1 for the sign.
So required memory = 5 bytes.
Now, if we use integer, the largest no. needed to represent is 9999 and this requires 2 bytes of memory for signed representation.
9999 in binary requires 14 bits. So, 2 bits remaining and 1 we can use for sign bit.

So, memory savings,
= 5 – 2/5 × 100
= 60%

Correct Answer: C
Question 48 Explanation: 
We assume byte addressable memory – nothing smaller than a byte can be used.
We have four digits. So to represent signed 4 digit numbers we need 5 bytes, 4 bytes for four digits and 1 for the sign.
So required memory = 5 bytes.
Now, if we use integer, the largest no. needed to represent is 9999 and this requires 2 bytes of memory for signed representation.
9999 in binary requires 14 bits. So, 2 bits remaining and 1 we can use for sign bit.

So, memory savings,
= 5 – 2/5 × 100
= 60%

Leave a Reply

Your email address will not be published. Required fields are marked *