Revision Flashcards
What is a CPU
A CPU is the processor of the computer. It contains millions upon millions of transistors. It executes a lot of the instructions is told to do
What is the fetch-decode and execute cycle
The fetch cycle takes the address required from memory, stores it in the instruction register, and moves the program counter on one so that it points at the next instruction
The control unit checks the instruction in the instruction register. The instruction is decoded to determine the action that needs to be carried out
The actual actions that happen during the execution cycle depend on the instruction itself
What is a register
A register is a fast access temporary data store
Storage types
RAM ROM Flash memory RAM cache memory Data capicity
Flash drive storage
2 GB - 64 GB
External Hard Drive
Has a capacity of 5000 MB - 4 TB
CD/ DVD/blu-ray disk storage
650 MB(CD storage) 9 GB (DVD) and 50GB(blu-ray)
Magnetic tape storage
200 GB - 400 GB
LAN network
It is a network, LAN is shortened for Local Area Network. The computer systems are located relatively close to each other. An example could be that the systems are in the same building
WAN network
WAN is shortened for Wide Area Network. The computer Systems are located a fair distance away from each other. An example of a WAN is separate computer systems in buildings all over the country or in other countries
Algorithms
Algorithms are sets of instructions that can be used to solve a given problem. In order for the algorithm to work the instructions must be clear and in the correct order to produce the solution
For loops
Loops that you can set to how many times you want it to repeat something “for i in range (…)”
While loops
Loops that can go on forever unless it is broken
Variable scope
When a value belongs in a certain variable. An example could be
j=0
while j<10: for i in range(10): print("value",i, "is:", i+1) j = j+1 print() print("However, the last i was:",i)
In this program j belongs to while loops. i belongs to for loop
IDE’s
IDE’s are within a program. It can debug code and also be a text editor. An IDE is python and Java is that it highlights the important parts of the program e.g it highlights the function print