Courses
Tracks
All courses
/
Data Structures with Python
Bits and sets review
Bits and sets
9 / 9
Bits and sets
Bits and sets review
Question 1 of 4
25%
A high bit
What does
read_bit(1 << 90, 90)
return under the nonnegative integer contract?
1, because Python does not truncate the integer to 32 bits.
0, because every bit above position 31 is discarded.
An overflow error at position 64.
Submit Answer