GCSE Computer Science - OCR J277 Flashcards
FLASHCARDS MADE MYSELF WITH AID OF SOURCE BOOK: COMPUTER SCIENCE GCSE (9-1) FOR OCR J277 STUDENT BOOK BY DAVID WALLER
What does CPU stand for?
Central Processing Unit
What is the purpose of the CPU?
The CPU is responsible for executing the instructions given to it in a program. It is the component of the computer that controls the other devices, executes the instructions and processes the data.
What was the name of the first computer?
ENIAC
Where does data processing take place?
CPU
What is Von Neumann architecture?
The way the CPU is designed and executes the program instructions. It is a ‘stored program’ computer where both the program and the data are stored in the memory.
What year did John von Neumann propose his ‘stored program’ computer design?
1945
What problem did Von Neumann architecture solve in 1945?
Prior to 1945, computers had to be rebuilt for each new program that was needed.
What does ‘execute’ mean in a computer science context?
To run a computer program or process.
What is the bus in Von Neumann architecture?
A bundle of wires carrying data from one component to another or a number of tracks on a printed circuit board (PCB) fulfilling the same function.
What does PCB stand for?
Printed Circuit Board
What does RAM stand for?
Random Access Memory
What is RAM?
Memory that can be used by computer programs to store data and instructions, but all of its data is lost when the computer is switched off.
What is a collection of wires that carry signals or communications between the various components of a computer system called?
A bus
What does the control bus connect?
The control unit (CU) with the other components of the CPU and devices in the computer system.
What does the control unit use the control bus for?
To send instructions to other components of the computer.
What is the data bus used for?
The transfer of data between the CPU and the RAM and the address bus for the CPU to access memory locations in the main memory.
What happens before the fetch-decode-execute cycle starts?
The program instructions are copied from a storage device such as a hard disk drive or DVD to the primary storage or RAM.
What is the fetch-decode-execute cycle?
The way in which the Von Neumann architecture executes the program instructions.
What happens during the fetch part of the fetch-decode-execute cycle?
Instructions and data are moved from the RAM to the CPU.
What happens during the decode part of the fetch-decode-execute cycle?
The control unit (CU) decodes or interprets the instructions and decides what action to perform.
What happens during the execute part of the fetch-decode-execute cycle?
The decoded instructions are now carried out by the control unit (CU). If a calculation needs to performed then it instructs to ALU (Arithmetic Logic Unit).
What does ALU stand for?
Arithmetic Logic Unit
What is the function of the ALU?
To perform arithmetic and logical operations. It carries out activities such as:
1. addition and subtraction
2. multiplication and division
3. logical tests using logic gates (Boolean logic)
4. comparisons, such as whether one number is greater than another
What does CU stand for?
Control Unit
What are control signals?
Electrical signals that are sent out to all of the devices to check their status and give them instructions.
What is a register?
A storage location that is inside the CPU itself and stores the instructions and data that are currently being used in the fetch-decode-execute cycle.
What is the purpose of the CU?
The CU coordinates the actions of the computer and controls the fetch-decode-execute cycle by sending out control signals to the other parts of the CPU such as the ALU and registers. It also sends signals to other components of the computer system such as the input and output devices. The 2 main elements of the CU are the clock and the decoder.
What are the 2 main elements of the CU?
The clock and the decoder.
What is clock speed measured in?
Cycles per second
What is the rate of one Hertz?
One cycle per second
What is the rate of one megahertz (MHz)?
One million cycles per second
What is the rate of one gigahertz (GHz)?
One billion cycles per second
What are the common rates (in GHz) in most home computers?
Rates of between one and three GHZ
Why does the clock in the CU send out pulses?
Pulses are sent out to the other components to coordinate their activities and ensure instructions are carried out and completed.
What controls the timing of the pulses sent out by the CU’s clock?
A vibrating quartz crystal
How many instructions can be carried out with each pulse of the clock?
One
How does the clock speed impact the CPU speed?
The higher the clock speed, the faster the CPU will be able to carry out the program instructions.
What is the function of the decoder in the CU?
The decoder is the part of the CU that decodes the program instructions to work out what they mean and decide what actions should be taken. It then sends control signals to the other components to carry them out.
True or false: Registers can be accessed faster then RAM.
True
What is the function of registers?
Registers are storage locations within the CPU. The function of these registers is to store instructions and data that are currently being used in the fetch-decode-execute cycle.
What are general purpose registers used for?
The quick storage of data items.
Name the 4 main registers which are not general purpose registers as they serve specific functions:
- the accumulator (A or ACC)
- the program counter (PC)
- the memory address register (MAR)
- the memory data register (MDR) or memory buffer register (MBR)
What are storage locations in Von Neumann architecture?
Places in RAM where a single piece of data can be kept until they are needed.
What does the CPU consist of?
- control unit (CU)
- arithmetic and logic unit (ALU)
- registers
How does the CPU control the activities of the CPU?
By sending out control signals.
What is the function of the ALU?
To carry out arithmetic and logic operations.
What are registers?
Registers are the memory stores within the CPU, which can be accessed faster than RAM.
What is overclocking?
The process of increasing the clock speed to a higher level than that recommended by the manufacturer.
What are the risks of overclocking?
Overclocking causes an increase in heat and can result in instability and permanent damage to the processor.
What is a heat sink?
A metal device, glued to the CPU chip with thermally conducting paste, to transfer the heat away from the chip.
What does clock speed control?
The rate at which instructions are processed.
How does clock speed impact the rate of processing?
The faster the clock speed, the faster the rate of processing.
What is the problem with microprocessors with clock speeds of 9 GHz?
They require cooling by liquid nitrogen.
What are the limitations of increasing clock speed to increase processing speed?
- Microprocessors with clock speeds of 9 GHz require cooling by liquid nitrogen.
- The microprocessor generates a large amount of heat and this heat increases with clock speed. Although heat is dissipated by a fan and heat sink to prevent it from malfunctioning (and eventually melting) there are limits to the rate of cooling.
When do bottlenecks occur?
Bottlenecks occur when one component cannot work as fast as other components and so hinders progress.
True or false: It is far quicker to fetch instructions from RAM than from a hard disk drive.
True. However, (while it is quicker to fetch the instructions) the RAM is still far slower than the CPU and then the instructions still need to be transferred through the data bus. This is why cache needed to be created as a solution.
Why is the speed of processing limited by RAM?
RAM supplies the instructions regardless of how much clock speed is increased or how many cores are used. This is why cache needed to be created as a solution.
What is cache?
Memory used to store recently used data and data likely to be frequently used so that they can be accessed more quickly.
What is the difference between data and instruction caches?
Data caches have to be read and written to but instruction caches just have to be read by the CPU.
Where are caches located?
On the processor chip.
Which level of cache is the fastest?
There are 3 levels of cache. Level 1 is both the fastest and the smallest.
Which level of cache is the smallest?
Level 1
Which level of cache is the slowest?
There are 3 levels of cache. Level 3 is the slowest.
Which year did manufacturers introduce multi-core processors?
2006
Why does a multi-core processor have a faster processing speed?
A multi-core processor has more than one CPU.
What is a processor with one core called?
Single-core processor
What is a processor with two cores called?
Dual-core processor
What is a processor with four cores called?
Quad-core processor
What is a processor with 5 cores called?
Penta-core processor
What is a processor with 8 cores called?
Octa-core processor
What is a processor with 10 cores called?
Deca-core processor
What is parallel processing? HINT: OPPOSITE OF MULTI-TASKING
When the processor cores work on different parts of the same program.
What is multitasking? HINT: OPPOSITE OF PARALLEL PROCESSING
When the processor cores work on different programs at the same time.
What are the advantages of multi-core processors over single core processors?
- the cores can work together on the same program; this is called parallel programming
- the cores can work on different programs at the same time; this is called multi-tasking
Why can clock speed not be increased indefinitely?
Because of the extra heat that is generated.
What is a multi-core processor?
A processor with multiple CPUs.
What limits the processing speed of the CPU?
The CPU’s processing speed is limited by the speed that data can be supplied by the slower RAM.
What does cache memory store?
Regularly used items of data so that they can be accessed more quickly.
What happens when RAM is full? (Where will the operating system store data?)
When RAM is full, the operating system will store data on an area of the hard disk drive known as virtual memory.
What is an embedded system?
A computer system built within a larger device to carry out specific tasks. They are generally limited to a certain number of tasks, unlike general purpose computer systems such as laptops and desktops.
Give an example of an embedded system:
- washing machines
- dishwashers
- microwaves
- digital cameras
etc.
True or false: all the components in an embedded system, including the microprocessor, memory and input and output devices are on a single printed circuit board. The memory contains the program and the board is merely a component built into a larger device hence the name ‘embedded’.
True.
Why are the programs in an embedded system often written in an assembly language, rather than a higher level programming language?
So that the hardware components can be more easily controlled.
What is an embedded system?
A computer system built into a larger device that carries out a limited number of functions. All of the components (memory, microprocessor, input/output devices) are stored on a single PCB, with the memory containing the program.
What is a PCB?
A PCB (Printed Circuit Board) is the base that supports the wiring and electronic components that are soldered to it or fit into sockets on the board.
What is hardware?
The physical components making up the computer, and its peripheral devices.
What is primary storage?
Storage that can be accessed directly by the CPU, usually referred to as ‘memory’.
What is secondary storage?
Permanent storage for data that does not need to be frequently accessed.
Why is RAM used by the CPU?
It takes a long time to fetch data and program instructions from the hard drive. Therefore, they are stored in RAM, a temporary store of data, so that the information can be retrieved quickly by the CPU when required for the program it is running.
Why does each byte of date have an address?
So that the CPU knows where to store and retrieve the instructions and data.
Why is RAM said to be ‘Random Access’?
Because each memory location can be accessed in any order if the ‘address’ of that location is specified. This speeds up data retrieval as the CPU can go to any location and does not have to start each time at the first location and go through them in order until it finds the correct one. This is called serial access.
What is serial access? HINT: RANDOM ACCESS MEMORY
When the CPU has to search each memory location by starting at the first location and and going through them in order until it finds the correct one.
What does it mean to say RAM is volatile?
RAM is said to volatile because if there is no electrical power then the RAM will lose all of its data.
What are the different types of RAM?
DRAM and SRAM
What does DRAM stand for?
Dynamic RAM
What does SRAM stand for?
Static RAM
Why is DRAM used as the main memory store, despite being slower than SRAM?
Because it is cheaper.
True or false: DRAM is slower than SRAM.
True. Despite DRAM being slower than SRAM it is still used as the main memory store because it is cheaper.
How large is a byte?
8 bits
What is an address?
A number assigned to the storage location so that it can be accessed.
What does volatile mean?
Data is permanently lost when the power is switched off.
What does BIOS stand for?
Basic Input/Output System
What is the function of the BIOS?
The BIOS system controls the computer when it is first switched on. It tests the system hardware and loads the operating system. It is specially written for each motherboard and performs any other operations that are needed by that particular motherboard.
What does ROM stand for?
Read-Only Memory
What is ROM? HINT: THINK IN TERMS OF HARDWARE
ROM is an integrated circuit on a chip. It is programmed with specific data to perform a particular function then it is manufactured.
List the functions of the BIOS:
- the BIOS controls what happens when the computer is first switched on
- the BIOS checks the hardware devices to ensure there are no errors
- the BIOS loads basic software so that it can communicate with these hardware devices. It then locates and passes control to the operating system.
What does it really mean to say that ROM is ‘Read-Only’?
The data can be read but it cannot be changed; the computer cannot write to the chip, unlike RAM.
ROM is non-volatile. What does non-volatile mean?
ROM is non-volatile as the data is not lost when the power is turned off.
What does RAM act as?
A temporary store of program instructions and data.
What is RAM made up of?
RAM consists of billions of memory locations with unique addresses which can be accessed in any order.
What is ROM used to store?
Basic information and instructions that a computer needs when it is starting up (booting).
What are applications?
Programs that are called up by the systems software and which perform specific tasks.
When could RAM become full?
When the computer is running the operating system and several applications.
Explain the 4 steps of the computer calling in virtual memory and swapping in and out data stored in RAM.
- a process running on the computer may need to store data in the physical memory.
- if there is no free memory, the memory manager will ‘swap out’ some of the data stored in RAM to the swap area on the hard disk drive and ‘swap in’ the requested data into the now free area.
- usually the least recently used stored data is swapped out.
- if data is swapped out and then is needed again, it is swapped back in, from the swap area, at the expense of the data.
True or false: the size of the area on the hard disk drive to be used for virtual memory can be set by the user.
True
What are the three main disadvantages of virtual memory?
- the read/write speed of a hard drive is much slower than RAM, as the technology of a hard drive is not geared towards accessing multiple small pieces of data at a time.
- if the system has to rely too heavily on virtual memory, there will be a significant performance drop.
- often the operating system has to constantly swap information back and forth between RAM and the hard disk drive, which operates all of the time. You can hear the disk drive operating continuously. This is called ‘disk thrashing’ and significantly slows down the execution of programs.
What is virtual memory?
Virtual memory is the use of secondary storage as additional primary memory.
What is disk thrashing?
Often the operating system has to constantly swap information back and forth between RAM and the hard disk drive, which operates all of the time. You can hear the hard disk drive operating continuously. This is called ‘disk thrashing’ and significantly slows down the execution of the programs.
Why will inserting more RAM significantly improve the performance of a computer?
The more RAM a computer has then the less virtual memory will be needed. Virtual memory has a much slower read/write speed as the technology of a hard drive is not geared towards accessing multiple small pieces of data at a time.
What is execution?
When a program or part of a program is run by the computer.
What are secondary storage devices?
Devices that store information but which do not lose the data when they are switched off; usually not on the main circuit (motherboard).
What is optical storage?
Storing data using optical devices such as CDs and DVDs.
What is solid state storage?
Storing data using devices such as flash memory. This is sometimes called ‘electrical’ storage.
What are the three types of secondary storage?
- magnetic storage
- optical storage
- solid state storage
What are the three types of secondary storage?
- magnetic storage
- optical storage
- solid state storage
Why do we use secondary storage devices?
Because RAM is volatile, data must be stored on devices called secondary storage devices so that the data is not lost when the power is turned off.
How does optical storage work?
Optical storage uses light from lasers to read and write data on discs. To write data to a disk, a laser beam encodes data onto a disk via burning pits onto the disk’s surface in a spiral track.
How much data can a CD typically store?
CDs typically store 700MB.
How much data can a DVD typically store?
DVDs typically store 4.7 GB.
What does CD stand for?
Compact Disk
What does DVD stand for?
Digital Versatile Disk
How much data can a Blu-ray disk typically store?
128 GB
Give two advantages of optical storage:
- cheap
- easy to transport from one site to another
Give five disadvantages of optical storage devices:
- less storage space than hard disk drives
- slow access speeds
- stored data degrades over time
- risk of disk scratching
- data cannot be written over unlike with hard disk drives
Give three examples of magnetic storage devices:
- hard disk drives
- magnetic tape
- floppy disk drives
What do hard disk drives consist of and how do they work? HINT: THINK HARDWARE
Hard disk drives consist of stacks of non-removable disks coated with magnetic materials. The disks spin and read-write heads move across them. Electro-magnets in the read-write heads read and write the data.
What is magnetic storage?
Storing data using magnetic media such as a hard disk drive.
When is magnetic storage most suitable?
Hard disk drives are suitable for the storage and backup of large amounts of data that do not need to be transported.
When is optical storage most suitable?
Optical disks are most suitable for distributing program files and images, and backing up data which can then be stored at another site.
Give two disadvantages of magnetic storage:
- not very portable
- susceptible to physical knocks that may cause the read-write heads to hit the disks and corrupt data
Give four advantages of magnetic storage:
- very fast access speeds
- random access: data can be read instantly from any part of the disc
- low cost
- can store large amounts of data; hard disk drives that store terabytes of data are common in most home computers
What does SSD stand for?
Solid State Drive
What does SD card stand for?
Secure Digital card
Give five examples of solid state storage:
- SSDs
- SD cards
- Micro SD cards
- SDXC (extended capacity) cards
- USB drives
How much data can an SD card typically store?
4 - 32 GB
How much data can a Micro SD card typically store?
4 - 32 GB
How much data can an SDXC (extended capacity SD card) store?
2 TB
How much data can a USB drive typically store?
256 GB - 1 TB