I recently took a computer science test where one question was as follows:
Each RGB color value can range from _____ to _____ in decimal, _____ to _____ in binary and _____ to _____ in hexadecimal.
I answered,
Each RGB color value can range from 0 to 255 in decimal, 0 to 11111111 in binary and 0 to FF in hexadecimal.
But I was marked wrong in the minimums in binary and hexadecimal because I did not provide leading zeros (00000000 and 00, respectively). Am I wrong to say that each RGB color value ranges in those bases from those numbers? My logic is that the number 0 in any base can have any amount of zeros and still correctly represent the number 0, and if that wasn't the case, the minimum for decimal would be 000. The teacher insisted that if you were to develop a website, for example, you would put 00 in hexadecimal for a color value, not 0.