Topic 3 - Computers Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a CPU for?

A

A processing unit to decode and execute program instructions fetched from memory one at a time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the input and output for?

A

Input and output mechanisms to input programs and data and output the results of processing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the main memory for?

A

A memory unit into which program instructions and data are loaded prior to being processed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe the features of a main memory unit.

A
  • It is short-term, working memory.
  • It only holds the program instructions and data that the CPU is currently using.
  • The contents of the main memory are continually changing.
  • It consists of a collection of storage locations, each with its own unique address.
  • A storage location can hold a program instruction or item of data.
  • It is often referred to as RAM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is the main memory short-term or long-term?

A

Short-term working memory. It only holds the program instructions and data that the CPU is currently using. The contents of the main memory are continually changing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the main memory consist of?

A

It consists of a collection of storage locations, each with its own unique address. A storage location can hold a program instruction or item of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the main memory often referred to as?

A

RAM (random access memory). Because storage locations can be read from and written to in any order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why is the main memory classed as primary storage?

A

Because the CPU has fast, direct access to it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is it described as volatile?

A

It needs power to retain its contents. When the computer is switched off, its main memory is completely wiped.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the CPU?

A

The hardware component that decodes and executes program instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the names of the three busses in the CPU components?

A
  1. Address bus
  2. Data bus
  3. Control bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What do the three buses do?

A

They work together to transfer data between the CPU, main memory and input/output devices such as the keyboard and screen.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the control unit do (in the CPU)?

A

Fetches program instructions from main memory one at a time, decodes them and directs the operations of the other parts of the system to execute them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the seven components of the CPU?

A
  • Address bus
  • Data bus
  • Control bus
  • Clock
  • Control unit
  • Arithmetic logic unit
  • Registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the clock do (in the CPU)?

A

Synchronises the actions of the CPU.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does the ALU do (in the CPU)?

A

Performs arithmetic and logic operations on data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does the register do (in the CPU)?

A

Direct-access storage for instructions, intermediate results and data within the CPU. Some are general purpose. Others, such as the Program counter and the Instruction register, have specific functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the clock?

A

A tiny quartz crystal that vibrates at a constant rate. Each tick of the clock triggers the CPU to carry out one action.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the clocks speed measured in?

A

Cycles per second: 1 hertz = 1 cycle per second.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is a bus?

A

A collection of wires that is used to transfer data between components of a computer system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What does the control bus do?

A

Carries signals between the CPU and other parts of the computer system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What does the address bus do?

A

Holds the address of the memory location that the CPU will read from or write to. The number of wires in the address bus (its bandwidth) determines how much addressable memory there is.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What does the data bus do?

A

Transfers program instructions and data between memory and the CPU.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is the fetch-decode-execute cycle?

A

It is the sequence of steps carries out repeatedly by the CPU when a program is being executed. Instructions are fetched one at a time from memory into the CPU, where they are decoded and executed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What are the three stages of the fetch stage?

A
  1. The CPU places the memory address of the next instructions on the address bus
  2. The CU within the CPU sends a read signal along the control bus to memory
  3. The content of the specified memory location is transferred along the data bus to the CPU. On arrival, it is stored in one of the CPU’s registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Explain the decode stage.

A

The CU looks up the instruction in the CPU’s instruction set.

Each CPU has its own unique instruction set - a list of all the operations that it can carry out.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Explain the execute stage.

A

The CU coordinates the actions of the other components of the CPU to carry out the operation. If an arithmetic or logic operation is required, the control unit signals that the ALU is to carry it out.
Once a cycle is complete the next one starts.

28
Q

What does second storage do?

A

It provides long-term storage for programs and data.

29
Q

Is secondary storage volatile?

A

No. It’s non-volatile.

30
Q

Does secondary storage have access the the CPU?

A

No. Programs and data must be transferred to memory in order for them to be accessed by the CPU.

31
Q

What are primary and secondary storages capacity like?

A

Primary: limited and only limited scope for expansion
Secondary: large and can be expanded by using external devices, such as portable hard drives and USB memory sticks.

32
Q

What are the three main types of secondary storage?

A
  • magnetic
  • optical
  • solid-state
33
Q

What devices use magnetic storage?

A

Hard disk drive
Magnetic tape drives

34
Q

What devices use optical storage?

A

CD
DVD

