Unit 3 - Hardware Flashcards

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

What are some examples of input devices on a laptop and smartphone?

A

Laptop: keyboard, buttons, trackpad, microphone

Smartphone: microphone, buttons, GPS sensor, gyroscopic sensor, touch part of the touchscreen

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

What are some examples of output devices?

A

Laptop and smartphone: speakers, display

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

What component carries out the processing of the instructions?

A

CPU (Central Processing Unit)

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

What is the purpose of the CPU?

A

When you run a program, it is the CPU which processes the instructions and data that is input, the results are then output

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

What are the components of the CPU?

A

2 Major components - Control Unit and ALU (Arithmetic-Logic Unit)
There are also registers and cache

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

List the different registers in the CPU:

A
  • Program counter (PC)
  • Memory Address Register (MAR)
  • Memory Data Register (MDR)
  • Current Instruction register (CIR)
  • Accumulator (ACC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a PC?

A

A Program counter holds the address of the next instruction to be fetched from the primary memory.

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

What is a MAR?

A

It holds the memory address of the current instruction, and then the data that it uses, so that these can be fetched from memory.

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

What is the MDR?

A

It holds the contents found at the address held in the MAR, or data which is to be transferred to primary memory

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

What is the CIR?

A

The current instruction register holds the instruction currently being executed or decoded

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

What is the ACC?

A

The accumulator holds the result of an instruction before it is transferred to memory.

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

What is the control unit?

A

The control unit coordinates and controls all of the activities taking place within the CPU

  • It decodes instructions and executes them
  • It receives signals from the system clock
  • It directs the timing and control of other parts of the - CPU, much like the conductor of an orchestra
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the ALU?

A

The arithmetic logic unit is where the actual arithmetic operations are done. It also carries out logical operations such as those including AND, OR and NOT.

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

What is the fetch-decode-execute cycle?

A

FETCH – causes the next instruction and any data involved to be fetched from main memory
DECODE – decodes the instruction
EXECUTE – the instruction is executed

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

What is the PC?

A

The Program Counter holds the address of the next instruction to be executed
The Program Counter is incremented (increased by 1) as soon as that instruction has been fetched

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

What happens in the Fetch stage of the F-E-D cycle?

A

the address of the instruction to be executed is copied from the Program Counter (PC) to the Memory Address Register (MAR)
The instruction at that address is fetched from memory and copied to the Memory Data Register (MDR)
The Control Unit decodes the instruction and decides if data needs to be fetched
If so, the MAR is then used to hold the address of the data to be used in the instruction
The data is fetched and copied to the MDR

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

How does the MDR and MAR work together?

A

The MAR knows where to look for data in RAM, the MDR keeps hold of that data until it’s ready to be used by the CPU

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

What does the CIR do?

A

The current instruction register holds the instruction that is being executed or decoded at the moment

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

Name the three factors effect CPU performance and what they do:

A
  • Clock speed (The number of duplicate processing units (cores) placed in one CPU)
  • Processor cores (Cycles per second measured in hertz (Hz))
  • Cache (Cache on the CPU is faster than RAM but slower than registers)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is clock speed?

A

Everything in a computer happens on the pulse of the internal clock. Therefore, the faster the clock speed, the faster the instructions are processed

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

What is a processor core?

A

One cycle per second = 1 hertz (Hz) = 1 instruction carried out each second

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

What is a multi-core processor and what effect does it have on speed?

A

This allows twice as many instructions to be executed, however, it doesn’t always perform at this rate as software may not be able to take full advantage of both cores. A quad-core processor working on many different tasks simultaneously, under ideal conditions can be up to four times faster than a single-core processor

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

What is a disadvantage of a quad-core processor

A

If the computer is running a single program, it is not necessarily any faster, since the program may have been designed to only run on one core. The core can also heat up a lot.

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

What is Cache memory?

A

Cache is a small amount of very fast, expensive memory in the CPU. It can be accessed faster than regular main memory (RAM)

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

How does cache effect speed?

A

It takes longer to retrieve an instruction or data from RAM than from cache. Program instructions and data that are fetched are stored in cache in case they are needed again soon

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

How many levels are there are cache?

A

There are 3 levels which are all faster than RAM and disc storage, but slower than CPU registers.

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

What are the benefits of cache?

A

The data used most often by the CPU is held in Level 1 cache so is available extremely quickly
In most systems, Level 1 cache is used about 50% of the time, with Level 2 cache being accessed about 90% of the time
This greatly reduces the time that the CPU has to wait for data from main memory

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

What is a bus?

A

A bus is a set of parallel wires connecting two or more components of the computer

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

What is the address bus?

A

The address bus carries the addresses of data (but not the data) between the processor and memory.

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

What is the data bus?

A

The data bus carries data between the processor, the memory unit and the input/output devices.

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

What is the control bus?

A

The control bus carries signals that control and coordinate all the activities within the computer.

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

What are instruction sets?

A

Instruction sets are all the possible instructions that are able to be decoded and executed by a CPU

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

Do all CPUs have the same instruction set?

A

A particular CPU will have its own instruction set
Programs written for one type of CPU won’t work on another
For example, a program written for an Intel Core i7 won’t work on an ARM processor contained in a smartphone

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

What is assembly code?

A

When programming a processor a special language called assembly code is used

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

What is the machine code?

A

The binary representation of the assembly code program. This will be executed by the CPU

36
Q

What is the opcode?

A

Opcode is a part of the instruction that tells the processor what should be done.

37
Q

What is the operands?

A

Operand is a part of the instruction that contains the data to be acted on, or the memory location of the data in a register

38
Q

What is a microprocessor?

A

A microprocessor is an integrated circuit that is all contained on a single chip

39
Q

What is an embedded computer?

A

An embedded computer is a single microprocessor that includes RAM, ROM and a CPU

40
Q

When is an embedded computer used?

A

An embedded computer is frequently used to control a device using simple inputs

41
Q

Why are embedded computers used?

A

Without embedded systems, a digital device would not be able to perform specific functions. For example, a dishwasher wouldn’t know when to heat the water, or a satnav wouldn’t know how to communicate with a satellite

42
Q

Difference between Embedded and General purpose machine?

A
  • slower CPU speed
  • cannot instal new software unlike an general purpose machine
  • Programs are stored on the ROM
  • Typically very reliable e.g. a microwave won’t bug
43
Q

What is primary storage?

A

Primary storage is directly accessed by the CPU and is needed to store programs that are currently running

44
Q

What are 2 types of primary storage?

A

RAM (Random Access Memory)

ROM (Read Only Memory)

45
Q

What is RAM?

A

RAM stores programs or data that are running or open and it is directly accessed by the CPU. RAM is volatile.

46
Q

Where are your programs and data permanently stored?

A

The hard drive as it is non-volatile storage so it doesn’t lose the data if the power is off.

47
Q

What happens in the ram when the computer is turned on?

A

No data is stored in the RAM.

48
Q

How is the operating system loaded?

A

The computer first loads the operating system from your hard drive into RAM.

49
Q

How are programs and data loaded?

A

When applications or programs are loaded, they are copied into RAM from the hard drive, RAM starts to fill up as all these programs, documents and files are copied.

50
Q

What happens when you run out of RAM space?

A

The computer uses virtual memory which is part of the hard drive which acts as an extension to RAM, this is know as swapping and paging.

51
Q

Advantages of virtual memory:

A
  • Uses cheap secondary storage on the hard drive

- Prevents error messages saying ‘out of memory’ – the programs and files will still open

52
Q

Disadvantages of virtual memory?

A
  • Accessing virtual memory is very slow
  • To access data, the existing data in RAM needs to be copied to the virtual memory, then data in virtual memory needs to be copied to RAM
53
Q

What is ROM?

A

Read-only memory (ROM) is used to store this data
Data is read from ROM, but cannot be written to it
It is non-volatile as the data isn’t lost if the power is off

54
Q

What is stored in ROM on a modern computer

A

It stores the bootstrap and the Basic Input/Output System (BIOS).

55
Q

What is the bootstrap?

A

The initial program that is run when the computer is turned on, it tells the computer where it will find the operating system on the hard drive.

56
Q

What is memory speed?

A

The speed that data can be accessed changes through the different components in a computer

57
Q

What is secondary storage?

A

Secondary storage is not directly accessed by the CPU and is needed for permanent storage of data. Secondary storage devices may be internal or external to the computer

58
Q

What is secondary storage used for?

A
  • Programs and data are stored on hard drive
  • Blu-rays may be used to distribute films
  • Memory sticks may be used to transport data from one place to another
  • Magnetic tape or external hard drives may be used for backup
  • SD cards can be used for additional storage on cameras and smartphones – this is used for music, video and photos
59
Q

What 2 main secondary secondary storages?

A

Hard Disk Drive (HDD)

Solid State Drive (SSD)

60
Q

What are 4 examples of offline secondary storage?

A
  • Compact Disc (CD), Digital -Versatile Disc (DVD) or BluRay
  • Flash memory, SD cards
  • Removable HDD or SSD
  • Magnetic tape
61
Q

What are the 3 storage methods?

A
  • Magnetic: Mechanical parts move over the disks surface to read and write data magnetically, or a drive head reads a magnetic tape
  • Optical: Lasers read and write data using light
  • Solid State: Data is recorded onto solid memory chips without any moving parts
62
Q

What is a magnetic disc?

A

As the disk is spinning, a read/write head moves across its surface. To write data, the head magnetises or demagnetises a section of the disk that is spinning under it. To read data, the head makes a note of whether the section is magnetised or not.

63
Q

Advantages of magnetic storage: hard disks?

A
  • Cheap
  • large storage capacities
  • relatively fast write speed
64
Q

Disadvantages of magnetic storage?

A
  • Lots of mechanical parts
  • durability an issue
  • sealed unit due to disk head and platter precision
  • not very portable
65
Q

What is optical storage?

A

When the laser shines on the disc surface, lands reflect the light back, whereas pits scatter the laser beam. A sensor looks for the reflected light. Reflected light (lands) represents a binary ‘1’, and no reflection (pits) represents a binary ‘0’.

66
Q

Advantages of Optical storage

A
  • Cheap
  • very easily portable
  • takes up little space physically
67
Q

What are the disadvantages of optical storage?

A
  • Less storage capacity compared to other types
  • Easily damaged / scratched, requires a CD reader
  • Slow write speeds
68
Q

Why are the capacities of these discs (CDs, DVDs and BluRay) different given they are all the same physical size?

A

A CD has bigger pits and lands than Blu-ray as red light has a larger wavelength, The smaller Blu-ray pits and lands allow it to store more data

69
Q

What is a SSD?

A

Solid-state disks use non-volatile flash memory to store information
Very fast read/write speeds as it doesn’t need to wait for a disk to spin to the correct location and an arm to move
No mechanical or moving parts meaning these disks are very durable

70
Q

Advantages of a SSD?

A
  • Highly durable
  • No moving parts
  • very fast read/write speeds
  • no noisy fan or drive arm
  • faster start up times
71
Q

Disadvantages of a SSD?

A
  • More expensive than magnetic hard disks

- similar storage capacity as magnetic disks

72
Q

What is flash memory?

A

Low cost, portable, no moving parts, durable
This makes them ideal for a range of offline devices:
- Cameras
- Mobile phones
- USB memory sticks

73
Q

How does flash memory store data?

A

If no electrons are present in the floating gate the current will flow, representing a 1
If electrons are stored in the floating gate, the current doesn’t flow, representing a 0

74
Q

What is the isolation layer?

A

The isolation layers are semiconductors known as transistors
In order to write to the flash memory cell, the electrons need to pass through the isolation layer
The electrons only move through this layer when writing
Normally, they remain trapped in the floating gate

75
Q

How does flash memory writes data?

A

The control gate is used to move electrons into or out of the floating gate

  • A negative voltage forces electrons out of the floating gate
  • A positive voltage forces electrons into the floating gate
76
Q

What are the 2 types of flash memory available?

A

NOR and NAND

77
Q

What is NOR?

A

NOR flash memory is used for programs
Reading from NOR flash is random access like RAM
It is used to store code such as the BIOS and possibly an operating system and code is executed directly by the CPU

78
Q

What is NAND?

A

NAND memory is used for data storage
NAND memory works like other secondary storage
Data is first copied to RAM before it is accessed by the CPU

79
Q

What is the cloud?

A

Cloud storage allows users to store files and data on the Internet
The files are accessed remotelyby users
Data may be stored in multiple locations
A professional company will manage the data storage

80
Q

What are major areas the cloud can be split into?

A
  • Cloud storage

- Cloud computing

81
Q

What are features of cloud storage?

A
Synchronisation of devices with the cloud storage
24/7 Availability
Redundancy
Multiple file versions
Only pay for storage used
Scalability
82
Q

What is redundancy?

A

Storage redundancy is where multiple copies of files are stored in different locations
In local storage this is normally carried out by having multiple copies of files on two different hard drives in one server
In cloud storage the locations that store redundant files may be anywhere in the world

83
Q

what is scalability?

A

Scalability is the ability of the storage system or cloud computing resources to increase in size
Cloud storage normally charges for the amount of storage used

84
Q

What are data centres?

A

Data centres are buildings that are dedicated to storing physical servers
Each server will contain an array of hard drives
Professional engineers will managethe computers
The buildings will have temperaturecontrol and air conditioning
Uptimes for data centres are often better than 99.99%

85
Q

How does cloud storage create privacy?

A

If data is stored in the cloud, the security and privacy of the data is controlled by an external company.
Both cloud storage and local storage may be hacked, however, typically cloud storage will be more secure
Companies and organisations will need to consider the level they trust an external company to hold their data

86
Q

How are the data transfer speed? (cloud storage)

A

With a fast connection and a small office document this may happen in a few seconds
However, with files such as those used in video editing it may take hours to open or save files to cloud storage.
Local storage is very fast to transfer data