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
What is non-volatile memory?
When the data is stored even when the power is turned off
What is ROM used for?
Launching a PC’s operating system from the BIOS. Also used in embedded systems as a small store of software
What is the CPU?
The computer’s brain.
What is the purpose of the CPU?
Carry out the fetch-decode-execute
What is the fetch-decode-execute cycle?
CPU fetches next instruction from RAM, works out what to do and then carries out the instruction
What is the purpose of the Control Unit (CU)?
Controls the flow of data inside the CPU (to registers) and outside the CPU. to RAM and input/output devices
Is the hard disk volatile or non-volatile?
Non-volatile
How does sample rate frequency affect accuracy and sound file size?
The greater the sample frequency, the greater the accuracy and file size
What is the equation for calculating sound file size?
Sound file size = sample rate x bit depth x duration
How far do hex conversions go up to?
15
What is the largest hex number?
F
What is the largest binary number?
1111
What sound range can humans hear?
20 - 20,000 Hz
What are analogue signals?
Continuous
What are digital signals?
Discrete
How is sound digitized?
By repeatedly measuring and recording the sound wave
What does ADC stand for?
Analogue to digital conversions (inputs to digital signals)
What does DAC stand for?
Digital to audio converter (digital signals to outputs)
What is a sound sample?
A measurement of the amplitude of a sound wave at a given time
What determines how closely a wave is sampled on the y-axis?
Bit depth
What is the sample rate?
Samples per second (measured in Hz)
What is sample resolution?
The number of bits used to record each measurement
What does 1Hz mean?
1 sample per second
What is metadata?
Data about data
Give 2 examples of metadata:
Any 2 from:
file size, author, name, date last opened, etc.
What does DPI stand for?
Dots Per Inch
How does DPI affect image quality?
Higher DPI, better image quality
What are images made up of?
Pixels
What does each pixel represent?
A colour that is given a unique binary code
What is resolution?
The number of pixels in an image.
How does resolution effect image quality?
Higher resolution, better image quality
How does resolution affect file size?
Higher resolution, higher file size
What is increased colour depth?
Where more bits are stored per pixel - better quality, larger file size
Explain how to calculate the file size of a bitmap:
- Find the number of pixels. Example - 16 x 16 = 256
- Count the colours. Check powers. Example - 7 colours. 2^3 = 8 (2^2 is not enough)
- So we need 3 bits per pixel
- Size of an image = no. of pixels x bit depth -> 768 bits
- If necessary, divide by 8 to convert to bytes
What is any number to the power of 1 equal to?
0
Why do we use binary?
Because the CPU is made up of millions of transistors. These can either be on/off - 0/1.
What is MOD?
The remainder after dividing.