Amazon.com

  www.amazon.com
Work in HR? Unlock Free Profile

Amazon.com Software Development Engineer Interview Question

I interviewed in Herndon, VA and was asked:
"What is the range of numbers that can be stored using a single byte?"
Add Tags [?]
Answer

Part of a Software Development Engineer Interview Review - one of 4,763 Amazon.com Interview Reviews

Answers & Comments

2
of 2
votes

Signed: From ?128 to 127. Unsigned: From 0 to 255.

- Interview Candidate on Nov 14, 2012
0
of 0
votes

I think the range can be anything you want it to be, just have to agree on the storage format. Imagine a situation where you have to store only the even positive numbers, that means the range can be 0..512. If you know that the lowest number can be 100, then the range can be 100..612. Using more elaborate formats you can encode any range in a byte (with low precision, possibly).

- NA on Feb 6, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.