awesome-everything RU
↑ Back to the climb

Base CS from zero

What a computer is: read patterns and circuits

Crux Read bit patterns, ASCII bytes, a boolean expression, and a half-adder trace, then predict the result the way the unit taught you to.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at middle altitude — in the sky
◷ 14 min

The unit was about reading meaning out of bits. Here you do it directly: decode a binary number, decode an ASCII byte, evaluate a boolean expression by precedence, and trace a half-adder. Work each one out before you pick.

Goal

Practise the core loop of the whole unit — take a raw pattern or a small circuit, apply the rule (place value, an encoding, boolean precedence, or a gate’s truth table), and read off the correct result.

Snippet 1 — read the binary number

bit:    1  0  1  1  0  1  0  0
weight: 128 64 32 16 8  4  2  1
Quiz

Reading this 8-bit pattern by place value, what decimal number is it?

Snippet 2 — decode the ASCII bytes

byte 1: 01001000   (decimal 72)
byte 2: 01101001   (decimal 105)
ASCII reference: 'A'=65  'H'=72  'a'=97  'i'=105
Quiz

Decoded as ASCII text, what do these two bytes spell — and what would the SAME two bytes be under a plain numeric reading?

Snippet 3 — evaluate the boolean expression

expr = NOT A OR (B AND C)
inputs: A = 1, B = 1, C = 0
precedence: NOT first, then AND, then OR
Quiz

Evaluating by the stated precedence, what is the result?

Snippet 4 — trace the half-adder

half-adder:
  sum   = A XOR B   (1 only when inputs differ)
  carry = A AND B   (1 only when both are 1)
inputs: A = 1, B = 1
Quiz

What sum and carry does the half-adder produce for A=1, B=1, and why does that match adding the bits?

Recap

Every snippet was the unit’s reading loop in miniature: a binary number is the place-value sum of its 1-bits; an ASCII byte is a number until an encoding names it a letter; a boolean expression resolves by NOT-then-AND-then-OR; and a half-adder’s XOR-sum and AND-carry reproduce single-bit addition exactly. Bits plus a rule give meaning — that is the entire unit in four reads.

Continue the climb ↑What a computer is: build a bits-to-arithmetic toolkit
shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources2
expand
  1. 01
  2. 02

Trademarks belong to their respective owners. Editorial reference only.