Theory - Computer Systems Flashcards

1
Q

Input process output model

A

Input -> Process -> Output
^ ^ v I
I Storage I
I___________________ I
Feedback

Main memory (RAM / random access memory)
^ v
Input -> Process (by CPU) -> Output
^ ^ v I
I Storage I
I_______________________I
Feedback

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

Computer system

A

System that takes a set of digital inputs, processes them and creates a set of outputs
Done by a combination of hardware and software
Combination of hardware and software components allow input, processing and output of data

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

How data enters a computer system

A

When a user adds an input

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

Examples of input devices

A

Mouse
Keyboard
Microphone
Camera

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

Another name for CPU (central processing unit)

A

Processor

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

Role of a program in a computer system

A

Programs handle user inputs

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

Output

A

Result from input
Can be displayed through many output devices, such as screens for visuals and speakers for sound

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

Why processed data is sometimes stored rather than output

A

Data may not be needed instantly
Data could also be stored for later use

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

Dedicated system

A

Computer system made to do 1 specific task
Such as a computer controlling a robotic arm in a car factory

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

Embedded system

A

Small computer that is part of a larger system with one purpose

Dedicated system which is part of a larger mechanical or electrical system,
such as a washing machine controller and a digital camera processor

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

General purpose system

A

Systems capable of performing many different tasks
Used for many different purposes, such as playing music, games, email, internet,
such as a personal computer, tablet, smartphone

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

Hardware

A

Physical components used in a computer system for input, processing and output.
Such as a display, mouse, motor, printer, CPU or motherboard

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

Software

A

Program code which is executed on the CPU
Operating systems and applications are both types of software

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

What is needed to make 2 computer systems communicate with each other

A

Internet connection

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

Advantages of embedded systems

A

• Easy to mass produce
• Highly reliable
• Small in size
• Cheaper than conventional computers
• Fast operation
• Improved product quality
• Optimises use of system resources.
• Low power operation

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

Disadvantages of embedded systems

A

• The embedded systems are hard for maintenance as it is use and throw device.
• It has no technological improvement.
• Less power supply durability if it is battery operated.
• It has hard to take backup of embedded files.

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

Utility software

A

Security: Anti virus, firewall, spyware detection, encryption
File organisation: Archiving, backup and store
Clean up: Delete tmp, cache, internet files, downloads & installers, recycle bin, defragmentation, compression
Diagnostics: Task manager, disk usage viewer
Customisation and add-ons: Eye-candy: change the appearance of an app without changing its functionality.
Helper app, and new features to existing apps, make them faster/easier.

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

library programs

A

System software used to oversee the maintenance of a computer
e.g. resource management, data organization

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

Low level programming language

A

Machine code - The binary language that software is written in and that CPUs use to carry out tasks
Assembly language - programming language for computers or other programmable devices

Exact control over the hardware allows optimisations to be made which result in very fast code which takes little memory space.
produce shorter and faster code which is useful for computers with low specifications, especially in embedded systems.

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

multitasking

A

The ability of an operating system to do more than one task at once.
allows the user to have several different applications running at the same time

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

operating system (OS)

A

Pre-installed software essential for the running of the computer, e.g. Linux, Microsoft Windows, Mac OS X. The OS software depends on the hardware used, e.g. iOS 17 on iPad

Processor / task / process management;
• Memory management;
• I/O device management;
• Applications management,
Security management;
• File / storage management;
• Network management;
A. Provides a user interface

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

peripheral

A

A separate input, output or storage device that is connected to perform particular tasks. For example, printer, USB drive, keyboard.

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

security

A

A type of system software that provides protection from malicious software threats and data loss, e.g. firewall

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

software

A

Any program or application that allows users to interact with hardware and give it instructions

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

SPOOL

A

Acronym: Simultaneous Peripheral Operation On Line
The activity of keeping various peripheral tasks in a special waiting bay to allow slower tasks to catch up without slowing down the computer

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