35
Q

How do optical storage devices store data?

A

Use patterns of light to store data on removable disks.

36
Q

What devices use solid-state storage?

A

Mobile phones
Smart watches

37
Q

How does solid-state storage work?

A

An electrical current is applied to the transistor. This forces electrons through a barrier, trapping them in pools. A full pool represents 0. An empty pool represents a 1.

38
Q

Advantages of magnetic storage?

A
  • high capacity
  • fast data access
39
Q

Advantages of optical storage?

A
  • portable
  • disks are cheap
40
Q

Advantages of solid-state storage?

A
  • very fast data access
  • no moving parts
  • low power
  • quiet
41
Q

Disadvantages of magnetic storage?

A
  • has moving parts that will eventually fail
  • noisy
42
Q

Disadvantages of optical storage?

A
  • slow to access
  • prone to scratches
43
Q

Disadvantages of solid-state storage?

A
  • relatively expensive
  • has a limited number of read-write cycles
44
Q

What is an embedded system?

A

A small computer on a chip that performs a dedicated task within a bigger system.

45
Q

What are the 10 features of an embedded system?

A
  1. single-purpose
  2. customised hardware and software
  3. limited memory and processing power
  4. low power consumption
  5. wireless connectivity
  6. minimal or no user interface
  7. small physical size
  8. responsive to their environment
  9. low maintenance
  10. usually operate in real time
46
Q

What are the hardware components of an embedded system?

A

1) A long-life battery
2) Sensors and other input devices to supply information from the outside world.
3) A low-powered microcontroller that contains the CPU, memory and input/output.
4) Actuators to convert the output commands into mechanical actions.

47
Q

What is firmware?

A

The program that tells the device what to do.

48
Q

What is an operating system?

A

The program that acts as an interface between the hardware and other software in a computer system, enabling them to communicate with each other.

49
Q

What are the four main tasks performed by an operating system?

A

Process management
File management
User management
Peripheral management

50
Q

What is process management?

A

Overseeing the execution of programs by the CPU and allocating each of them a share of main memory and CPU time.

51
Q

What is file management?

A

Organising and keeping track of the contents of secondary storage, managing files and folders and using permissions to control user access to programs and files.

52
Q

What is user management?

A

Providing a user interface to enable users to interact with the computer.

53
Q

What is peripheral management?

A

Communicating with device drivers to control peripheral devices.

54
Q

What is file repair software’s purpose?

A

To recover data from and repair files that have become corrupted by a computer malfunction or cyberattack.

55
Q

How does file repair software work?

A

It scans the damaged file, extracts as much data from it as possible and stores it in a new usable file.

56
Q

What is the purpose of disk defragmentation software?

A

To speed up access to files stored on a magnetic hard drive.

57
Q

How does disk defragmentation software work?

A

It rearranges individual file blocks for each file so that they are stored on contiguous blocks on the disk.

58
Q

What is the purpose of backup software?

A

To keep a copy of files so that, should a file get lost or damaged, the most recent backup can be restored.

59
Q

How does backup software work?

A

Backup copies of files are made at regular intervals and stored on a separate device in a different location to the live working environment- possibly in the cloud.

60
Q

What is the purpose of anti-malware software?

A

To protect computer systems and data from damage caused by malware, such as viruses, worms and spyware.

61
Q

How does anti-malware software work?

A

Some types of anti-malware software use a database of malware signatures (the patterns associated with a known piece of malware). If the anti-malware detects a file that has a pattern that matches a known signature, it deletes or quarantines it.

62
Q

What makes a software robust?

A

If it can handle unexpected actions without crashing or producing incorrect output and if it is free from vulnerabilities that could be exploited by criminals.

63
Q

Three things programmers can do to make their programs robust:

A
  • adhere to good programming practices
  • carry out regular code reviews
  • keep an audit trail
64
Q

Four features of low-level languages:

A
  • are difficult and time consuming to use
  • have few tools to help with maintenance and debugging
  • are machine-specific - the programs written in a low-level language will not run on a computer with a different type of CPU
  • interact directly with the hardware, enabling memory to be used efficiently
65
Q

Four features of high-level languages:

A
  • are programmer-friendly
  • have tools that make maintenance and debugging easier
  • are machine-independent (portable) - they will run on computers with different types of CPU
  • are generally less memory efficient