Employee of Dell Mr.Rajesh had a been given a code which is in signed binry 5bit code (0.101). He has to locate the digital password which is in decimal. After decoding the password obtained is
Answers
Answered by
0
Answer:by me it come 58125
Answered by
0
0101 (In Binary) = 5 (In Decimal)
Explanation:
- Signed binary numbers are of two types:
- The MSB (Left most bit) is 0.
- The MSB (Left most bit) is 1.
- If the MSB bit is equal to 0, it represents a positive number.
- If the MSB bit is equal to 1, it represents a negative number.
To convert a signed binary number to decimal number, follow the below steps.
- If the MSB bit is 0, follow these steps.
- Convert the binary number into decimal number.
- The result after converting is the password.
- If the MSB bit is 1, follow these steps.
- Flip all the bits present in the binary number.
- Now, add 1 to the above number.
- Convert the above result to decimal number.
- Add negative symbol in front of the number.
Our number is 0101.
- The leftmost bit is a 0, it means that, our number is positive.
- Now, convert it to decimal number.
Therefore, after decoding, the password will be 5.
Similar questions