COMPUTER FUNDAMENTALS

DATA REPRESENTATION AND NUMBER SYSTEMS

ASCII AND UNICODE CHARACTER ENCODING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the maximum number of values that can be represented in 7 bits?
A
127
B
256
C
65, 536
D
128
Explanation: 

Detailed explanation-1: -The biggest number that can be held in 7-bits is 1111111 in binary (127 in decimal). Therefore 128 different characters can be represented in the ASCII character set (Using codes 0 to 127). More than enough to cover all of the characters on a standard English-Language keyboard.

Detailed explanation-2: -With 7-bits of 2’s complement, it could range from-64 to 63. (traditionally, 7 bits can only go up to 2^n-1 which is 128 but MSB is reserved for sign, so we could have 6 bits to represent the data. We will be getting 64 positive and 63 negative values and answer should be-64, 63.)

Detailed explanation-3: -With 7 bits, you can represent 27 = 128 binary integers. With two digits, you can represent 102 = 100 decimal integers.

There is 1 question to complete.