How Computers Work
- 42Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What does a computer fundamentally consist of at its core?
Electrical circuits
Or swipe the card
42 cards
What does a computer fundamentally consist of at its core?
Electrical circuits
What typical voltage levels do modern computer components use?
3.3 or 5 volts between the positive terminal and ground
What are the two types of push switches mentioned?
Push-to-make and push-to-break
What does MOSFET stand for?
Metal Oxide Semiconductor Field Effect Transistor
What are the two types of MOSFETs?
N-channel and P-channel
What does CMOS stand for?
Complementary Metal Oxide Semiconductor
How does a NOT gate (inverter) work in CMOS?
When input is 1, N-channel opens to low voltage (0) and P-channel closes; when input is 0, P-channel opens to high voltage (1). Output is opposite of input.
What is the base material used for doping in semiconductors?
Silicon
What is lithography in processor manufacturing?
A process of building transistors on a silicon die using deposition and etching
What is a logic gate?
An object that takes binary inputs (true/false, 1/0) and returns a binary output based on a logical operation.
What is a NAND gate and why is it important?
A NAND gate outputs 0 only when all inputs are 1, and 1 otherwise. It is universal, meaning any other gate can be made from NAND gates.
How does an XOR gate behave?
Output is 1 when inputs are different; output is 0 when inputs are the same.
What is a bit?
A binary digit (0 or 1) representing one piece of binary information.
What is a byte?
8 bits
How is a number represented in binary (base 2)?
As a sequence of bits where each bit represents a power of 2 (1, 2, 4, 8, ...).
How is binary addition of two 1-bit numbers performed?
The sum bit (rightmost) is the XOR of A and B; the carry bit (leftmost) is the AND of A and B.
What is a bit shift in binary?
Shifting bits left (multiply by 2) or right (divide by 2) and filling with 0s on the end.
How does binary multiplication of A by B work?
Start with 0. For each bit of B (from rightmost), if bit is 1, add A (shifted appropriately) to the total. Shift A left for the next bit.
How can equality of two binary numbers be checked?
Use XNOR gates on each pair of corresponding bits, then AND all XNOR outputs. The output is 1 if and only if all bits match.
What is a latch in digital circuits?
A circuit that can store one bit of data; it holds its output value until the enable input is activated.
What is a register?
A group of latches (typically 8) that stores a byte (or more) of data.
What is the purpose of a clock in a computer?
To synchronize operations and ensure enough time for signals to propagate before reading results.
What is a central processing unit (CPU)?
The chip that contains the arithmetic logic unit (ALU), registers, and cache. It executes instructions.
What is RAM and how does it store data?
Random Access Memory; uses capacitors (charged = 1, discharged = 0) that need periodic refresh. Each byte has a unique address.
What is the difference between 32-bit and 64-bit processors?
The size of memory addresses. 32-bit can address up to ~4 GB; 64-bit can address much more.
What is a hard disk and how does it store data?
A storage device using magnetic domains (up/down for 1/0) on a spinning disk. Data is read/written by a sensor head.
What is the trade-off between cache, RAM, and hard disk?
Cache is small but very fast; RAM is larger but slower; hard disk is largest but slowest.
What is an instruction in a computer?
A binary code that tells the computer which operation to perform (e.g., add, copy). Instructions are stored in memory.
What is the von Neumann architecture?
A design where instructions and data are stored together in the same memory and treated as binary numbers.
How does the computer know where the next instruction is?
Each instruction has a fixed length (e.g., 25 bytes for an add instruction). The next instruction starts immediately after the current one.
What is a jump instruction?
An instruction that tells the computer to go to a specific memory address and execute the instruction there, instead of the next sequential instruction.
What is a conditional jump (branching)?
A jump that occurs only if a certain condition is met (e.g., if two numbers are equal).
What does it mean for a computer to be Turing complete?
It can perform any computation given enough time and memory.
What is a high-level programming language?
A language that abstracts away machine instructions and memory management, making it easier for humans to write programs.
What is a compiler?
A program that translates high-level language code into machine instructions (binary) and manages memory addresses.
What is a function (or method) in programming?
A reusable block of code that performs a specific task, stored once in memory and called from multiple places.
How is a pixel displayed on a modern monitor?
A pixel consists of three subpixels (red, green, blue) whose brightness is controlled by three bytes (0-255 each).
How does a computer determine the location of a pixel on screen?
The screen has a grid with x (horizontal) and y (vertical) coordinates. The memory address of a pixel is calculated from its coordinates.
What is the Bresenham algorithm used for?
Drawing a straight line between two points on a grid by incrementally deciding which pixels to turn on.
How does a computer produce sound?
It sends binary numbers to a sound card that converts them into an oscillating current, which drives a speaker membrane to create sound waves.
How does a keyboard send input to the computer?
When a key is pressed, it makes an electrical contact in a grid, which is detected and converted into a message (scan code) that is placed in memory.
How does a mouse send input?
It tracks movement (left/right, up/down) and button clicks. The changes are added/subtracted to the cursor's x,y coordinates. Button presses are also reported.

Ask anything
We've read this whole study set, so questions about it get the best answers.