Computers Flashcards
Describe the
five-box model.
Main Memory
……………….^……………….
……………….|……………….
Input -> CPU -> Output
……………….^……………….
……………….|……………….
Secondary Storage
(secondary storage to CPU is a two-way arrow)
What are two examples of
secondary storage?
SSD and HDD
What is the
stored program concept?
a proposed design for a new computer architecture by von Neumann that allowed both program instructions and data to be stored together in a computer’s main memory
What does
von Neumann architecture consist of?
main memory and a central processing unit (CPU) interconnected by buses
Why was the
stored program concept such an important breakthrough?
it meant that computers could swap from one task to another simply by replacing the contents of memory
because program instructions and data are only stored in a computer’s memory for as long as they are needed
What does
main memory consist of?
a collection of storage locations
each location has its own unique memory address
you can think of memory like a series of letterboxes each with a space to store a program insturction or an item of data
What is
RAM?
and what does it stand for?
the main place for storing instructions and data whilst a program is being executed (aka main memory)
Random Access Memory
What are the
two different types of RAM?
DRAM (Dynamic RAM) - main memory
SRAM (Static RAM) - cache memory
What is the purpose of the
control unit (CU)?
to decode instructions received from main memory and coordinate the actions of other parts of the CPU in order to execute them
What is the purpose of the
arithmetic logic unit (ALU)?
to perform arithmetic and logic operations on data
Define
embedded system.
a small computer designed to perform one specific function
What are some
characteristics of embedded systems?
(9)
- small
- inexpensive
- limited functionality
- customised hardware and software
- single purpose not general purpose
- have limited user interface
- have simple and robust operating systems
- have low power consumption
- have limited processing resources
What is in the
microcontroller
of an embedded system? (3)
- CPU
- flash memory
- RAM
How does an
embedded system work?
(4 steps)
- Input devices supply an embedded system with information from the outside world.
- Data received from an input device (e.g. a sensor) is stored temporarily in the microcontroller’s RAM.
- The CPU interprets and acts upon the data according to the program instructions stored in flash memory.
- If necessary, a signal is sent to an output device (e.g. an actuator) to carry out an appropriate action.
What is the
Internet of Things (IoT)?
the converging of the internet and embedded systems, enabling devices to collect and exchange data with little or no human intervention
What is
utility software?
a collection of tools available that help minimise the impact of data loss or damage caused by events such as system failure, a cyberattack, a fire or a flood
What are some examples of
utility software?
(5)
- file repair
- backup
- data compression
- disc defragmentation
- anti-malware
What does a
file repair tool do?
it scans a damaged file, extracts as much data from it as possible and stores it in a new useable file
What does
backup do?
and why is this helpful?
it automatically backs up data stored on a computer’s hard drive to another location
should a file get lost or damaged, the most recent backup can be restored
What is
disaster recovery planning?
a set of protocols and procedures for backing up data on a regular basis and for being able to recover data quickly in the event of loss
What does a
data compression tool do?
and why is this helpful?
compresses files to reduce their file size
this frees up storage space and speeds up file transfer across networks
Why is
disk fragmentation a problem?
but only for mechanical hard drives?
it means that the heads have to move all over the disk platter to read and write data
although SSDs become just as fragmented, it makes no difference to the speed at which they operate since they have no mechanical parts
What does a
disk defragmenter do?
rearranges all the files so that every file is stored in sequential sectors and free space is consolidated
What are some examples of things that could go
wrong when a program is executed?
(4)
- a user may select an incorrect option or supply an inappropriate input
- data required by the program may somehow become corrupted
- a hardware fault may occur
- a peripheral may not be available when required
Define
robust software.
software that is capable of handling the unexpected without crashing, generating incorrect output or revealing sensitive data
Define
code vulnerability.
and why is this is a bad thing?
a flaw in a program that comprises security
it can be exploited by an attacker to gain access to a computer system, enabling them to:
- steal or corrupt data
- introduce malware
- take over control of the computer for some purpose of their own
What does
input validation do?
(2 things)
- Check if a user input meets certain criteria.
- Report an error or request the data be re-entered if needed.
What does
sanitization do?
modify the user input to make it valid
e.g. trim off spaces of ensure uniform case