Logic circuits
What is the hexadecimal number 1A in decimal?
- A110
- B16
- C26
Show answer and explanation
Answer: C. 26
Hex 1A = 1 × 16 + A (=10) × 1 = 26; in hex, A–F represent 10–15. In binary, 1A = 0001 1010—each hex digit simply maps to four bits, which is what makes hex convenient. Programs use a prefix such as 0x1A to distinguish it from decimal. Keeping each digit's weight (a power of 16) in mind prevents misreadings.
- A. 110 comes from mistakenly writing "1" and "10" side by side.
- B. 16 is hexadecimal 10.
- C. Correct. 1 × 16 + 10 = 26.