Computers Flashcards

1
Q

What is the stored program concept?

A

Where there is main memory and a central processing unit interconnected by buses with some form of secondary storage for long-term storage

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

What is the role of the clock?

A

Synchronises the actions of the CPU

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

What is the role of the control unit?

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
4
Q

What is the role of the arithmetic logic unit?

A

Performs arithmetic and logic operations on data

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

What is the role of registers?

A

Direct-access storage for instructions, intermediate results and data within the CPU.

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

What is an embedded system?

A

A small computer that performs a dedicated task within a bigger system

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

What are some features of an embedded system?

A
  1. Single purpose
  2. Low power consumption
  3. Minimal or no user interface
  4. Small physical size
  5. Low maintenance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is an operating system?

A

A program that acts as an interface between the hardware and software in a computer system

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

How does an OS manage files?

A

Files are stored in a hierarchal tree structure with the root directory at the top, branching off into directories, sub-directories and files

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

What is a code review?

A

Where another programmer or specialised software checks the code to find any vulnerabilities in the code. It may also suggest way to fix them

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

What is an audit trail?

A

It keeps track of who made what changes and when during the development changes. Should a problem be discovered, the code can be rolled back to a version before the flaw was introduced

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

What is a low-level language?

A

Machine code and assembly language that work directly with a computer’s hardware

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

What are the advantages and disadvantages of low-level languages?

A

ADV:
1. Interact directly with the hardware, enabling memory to be used efficiently
DIS:
1. Are difficult and time consuming to use
2. Have few tools to help with maintenance and debugging
3. Are machine-specific

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

What is a high-level language?

A

A language much closer to human language - Java and Python

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

What are the advantages and disadvantages of high-level languages?

A

ADV:
1. Programmer friendly
2. Have tools that make maintenance and debugging easier
3. Are machine-independent
DIS:
1. Are generally less memory efficient

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

What is a compiler?

A

A compiler translates the source code into a stand alone machine code that can then be executed

17
Q

What are the properties of compilers?

A
  1. The translation is done once and as a separate process
  2. The program that is run is already translated into machine code so it can be execute more rapidly
  3. It protects the software from competitors who would otherwise be able to see the source code
  4. If it encounters any errors, it carries on and reports them at the end
  5. You cannot change the program without going back to the original source code
18
Q

What is an interpreter?

A

An interpreter translates the high-level code line by line into machine code.

19
Q

What are the properties of interpreters?

A
  1. When an error is found, the interpreter stops, and reports it
  2. The code is not platform-specific and can be run on different operating systems
  3. The program can be easily edited as it always exists as source code
  4. Every line has to be translated each time it is executed, and therefore slower to run
20
Q

What is an assembler?

A

An assembler translates the assembly language into machine-code instructions