Computers Flashcards

1
Q

What is the stored program concept?

A

Where there is main memory and a CPU interconnected by buses with there being some form of secondary storage to provide long term storage

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

What is the purpose of the control unit?

A

Decodes instructions received from main memory and coordinates the actions of the other parts of the CPU in order to execute them

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

What is the purpose of the arithmetic logic unit?

A

Performs arithmetic and logical operations on data

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

What is the purpose of registers?

A

Fast temporary storage for instructions, intermediate results and data

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

What is the purpose of the clock?

A

Synchronises other hardware components. the faster the clock, the more instructions can be executed per second

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

What are the purposes of the buses?

A

Control bus (bidirectional): Carries signals between the control unit and other components
Address bus (unidirectional): Carries the address of the memory location that the CPU will read from or write to
Data bus (bidirectional): 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
7
Q

How does the fetch-decode-execute cycle work?

A

Fetch: The CPU places the memory address of the next instruction on the address bus. The CU sends a read signal along the control bus to memory. The content of the specified memory location is transferred along the data bus to the CPU. It’s stored in registers on arrival
Decode: The CU looks up the instruction in the CPU’s instruction set
Execute: The CU coordinate the actions of other components of the CPU to carry out the operation

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

Why is secondary storage needed?

A

Secondary storage is non-volatile so when turned on, it keeps its memory

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

What is an example of magnetic storage?

A

Hard disk drive (HDD)

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

How do you write on a HDD?

A

The read-write head magnetises the surface of the platter to a 1 or a 0. Data is stored on concentric tracks subdivided into sectors

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

How do you read on a HDD?

A

The read-write head detects the magnetic state of the platter

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

What is an example of optical storage?

A

CDs or DVDs

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

How do you write optical storage?

A

A laser burns the surface of the disk, making it more or less reflective. More reflective surfaces are called lands and represent 1. Less reflective surfaces are called pits and represent 0

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

How do you read optical storage?

A

A laser beam is shone onto the surface of the disk. A land which reflects more light than a pit represents 1 which is detected by a light sensor

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

What is an example of solid-state storage?

A

Solid state drive (SSD)

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

How do you write an SSD?

A

A current is applied to the transistor, forcing electrons into pools. A full pool represents 0 and an empty pool is 1

17
Q

How do you read an SSD?

A

A small voltage is applied. If the pool is empty, the transistor turns on and a 1 is read. If the pool is full, the transistor doesn’t turn on and a 0 is read

18
Q

What are the features of an embedded system?

A
  1. Single purpose
  2. Customised hardware and software
  3. Low power consumption
  4. Minimal or no UI
19
Q

What are the main tasks performed by an operating system?

A
  1. Process management
  2. File management
  3. User management
  4. Peripheral management
20
Q

How does an OS manage processes?

A

It uses a scheduling algorithm to ensure that every process gets a share of CPU time

21
Q

How does an OS manage files?

A

It has a root directory branching off into different nodes which are either sub-directories or files

22
Q

How does an OS manage users?

A

Access control: Uses login names and passwords to authenticate users
User interface: OS provides a user interface to interact with the computer
File permissions: OS grants user permissions to either read, write, execute or delete files

23
Q

How does an OS manage peripherals?

A

The OS uses device drivers to communicate with peripheral devices

24
Q

What does data compression software do?

A

Reduces the file size by repackaging it or removing some data so that it takes up less space in secondary storage

25
Q

What does file repair software do?

A

Recovers data from repair files that have been corrupted. It scans the damaged file and extracts as much data as possible in a new file

26
Q

What does disk defragmentation software do?

A

Rearranges individual file blocks for each file so that they are stored in contiguous blocks on the disk to speed up access to files stored on a magnetic hard drive

27
Q

What does backup software do?

A

Keeps a copy of files so that, should a file get lost or damaged, the most recent backup can be recovered. It keeps backups of files made at regular intervals and stored on a separate device in a different location to the live working environment

28
Q

What does anti-malware software do?

A

Protects computer systems and data from damage caused by malware. It has a database of malware signatures and detects if a file has a pattern that matches a known signature. It then deletes it

29
Q

How can code reviews make robust sofware?

A

It can be carried out by other programmers or by specialised software that checks the code to make sure it meets a pre-defined set of rules and may suggest ways to fix bugs and security issues

30
Q

How can audit trails make robust software?

A

The audit trail keeps track of who made what changes and when during the development process. If a problem arises, it can be tracked back to its source and rolled back to a version before the flaw was introduced

31
Q

What are properties of low-level languages?

A
  1. Difficult and time consuming to use
  2. Few tools to help with maintenance and debugging
  3. Machine-specific programs
  4. Interact directly with hardware enabling memory to be used more efficiently
32
Q

What are the properties of high-level languages?

A
  1. Are programmer-friendly
  2. Have tools that make maintenance and debugging easier
  3. Are machine-independent
  4. Generally, less memory efficient
33
Q

How do compilers work?

A

It translates the source code into machine code which can then be executed

34
Q

What are the advantages of compilers?

A
  1. The translation is only done once as a separate process
  2. The program that is run is already translated into machine code so it can be executed more rapidly
  3. The code is protected from competitors as they cannot see the source code
35
Q

What are the disadvantages of compilers?

A
  1. if it encounters any errors, it carries on trying to compile the program and reports the errors at the end
  2. You cannot change the program without going back to the original source code, editing that and recompiling
36
Q

How do interpreters work?

A

It translates the high-level code line by line into machine code

37
Q

What are the advantages of compilers?

A
  1. When an error is found, it stops and pinpoints the error so that the programmer knows where it has occurred
  2. The code is not platform-specific and can be run on different operating systems and platforms as long as there is an interpreter
  3. The program can be easily edited as it always exists as source code