PCEP-30-02 · Question #257
The 0o prefix means that the number after it is denoted as:
The correct answer is D. octal. Option D is correct because 0o is the standard prefix in programming languages like Python to denote octal (base-8) literals - numbers using only digits 0–7. The "o" literally stands for "octal," making this prefix self-documenting. The distractors are wrong because each has…
Question
Options
- Adecimal
- Bbinary
- Chexadecimal
- Doctal
How the community answered
(20 responses)- A5% (1)
- B5% (1)
- C20% (4)
- D70% (14)
Explanation
Option D is correct because 0o is the standard prefix in programming languages like Python to denote octal (base-8) literals - numbers using only digits 0–7. The "o" literally stands for "octal," making this prefix self-documenting.
The distractors are wrong because each has its own distinct prefix: decimal (base-10) needs no prefix at all since it's the default; binary (base-2) uses 0b; and hexadecimal (base-16) uses 0x. Each prefix is a different letter hint toward the base it represents.
Memory tip: Think of the three non-decimal prefixes as a set - 0b (Binary), 0o (Octal), 0x (heXadecimal). The letter after the zero always gives away the base.
Community Discussion
No community discussion yet for this question.