...
Question 9964 – Digital-Logic-Design
February 13, 2024
Question 9897 – Digital-Logic-Design
February 13, 2024
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.

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

A
80%
B
20%
C
60%
D
40%
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!