Computer Science: Key Knowledge Flashcards
What is volatile memory?
Memory which will lose all the data when the power is turned off
Is RAM volatile or non-volatile?
Volatile
What is fast access storage?
Storage which is quicker to access by the CPU
What does RAM hold?
Parts of the operating system currently in use when the PC is in use
What are the 5 data types?
Integer, real/float, char, string, Boolean
How large is RAM?
A few GB in size
Are CPU registers and CPU cache volatile or non-volatile?
Volatile
What is an integer?
A while number such a 156, 0 or -54
How much space does an integer type take up?
2 bytes
What is a float or real number?
Number with a fractional part such as 1.5276, -68.4 or 20.0
How much space does a float or real number take up?
4 bytes
What is a char date type?
A single ASCII character such as A, b, 3, ! or space
How much space does a char data type take up?
1 byte
What is a string?
Data containing zero or more characters
How much space does a string take up?
1 byte per checker in the string
What is a Boolean?
Can only take the values true/false
How much space does a Boolean take up?
Theoretically just 1 bit, but in high level languages, more like a byte
What is virtual memory?
Volatile memory created temporarily on the storage drive
When is virtual memory required?
When the computer is running too many processes/RAM is being slow
How does virtual memory affect the computers speed?
It slows the computer down - copying to hard disk takes much longer than reading/writing RAM
What is a syntax error?
The rules for writing python have been broken
What is a logic error?
The code runs but gives an incorrect answer
What is concatenation?
Joining together. The ‘+’ concatenate operator is used to join together strings
Is ROM volatile or non-volatile memory?
Non-volatile