Computer Science, asked by TbiaSamishta, 1 year ago

A new language has 15 possible letters, 8 different kinds of punctuation marks and a blank character. Rahul wants to create two data types, first one which could store the letters of the language and a second one which could store any character in the language. The number of bits required to store these two data-types will

Answers

Answered by aqibkincsem
29

In the given question, Rahul want to create two data-types – one for storing the letters and other one to store the characters of the given language.

As we know, 1 bit can store 2 possible states, 2 bit can store 4, 3 bit can store 8, 4 bit can store 16 and 5 bit can store 32 possible states (i.e. a power of two).

So Rahul must need 4 bits to store all the letters in the given language (16>15 and 15>8) and 1 bit to store any character.

Answered by KAIILASH
3

Answer:

answer is : 4 and 5

Explanation:

as there as 15 possible letters ,8 and a blank so it will be 4 and 5

Similar questions