Two's complement, IEEE 754 floats, rounding error, endianness, ASCII, Unicode, UTF-8 and UTF-16.
42 cards · basic cards · AI-written, checked twice. Edit anything.
- In two's complement, what does the most significant bit indicate?
Show answer
The sign: 0 for positive, 1 for negative
- To negate a number in two's complement, what two operations must you perform?
Show answer
Invert all bits, then add 1
- What is the range of values representable in 8-bit two's complement?
Show answer
-128 to 127
- Why is two's complement used instead of sign-magnitude representation?
Show answer
It has only one zero representation and simplifies arithmetic operations
- What is the two's complement representation of -1 in 8-bit binary?
Show answer
11111111
- What are the three fields in IEEE 754 single precision format?
Show answer
Sign, exponent, and significand (mantissa)
- In IEEE 754 single precision, how many bits are allocated to the exponent field?
Show answer
8 bits
- In IEEE 754 single precision, how many bits are allocated to the significand?
Show answer
23 bits, plus an implicit leading 1 for normalized numbers
- What is the exponent bias in IEEE 754 single precision?
Show answer
127
- What does the significand field in IEEE 754 represent?
Show answer
The precision and significant digits of the floating point number
- What does the exponent field in IEEE 754 represent?
Show answer
The power of 2 by which the significand is scaled
- In IEEE 754, how is positive infinity represented?
Show answer
Exponent all 1s, significand all 0s, sign bit 0
- In IEEE 754, how is NaN (Not a Number) represented?
Show answer
Exponent all 1s, significand non-zero
- What is a denormalized number in IEEE 754?
Show answer
A number with exponent all 0s, used to represent very small values closer to zero
- In IEEE 754 double precision, how many total bits are used?
Show answer
64 bits (1 sign, 11 exponent, 52 significand)