In Java, a variable of type int is represented internally as a 32-bit signed integer.
Suppose that one bit stores the sign, and the other 31 bits store the magnitude of
the number in base 2. In this scheme, what is the largest value that can be stored
as type int?
(A) 2
32
(B) 2
32 − 1
(C) 2
31
(D) 2
31 − 1
(E) 2
30