system software

A

Software used to control computers and operate the programs installed on them, e.g. operating system software, utility program

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

utility programs

A

System software that provides a repository of frequently used code that can be accessed by different programs

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

Antivirus

A

software that detects malware in a computer or computer system and destroys it.

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

Disk defragmenter

A

File might be stored across multiple physical locations on the disc (1), which causes access speed to be slower
Defragmentation moves parts of a file (1) in order to store all parts in adjacent locations
This software reduces the number of times the disk needs to be accessed so that the file loads
This increases the performance of the computer system

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

System cleanup

A

This is used to delete files, such as internet files and cached data

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

Automatic update

A

This keeps the computer up to date with the latest software and operating systems.

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

3 processes of the CPU

A

FETCH instruction from main memory
DECODE the instruction
EXECUTE the instruction

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

Purpose of the CPU

A

sorting and searching data
performing calculations
logical decision-making
synchronising data on different devices
control of input/output and storage devices

Inside a Central Processing Unit (CPU), transistors are arranged into circuits to perform operations such as calculations when electricity is passed through them.
For example, transistors can be arranged to form an ‘adder’ circuit that can accept two binary numbers, and output the sum of their values.
Modern CPUs contain over 3 billion transistors, allowing them to perform billions of calculations per second.

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

When a program is run, where is it loaded into

A

RAM - main memory
Random access memory

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

5 registers involved with the fetch decode execute cycle

A

Program counter (PC)
Memory address register (MAR)
Memory data register (MDR)
Current instruction register
Accumulator

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

What happens during the fetch operation

A

program you want to run is loaded into RAM
starting address location is loaded into memory data register
program counter value is copied into program counter
Control Unit then loads address on to memory address register
And then sends a signal to Read address
The instruction at that address is passed across the data bus and copied into the
The instruction in the MDR is copied into the
So that it is ready to use during next stage (Decode)
The program counter Is incremented by one location so that it is ready to begin the next fetch cycle.

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

How may programs can be running in the main memory / RAM

A

1 or more

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

What happens during the decode operation

A

The control unit decodes the instruction LOAD 3 to mean LOAD the value at memory location 3 into this place, the Accumulator.
The accumulator is another special purpose register.
It’s like a warehouse where data is temporarily stored while mathematical and logical operations are performed by this place … the Arithmetic Logic Unit, it is the factory of the city, and uses data stored in the accumulator to process calculations.

39
Q

What happens during the execute operation

A

the instructions are carried out. Arithmetic calculations involving operators and operand are calculated in the arithmetic logic unit (ALU)

40
Q

Difference between embedded and general purpose systems

A

An embedded system is a small computer that is built into or part of a larger computer system.
Embedded systems usually have one purpose.
example: dishwasher

Systems that are capable of performing many different tasks are called general purpose systems.
example: iPad

41
Q

CPU - control unit

A

Controls all the operations that occur in the CPU

Decodes instructions and manages data flow between the CPU and memory locations

42
Q

CPU - arithmetic logic unit (ALU)

A

This controls all the mathematical operations

43
Q

CPU - registers

A

Extremely fast memory locations inside the CPU which are used to temporarily store data and instructions needed by the CPU that will be decoded

44
Q

CPU - cache

A

Temporary memory of the CPU.
Helps access data more quickly than accessing it from the main hard drive.

45
Q

CPU - clock

A

This is how quickly the CPU can do “fetch, execute, decode” cycles

Generates electrical pulses at a constant speed to svnchronise the activity of the CPU

46
Q

CPU - buses

A

These are for data sharing, addressing, control signals, providing power to components and sharing the system time.

47
Q

Von Neumann Architecture

A

Computer design where data and instructions are stored as binary codes in the same memorv location

• Uses one memory for both instructions and data.
• Cannot distinguish between data and instructions in a memory location
• Executes programs one instruction after the next in a series
also known as digital computer architecture

48
Q

