Assuming all numbers are in complement representation, which of the following numbers is divisible by ?
View worked solution
Answer: A
To determine which number is divisible by the given divisor, we first convert the numbers from their 8-bit 2's complement representation to decimal.
1. Find the Decimal Value of the Divisor
The given divisor is . Since the most significant bit (MSB) is , it represents a negative number.
To find its magnitude, we take its 2's complement:
- 1's complement of is
- Add :
Thus, the divisor is .
2. Convert the Options to Decimal
-
Option A:
Taking 2's complement to find magnitude:
So, the value is .
Since is divisible by (), this option is correct. -
Option B:
Taking 2's complement to find magnitude:
So, the value is (not divisible by ). -
Option C:
Taking 2's complement to find magnitude:
So, the value is (not divisible by ). -
Option D:
Taking 2's complement to find magnitude:
So, the value is (not divisible by ).
Therefore, only the number in Option A is divisible by the divisor.
Free practice · Your answers on this page are not saved.
