Which base uses digits 0-7 exclusively?

Enhance your programming skills with the RECF Programming Test. Features flashcards and multiple choice questions with hints and explanations. Prepare for success!

Multiple Choice

Which base uses digits 0-7 exclusively?

Explanation:
The main idea is that a numeral base defines how many distinct single-digit symbols it uses, ranging from 0 up to base minus one. If a system uses digits only from 0 to 7, there are eight symbols, so the base is eight, which is called octal. That contrasts with other bases: binary uses just 0 and 1, decimal uses 0 through 9, and hexadecimal uses 0 through 9 plus the letters A-F. For example, an octal number like 345_8 uses only digits 3, 4, and 5, all within 0–7.

The main idea is that a numeral base defines how many distinct single-digit symbols it uses, ranging from 0 up to base minus one. If a system uses digits only from 0 to 7, there are eight symbols, so the base is eight, which is called octal. That contrasts with other bases: binary uses just 0 and 1, decimal uses 0 through 9, and hexadecimal uses 0 through 9 plus the letters A-F. For example, an octal number like 345_8 uses only digits 3, 4, and 5, all within 0–7.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy