Data Representation in Computer Systems - Bits, Data Types, and Operations
Overview of Data Representation
Data representation in computer systems defines how information—including numbers, characters, images, and audio—is encoded, stored, and processed using digital electronic circuitry.
Core topics covered in this module include:
Bits, data types, and computer operations.
Signed integer representations, specifically Two's complement.
Base conversions across standard computing bases (binary, decimal, octal, and hexadecimal).

Bits, Bytes, and Data Storage Units
Bits (Binary Digits):
A bit is the fundamental, smallest unit of digital information in computing systems.
A single bit can hold only one of two possible binary states:
: Off, false, low, or no signal present.
: On, true, high, or active signal present.
Hardware Physical Representations:
Electrical Voltage: Low voltage vs. high voltage.
Magnetic State: North polarity vs. south polarity on magnetic storage media.
Optical Light: Light OFF vs. light ON in fiber-optic communications.
Conceptual Analogies:
Light Bulb: Light OFF represents ; Light ON represents .
Coin Flip: Heads represents ; Tails represents .
Bytes:
A byte is a standardized sequence of bits ().
An 8-bit byte can represent distinct values.
Unsigned Interpretation (Non-negative numbers only):
Numeric Range:
Minimum Value:
Maximum Value:
Signed Interpretation (Using Two's Complement):
Numeric Range:
Minimum Value:
Maximum Value:
Conversion Examples for 8-Bit Storage:
Decimal in 8-bit unsigned binary: Repeated division by yields (which also corresponds to the ASCII code for the letter
'A').Decimal in 8-bit unsigned binary: Repeated division by yields
Decimal in 8-bit signed binary (Two's Complement):
Write positive value in binary:
Invert all bits (One's Complement):
Add to the result: (represents )
Larger Storage Units:
Digital storage scales exponentially in powers of ():
Real-World Data Size Benchmarks:
Plain Text Character (e.g.,
'A'): in ASCII.Short Word (e.g., `