Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
31 Cards in this Set
- Front
- Back
Definition of data type |
A data type is an attribute associated with a piece of data that tells a computer system how to interpret it’s value |
|
Tell me the common data types |
Integer Float Boolean Character String Date |
|
Write a code that’s asks 2 numbers of the users choice and adds them |
Num1=int(input(“please enter number”)) Num2 =int(input(“please enter number”)) Total =(num1 + num2) Print(total) |
|
What does cpu stand for |
Central processing unit |
|
Name the key components in the CPU |
Control units Arithmetic logic unit Buses Registers Clock |
|
What does the control unit do |
It understands the instructions and tell the other components what to do. |
|
What does the ALU do |
It’s the calculator of the CPU and does all the mathematical and logical operations. |
|
What does the clock do |
It contains the internal clock that regulates the number of cycles carried out per second,and synchronise the other components. |
|
What’s a registers |
These are very small very fast memory located inside the CPU. |
|
What are the few key registers |
Memory address register Met data register Current instruction register Program counter Accumulator |
|
What does memory address register do |
Stores memory addresses used when searching for data in RAM |
|
What does the Memory data register do |
Stores the data when fetched from memory |
|
What does current instruction register do |
Holds the binary representation of the instruction to be executed. |
|
What does the program counter do |
The register counts up as each instruction is executed, keeping track of how many instructions are in a program p op |
|
What does the accumulator do |
Stores important data being used in calculations |
|
What is a bus in the CPU |
A set parallel wires that transport data between the components inside the processor and memory |
|
What is RAM |
Random access memory |
|
What is ROM |
Read only memory |
|
What is RAM and ROM |
A type of main memory |
|
What is main memory |
A store of instructions stored inside the CPU to execute |
|
What does the ROM store |
Stores permanent instructions that tell a computer how to “boot up,” |
|
What does the RAM storew |
Stores instructions and data ready for the CPU to execute |
|
What does volatile mean |
The data is lost when the computer is turned off |
|
What does non volatile mean |
does not lose memory when the power is switched off |
|
Is RAM volatile or non volatile |
Volatile |
|
Is ROM non volatile or volatile |
Non volatile |
|
What is cache |
Another type of main memory |
|
What does Cache do where |
Saves frequently used instructions and data. |
|
Where is cache stored |
In the CPU |
|
Why is cache stored in the CPU |
So that when the CPU sends the bus out to the register it collects the information and stores the frequently used information instead of sending it back |
|
Where is the Accumulator located |
ALU |