The point is: how I can convert a decimal number into binary in the exam that is limit in time?
I have certain rules:
1)
c = a & b;
c must be less or equal than to min( a, b).
For example:
That is the result of the following operation:
15 & 69
a) 56
b) 37
c) 16
d) 5
The correct answer is "d"
2) c = a | b
c must be greater or equal than max( a, b);
For example:
That is the result of the following operation:
15 | 69
a) 56
b) 37
c) 16
d) 79
The correct answer is "d"
But, what I can do with
XOR?
Or with a question like this?:
That is the result of the following operation:
15 | 69
a) 80
b) 96
c) 85
d) 79