AP Computer Science Unit 1 – Test Review Practice Questions

Access More Questions
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 ?
Correct Answer:
231 − 1
Explanation:
Correct answer: 231 − 1

Access more questions from this quiz

Continue to AP Computer Science Unit 1 – Test Review Practice Questions for more practice questions and the full quiz experience.

Access More Questions