Computer Science, asked by dattajori7, 23 hours ago

A data type is stored as an 6 bit signed integer. Which of the following cannot be represented by this data type? A. -12 B. 0 C.32 D.18 E.64​

Answers

Answered by abhipadanad1
0

Answer:

C. 32

E. 64

Explanation:

options c and e

Bit range is -32 to +31

Answered by sourasghotekar123
0

Answer:

From the given options, the correct option is C.32

Explanation:

DEL The allowed range of 2's complement signed integers for n bits is -2(n-1) to (2(n-1))-1.

For your question, you asked for a range of 6 bit signed integers, which I assume you mean in 2′C format. The answer is -32 to +31, including both numbers. As a result, 32 and 64 cannot be represented using 6 bits.

Let's get started with the math. 6 bits means that the total number of bit combinations is 26 = 64. You can now store values up to 63, including 0.

However, because your data type is signed, you can only store -32 to +31 combinations, which is exactly 64.

2^5-1 is 31. As a result, your range is -32 to 31.

#SPJ5

Similar questions