What determines the performance level of the CPU

A

Clock speed
Number of processor cores
Cache size

49
Q

How may processes can a computer process at a time

A

1 billion instructions at a time

50
Q

How is the clock speed measured

A

In hertz (Hz)

51
Q

How many instructions per second would a computer running at 3GHz carry out

A

3 billion instructions per second.

52
Q

explain what the term dual core means

A

Dual core means that there would essentialy be 2 CPU’s in 1.
Each of these cores would carry out a separate function.
The more cores, the higher efficiency therefore the faster the computer

53
Q

What is volatile memory?

A

Memory that only holds data while the computer is powered.
Such as the CPU registers

54
Q

What type of code is binary language

A

Machine code

55
Q

What language is used To write code at a processor language level

A

Assembly language
The code is written in mnemonics, such as LOAD, STORE, ADD

56
Q

High level languages

A

Programming languages that look like normal languages
Eg.
python
C#

57
Q

Process of translating programs

A

Source program file -> translated -> object program file

Translators translate source code into code executable by the computer, such as machine code

translator converts source code to machine code so that it can be executed by the processor.

58
Q

Translators - Interpreters

A

Translate code line by line
Interpreters will stop as soon as they encounter an error: Easy for debugging
Long process
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.
Interpreted languages: Python, JavaScript

Drawbacks:
Slower than compilers
Do not produce a standalone executable binary file

59
Q

Translators - compilers

A

Translate code in one go
Short process
Hard for debugging

Compilers help to hide the source code from the end-user. This helps to protect the developer’s intellectual property.

Compiled languages:
C++, Visual Basic, Swift

Why might a programmer use a compiler instead of an interpreter to translate their code? The files produced by a compiler can be distributed and run without a translator

output of the compilation process: Object code

60
Q

What is assembly language and what is an assembler

A

Assembly language instructions are basically mnemonics to represent machine code instructions. Assembly language instructions are translated into machine code instructions using an assembler and there is nearly a one-to-one match between them.
This means that a machine code program translated from assembly language is very efficient and therefore tends to require less memory and run faster than machine code translated from a high level language using a compiler

Assembler: To convert / translate / change / turn assembly language into machine code

61
Q

Main memory

A

is also known as Primary Memory or Immediate Access Store.
The operating system is stored here and the memory can be divided into two groups:
Read Only Memory (ROM) and Random Access memory (RAM).

62
Q

Secondary Memory

A

Memory is all about storage so storage devices such as hard disks are also a type of memory. These long term non-volatile types of storage are also called Secondary Memory or backing store.

63
Q

What is RAM

A

• Random Access memory
• Increasing this increases a computer’s overall speed
• Memory address can be read or written to
• Volatile
• Stores an electrical charge to represent a value of “1”
• Used for storing data or program instructions that are in use

64
Q

What is ROM

A

• Read Only memory
• Non volatile
• Content cannot be deleted
• BIOS is a common chip for this type of memory

65
Q

need for ROM in a computer system

A

ROM holds essential data, which the computer reads when power is supplied to it, such as the BIOS.

66
Q

BIOS

A

The basic input output system, a chip found in most computers that contains all the instructions necessary to boot up

67
Q

Secondary storage

A

usually much larger and as we want such a lot of it, it needs to be cheap.
Cheaper memory technologies tend to have slower access speeds than main memory (RAM)
non-volatile
robust and reliable.
outside the CPU
Used to keep programs and data for a long term

68
Q

Storage Capacity

A

How much space there is to store files

69
Q

Storage Speed

A

How quickly the computer can read data from a storage device or write data to it

70
Q

Storage portability

A

How easily you can unplug it and carry it away

71
Q

Storage durability

A

How easily it is damaged

72
Q

Storage reliability

A

How long it will last
Anything with moving parts is likely to be less reliable

73
Q

What are storage devices used for

A

Long term storage of programs and data

74
Q

Optical storage

A

