As for distinguishing D from B, if we're talking about 8-bit numbers, which of the following are decimal and which are binary?
1
10
256
101
27
100110
How can you tell? The answer will outline the code.