Topic 4 - Computer Systems Flashcards

1
Q

What are computer systems made of ?

A

Computer systems are made of hardware and software which work together.

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

What is hardware ?

A

the physical components of the computer

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

What are 4 types of hardware ?

A

Input/Output (I/O) devices

Secondary storage

Processors

Primary storage

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

What do I/O devices allow users to do ?

A

I/O devices allow users to input data into the computer, or receive a data output from the computer.

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

What are some examples of I/O devices ?

A

Keyboard
Mouse
Monitor
Speakers

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

What is secondary storage ?

A

Secondary storage is the memory in which the computer can store the data or instructions which are NOT currently in use.

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

What are the main types of secondary storage ?

A

Hard Disk Drive (HDD).
Solid State Drive (SSD).
Compact Disk (CD).
Flash (USB Drive).

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

What is a processors ?

A

A processor is a special component that processes data and instructions to control other components within the computer.

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

What are the two main types of processors ?

A

Central processing unit (CPU)

Graphics processing unit (GPU)

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

What is primary storage ?

A

Primary storage is the memory in which the computer can store the data or instructions that are currently in use.

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

What are the two main types of primary storage ?

A

Random Access Memory (RAM)

Read-Only Memory (ROM)

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

What are two types of computer systems ?

A

Embedded systems

General purpose systems

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

What is the function of an embedded system ?

A

An embedded system is a computer system which is built into another device to support its operation.

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

What are 3 types of embedded systems ?

A

Washing machines
Cameras
Printers

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

What is special about general purpose systems ?

A

General purpose systems are capable of performing many different tasks.

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

What are types of general purpose systems ?

A

PCs
Mac
Smartphones

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

Where does the computer store data and instructions which are NOT currently in use?

A

Secondary storage

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

A client has asked you to develop a self-checkout machine for his small supermarket which allows customers to scan their shopping and pay for it without him having to oversee the process. What type of computer system would you be developing?

A

Embedded system

19
Q

What are most computer languages written in?

A

Most computer languages are written in high-level programming languages

20
Q

What do high level languages look like ?

A

Commands in a high-level language look very like English.

print()
SELECT * FROM users;

21
Q

What are types of High-level languages (HLLs) ?

A

High-level languages (HLLs) include most programming languages such as Python, C++ and Java.

22
Q

What are High-level languages are made of ?

A

High-level languages are made of human-readable statements that make it easier for us to program.

23
Q

High-level languages are portable, what does this mean ?

A

which means that they can be run on many different types of hardware.

24
Q

Why dont we only use high level languages ?

A

Computers can only process instructions in the form of binary numbers.

25
Q

What is the special software called that convers our HLL source code into an executable binary file ?

A

translators convert our HLL source code into an executable binary file.

26
Q

Low-level programming languages are languages which are what ?

A

much closer to computer-understandable binary

27
Q

LLLs are harder to read by who, but are easier to read for what ?

A

LLLs are harder to read by humans, but are easier to read for the computer.

28
Q

What does an LLL look like?

A

MOV ax, bx
CMP ch, dh
CLI

All hard for humans to interperate or understand

29
Q

Why are low level languages used ?

A

LLLs provide exact control over the central processing unit.

LLLs need less translation, and often lead to faster code which is useful for computers with low specifications such as embedded systems.

30
Q

Which type of language often have more optimised (faster) code?

A

Low level language

31
Q

What are Translators ?

A

Translators are special software that convert source code into executable binary

32
Q

What do compilers do ?

A

Compilers translate the whole of a program in one go.

Compilers will provide a list of errors once it has attempted the compilation process:
This can make debugging easier.

33
Q

What are C, C++, Visual Basic, and Swift all examples of ?

A

C, C++, Visual Basic, and Swift are all compiled languages

34
Q

What are the pros of compliers ?

A

Compilers produce an executable program:
There is no need to repeat this process more than once per version of the software.

Compilers hide the source code from the end user:
This helps to protect developers’ intellectual property

35
Q

What are the cons of compilers ?

A

The compilation process can be very slow:

This can slow down development if many small changes need to be made.

36
Q

What are Interpreters ?

A

Interpreters are a type of translator which convert high level languages to executable machine code.

37
Q

What do Interpreters do ?

A

Interpreters translate high-level source code into executable binary one line at a time.

38
Q

Python and JavaScript are examples of what ?

A

Python and JavaScript are examples of interpreted languages

39
Q

What are the pros of interpreters ?

A

Interpreters will stop as soon as they encounter an error:
This is useful for debugging.

Interpreted languages are ‘portable’:
This means that they can be run on many different types of central processing unit as long as there is an interpreter available for the platform.

40
Q

What are the cons of interpreters ?

A

Running an interpreted program is slower than a compiled program because we have to translate each line every time we run the software.

But it is quicker to get started which can be good for small changes.

Interpreters do not produce a compiled program file:
The process must be repeated each time the program is run.

41
Q

What do assemblers do ?

A

Assemblers translate assembly code into executable binary

42
Q

What do assemblers do to assembly language ?

A

Assembly is a very low-level programming language.

Each instruction directly corresponds to a binary sequence, and the assembler replaces the commands with the relevant binary.

43
Q

What are the pros of assemblers ?

A

Assembly provides exact control over the hardware:
This can lead to very efficient code that takes up little space in memory and is quick to execute.

Assembly can be used on low specification machines.

44
Q

What are the cons of assemblers?

A

Assembly is very difficult to use, and needs deep technical knowledge of the central processing unit and the memory.