151k views
2 votes
How many bits are required to store the text of the number "150" in ASCII?'

2 Answers

7 votes
Im pretty sure using ASCII you need 24 bits minimum. 
User Ross R
by
8.0k points
5 votes

The answer is 24 bits

ASCII has encoding for numbers and every character of the alphabet. For instance, if you take 150 as an integer, you will need to store it as 8 bits. If it is taken as 3 characters, then it will require 24 total bits (8 * 3), that is 8 bits per character. It is good to note that the 8-bit byte is the most common storage element and enjoys 256 characters from the original 7-bit which has become a bit synonymous.

User Liamness
by
8.7k points