Example 3.4.1  Counting


PRACTICE EXERCISES

  1. If a computer system uses eight bits (a bit can be 0 or a 1) to encode a character, how many different characters can be encoded with this system?

  2. Suppose that, in order to declare a variable name in a computer language, the name must have five characters.  The first character must be a letter, and the remaining characters can be letters or digits.  How many different variable names are possible?