uses low-power laser beams to record and retrieve digital (binary) data.
a laser beam encodes digital data onto an optical, or laser, disk in the form of tiny pits arranged in a spiral track on the disk’s surface.
Example: CDs, DVDs and blu-ray disks
Inexpensive if less than 10GB of data needs to be stored
Slow to write data
can be easily scratched.

75
Q

Magnetic storage

A

storage of data on a magnetized medium.
Magnetic storage uses different patterns of magnetisation in a magnetizable material to store data and is a form of non-volatile memory.
The information is accessed using one or more read/write heads.
Example: Hard disks and magnetic tape cartridges
Magnetic tapes can store large amounts of data, up to 185 TB

76
Q

Solid state storage

A

stored permanently inside an integrated circuit, typically using flash memory.
The flash memory inside an SSD means data is written, transferred, and erased electronically and silently
SSDs don’t have the moving parts that are found inside mechanical hard-disk drives (HDDs).
Electrical charges are used to store the data: absence of charge represents binary 0 and presence of charge represents binary 1.
Example: USB memory sticks and SD cards

77
Q

Cloud storage

A

Cloud storage is a cloud computing model that enables storing data and files on the internet through a cloud computing provider
accessed either through the public internet or a dedicated private network connection.

78
Q

Advantages of cloud storage compared to local storage

A

Can be accessed from any device with an internet connection

79
Q

Disadvantages of cloud storage compared to local storage

A

Requires an internet connection

80
Q

Key factors when deciding the most suitable storage media to use

A

capacity
speed
portability
durability
reliability
cost

81
Q

2 types of processors

A

CPU - central processing unit
GPU - graphics processing unit

82
Q

What is the following expression when simplified?
(True AND False) AND False

A

False

83
Q

What are logic circuits made from?

A

Logic gates

One or more gates can be arranged to convert binary inputs to binary outputs

84
Q

What is the following expression when simplified?
NOT (True OR False)

A

False

85
Q

What is the following expression when simplified?
NOT(True AND False)

A

True

86
Q

What are logic gates made from?

A

Transistors

87
Q

Common logic gates

A

AND
evaluates to True (1) if and only if both operands are True (1).
. is the symbol for the AND operator. =D—

OR
evaluates to True (1) if any of the two operands are True (1).
‘+’ is the symbol for the OR operator. =)D—

NOR

XOR
Symbol: ⨁
If both values are the same, then the output is true

NOT
negates a logical value - inverts the value: NOT(True) = False
The symbol for the NOT operator is a line above the variable.
For example, NOT A is written as Ā
—▷ ◦—

EOR
NAND

88
Q

Transistors

A

Transistors are electrical components made from semiconductor materials that can act as electrically-controlled switches.
Transistors can be used to temporarily store data, for example in some forms of primary storage (memory)

The presence of electricity represents a 1, and an absence of electricity represents a 0 in a transistor

89
Q

Device drivers

A

small programs which tell the operating system how to use a piece of hardware

name given to a piece of software that allows a system to communicate with a peripheral

90
Q

Operating system

A

Manages access to the hardware in the computer

91
Q

Utility software

A

Performs maintenance tasks to make sure the operation of the system continues

92
Q

Truth table

A

table which shows all the possible inputs and outputs from a given logic system

93
Q

IDE

A

software application that helps programmers develop software code efficiently as it increases developer productivity by combining capabilities such as software editing, building, testing, and packaging into one application.

Code editor (1) - Allows programmers to edit code within the IDE (1)
Translators (1) - Converts programs into machine code (1)
Run-time environment (1) - Allows code to be run within the IDE (1)
Error diagnostics (1) - Highlights syntax errors and other potential issues

94
Q

A scientific simulation has been written which will iterate many times
Should a compiler or translator be used

A

A compiled language should be used.
Interpreters would translate code for every iteration, whereas compiler translate the whole code only once.
Therefore a compiled program will perform better due to the reduce translation time.