Unit 1 Flashcards
What component of a computer does all the computing work?
CPU (Central Porcessing Unit)
What is a program?
A list of unambiguous instructions meant to be followed mechanically by a computer.
What is machine langauge?
The language a computer understands. A program can only be executed if matches the computers language, or is translated first.
What does main memory consist of?
A sequence of locations. Each sequence number is called an address.
What is a location?
A sequence of addresses that is part of the main memory.
What is an address?
A single sequence number in a location. Provides a way of picking out one particular piece of information from among the millions stored in memory
How does the CPU interact with the Main Memory?
It sends the address of information it needs as a signal to the memory; the memory responds by sending back the value contained in the specified location.
What is Fetching?
When the CPU repeatedly reads an instruction from memory.
What is executing?
Carrying out an instruction from memory.
What is the Fetch-and-Execute Cycle?
The process of—fetch an instruction, execute it, fetch another instruction, execute it, and so on forever. This is all the CPU ever does (with 1 exception).
What does a multi-core CPU allow the computer to do?
Allows the CPU to execute several instructions simultaneously.
What does a Memory Cache allow?
Allows the computer to store information separate from the main memory, which are meant to hold data and instructions that the CPU is likely to need soon.
What does a CPU contain (3 answers)?
- ALU (Arithmetic Logic Unit)
- Multiple Registers
- PC
What is a General Purpose Register?
This is part of the CPU and contains a single number. Machine Language often refers to these. They can be added (by the ALU) and have the result be entered into another one of these.
What is the most common Special Purpose Register?
The most common is the PC (Program Counter).
What is the ALU?
A part of the CPU, this is used to add or subtract.
What does the PC do?
The CPU uses this to keep track of where it is in the program it is executing. It simply stores the memory address of the next instruction that the CPU should execute.
What is a transistor?
This is how a computer executes programs. It is all done mechanically. When one turns off, it can trigger others to either turn on or off as well based on how they are wired together or based on the program being executed.