Question
What is the role of the first bit in a 32-bit signed integer?
*
1 point
It represents the exponent
It indicates the sign of the number
It stores the significand
It is unused
*
1 point
It represents the exponent
It indicates the sign of the number
It stores the significand
It is unused
Answers
GPT-4o mini
The correct answer is: **It indicates the sign of the number.**
In a 32-bit signed integer, the first bit (most significant bit) is used as the sign bit. If the sign bit is 0, the number is positive; if the sign bit is 1, the number is negative.
In a 32-bit signed integer, the first bit (most significant bit) is used as the sign bit. If the sign bit is 0, the number is positive; if the sign bit is 1, the number is negative.