COMPUTER FUNDAMENTALS

COMPUTER ETHICS AND SECURITY

CRYPTOGRAPHY AND ENCRYPTION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Convert 11111111 to decimal
A
255
B
245
C
235
D
225
Explanation: 

Detailed explanation-1: -255 in binary is 11111111. To find decimal to binary equivalent, divide 255 successively by 2 until the quotient becomes 0.

Detailed explanation-2: -Therefore, 255 in binary is 11111111. The step before any power of 2 is a string of 1’s. Just like 9 comes before 10 in decimal, 1 comes before 10 in binary.

Detailed explanation-3: -The decimal equivalent of 11111111 in binary is 255.

Detailed explanation-4: -If they exceed 255, 2 bytes are used instead of 1. Just like using 2 digits when writing 10 instead of 9.

There is 1 question to complete.