###### Question 9964 – Digital-Logic-Design

February 13, 2024###### Question 9897 – Digital-Logic-Design

February 13, 2024# Question 10006 – Digital-Logic-Design

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?

Correct Answer: C

Question 35 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.

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%

80%

20%

60%

40%

Subscribe

Login

0 Comments