Trusted answers to developer questions

Educative Answers Team

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The **octal number system** is a base-8 number system. This means that it has a total of 8 symbols, $0, 1, 2, 3, 4, 5, 6, 7$, for representing the values.

In computers, octal numbers are represented in **two ways**:

- Writing $8$ as the suffix of the value (e.g. $305_8$.).
- Writing
`0o`

as the prefix of the value(e.g.`0o`

$305$)

The **binary number system**, on the other hand, is a base-2 number system. This means that it has a total of 2 symbols,$ 0$ and $1$, for representing the values.

In computers, binary numbers are represented in the following **two ways**:

- Writing $2$ as the suffix of the value (e.g. $10110_2$).
- Writing
`0b`

as the prefix of the value (e.g.`0b`

$10110$)

The following steps are needed to convert from **Octal to Binary**:

- Convert each octal digit to its 3-digit binary representation. Each of the digits must be treated as a decimal value.
- Combine these binary representations to form a single binary number.

If we have an Octal value of $305$_{8}, its binary representation would be:

= 305_{8}

= (011 000 101)_{2}

= (011000101)_{2}

Hence, we can form the following table for octal to binary conversion, where each digit is represented with its corresponding binary representation.

RELATED TAGS

octal

binary

conversion

Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring

Related Courses