Chap 3 - hardware Flashcards

1
Q

define CPU

A

central processing unit
-executes/ processes instructions & data in the comp.
-consist of control unit (CU), arithmetic & logic unit (ALU), memory unit (registers) & buses, cache memory

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

examples of instructions that can be executed by CPU

A

-video calls
-instant message
-opening application e. Spotify

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

difference btw processor & microprocessor

A

processor - do many tasks
microprocessor - does only 1 task

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

2 types of computers & what are they

A

1) Fixed program computers:
-specific functions
-can’t be reprogrammed
eg. calculators
2) Stored program computers: Von- Neumann architecture
-carry out diff tasks/ applications stored in them

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

characteristics of Von- Neumann architecture

A

-Must have a processor/s
-has CPU, memory & storage
-Processor must talk directly to Memory ( RAM)
-Memory contains stored program that has instructions & data
-Each instruction is executed line by line

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

what is stored program

A

-program stored in RAM which has instructions & data
-instructions are loaded from storage to RAM
-instructions are executed line by line

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

use of control unit (CU) in CPU

A

-sends control signals to synchronize execution of instruction & data movement
-uses system clock to produce timing signals on control bus, else the comp will crash

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

uses of memory unit (registers) in CPU

A

-made of registers that are used for storing immediate result temporarily during fetch, decode & execute cycle
-PC, MAR, MDR, CIR, ACC

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

use of arithmetic & logic unit (ALU), in CPU

A

-carry out arithmetic & logical operations of binary no.
-NOT A REGISTER

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

define system buses

A

buses used to transmit data through parallel transmission
-parallel = data not arrived in order, faster than serial

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

types of system buses & their directions (they’re all parallel transmission)

A

-address bus - unidirectional = from CPU to RAM - memory address of instructions
-data bus - bidirectional = from CPU to RAM & RAM to CPU
-control bus - bidirectional = sends and received control signals to & from components

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

types of register & their uses

A

-program counter (PC) - stores address of next instruction
-memory address register (MAR) - stores address of memory location currently being read form/ written to
-memory data register (MDR) - stores data that is has just been read from memory/ data about to be written to memory
-current instruction register (CIR) - stores current instruction being decoded & executed
-accumulator (ACC) - stores data temporarily while ALU does calculations

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

which registers belong to which unit in the CPU

A

-PC = memory
-ACC = ALU
-MAR = memory
-MDR = memory
-CIR = control unit

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

Fetch, decode & execute process

A

-CPU fetches data & instructions & stores them in Immediate Access Store (IAS)
-memory address of NEXT instruction is stored in PC from RAM
-address is loaded to MAR which is loaded into address bus
-contents of memory address is loaded from data bus into MDR
-data is loaded in CIR.
-Control Unit decodes instruction using instruction set into opcode & operand
-instructions are sent to ALU which executes it. ACC temporarily holds data while ALU executes them
-PC value is loaded onto MAR & process continues until all instruction are executed
fetch: get data from RAM
decode: decode instruction to be interpreted
execute: CPU passes decoded instructions to components by a set of control signals

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

How to write correct binary for MAR & MDR

A

-find binary in address column for MAR
-find binary in contents next to address binary for MDR

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

factors that affect the performance of a CPU

A

-clock cycles
-width of system buses
-cache memory
-CPU cores

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

define cache memory

A

memory in the CPU that stores frequently used instructions & data that need to be accessed faster
-CPU checks cache before checking RAM

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

how does clock cycles affect the performance of a CPU

A

-increasing clock speed, increases CPU speed
-heat processor up = unreliable performance
-not good to overclock CPU beyond its normal design

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

how does width of system buses affect the performance of a CPU

A

-increasing bus width, increases CPU speed

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

how does cache memory affect the performance of a CPU

A

-increasing cache memory, increases CPU speed
-can store more data that is frequently used

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

how does CPU cores affect the performance of a CPU

A

-increasing CPU cores, increases CPU speed
-multi processing = more fetch, decode & execute cycles per second
-1 core has ALU, CU & registers
-CPU needs to communicate with each core = reduce overall performance

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

define clock cycles

A

no. of CPU/ fetch, decode & execute cycles in 1 second
-synchronizes diff operations
-each clock cycle send out a clock or timing signal
-based on the system clock

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

define overclocking

A

-increasing the clock speed of a comp
-clock speed can be changed by altering settings in Basic input/ output system (BIOS)
-executing instructions outside of comp limits can cause unsynchronized operations = frequent crashing
-leads to lot of overheating = unreliable performance

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

purpose of primary & secondary storage

A

primary - volatile, stores data currently used by CPU
secondary - non- volatile, stores data not currently used by CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
why does a comp need RAM
store date temporaily -store data currnetly in use -so data can be accessed faster
26
characteristics of primary storage that makes it primary storge
directly accessed by CPU
27
all sensors
-temp. - temp. change; monitoring temp of paracetamol -pressure - pressure applied; detect presence of car when pressure is applied -gas - detect gas level present; monitor pollution, detect leaks in ac -radiation level - radiation; in nuclear power plants -humidity - water vapor in air; determine weather for weather stations -level - ultrasonic to detect change in level of liquid(level of liquid); monitor levels in petrol tank of car -light - light intensity; street light on & off -accelerometers - acceleration; to apply airbags in car when rapid deceleration, switch phone btw portrait & landscape -proximity - detect nearby obj. within distance; face is close to mobile screen -infrared (passive) - heat radiation given by obj.; security alarm - detect body heat -infrared (active) - when invisible radiation beam is broken, detect change in infrared radiation; security alarm- intruder breaks beam -motion - motion; detect people entering for lighting systems -colorimeter - colour; in chemical reactions -pH - acidity; making paracetamol -acoustic - convert detected sound into electrical signals; security alarm- pick up footsteps -moisture - water levels in; water level in soil to operate pumps -mag. field - mag. field changes; anti lock braking systems in car -flow - flow rate of liquid/ gas (amount of liquid); flow of liquid in chemical reaction -OCR - converts image text into digital data; camera
28
use of output devices
show information processed by computer
29
all input devices
-bar code scanner -QR code scanner -Digital camera -keyboard -microphone -optical mouse -touch screen -2D & 3D scanner -sensors
30
all output devices
-actuator -DLP projector -LCD projector -inkjet printer -Laser printer -LED screen -LCD screen -speaker -3D printer
31
types of data storage
-primary = RAM, ROM, cache memory -internal & external secondary = HDD, SDD, optical drives -virtual memory -cloud storage
32
difference btw primary & secondary storage
primary: -directly accessed by CPU -volatile except for ROM -smaller size -more expensive secondary: -not directly accessed by CPU -non- volatile -bigger size -less expensive
33
define what volatile
data is lost when device is powered off
34
what is ROM
-Read only memory -stores BIOS
35
what is RAM
-Random access memory -stores programs & data currently running -static & dynamic
36
difference btw static & dynamic RAM
dynamic: DRAM -made up of capacitors (ABCD) -needs constant charging -slower -uses more power = power needed for a separate circuit to refresh constantly -less densely packed -less expensive static: SRAM -made up of transistors (STUV) -no charging needed -faster -less power consumption -more densely packed -more expensive
37
difference btw RAM & ROM
RAM: -temporary memory -can be used to read & write -stores programs & data currently run/ processed ROM: -permanent memory -can only be read from -stores BIOS
38
relationship btw RAM size & comp speed
larger RAM size = comp operates faster
39
examples of uses of ROM
-store factory settings -store set routines -store 'start up' routines
40
examples of uses of RAM
-playing a video -playing music
41
note: magnetic storage = Hard Disk Drive (HDD)
42
how does HDD work
-the platter rotates whiles the read- write head reads or writes the data -data is stored in sectors & tracks -slower data access than RAM -has latency = time taken for specific block of data to rotate around the read- write head -data needs to be refreshed
43
how does Solid State drives (SSD) work
-made up of flash memory chips with NAND/ NOR -data doesn't needs to be refreshed
44
how does optical media work
-the disk has pits & lands which can be detected as binary using a laser -uses a read & write head like HDD
45
difference btw HDD & SSD
HDD: -has movable parts -movable parts cause friction & heat = slower -less expensive -more storage -moving parts = less durable SDD: -has flash memory chips -NAND chips used to make flash memory are faster -more expensive -less storage -more durable
46
differences btw CD, DVD & blue ray disk
CD: -use infrared laser -least storage = 800MB -least expensive -used for storing small audio files & programs DVD: -use red laser -more storage than CD = 4GB -more expensive than CD -used for storing SD videos & movies Blue ray: -use blue laser -most storage = 25 GB -most expensive -used for storing ultra HD movies & large files
47
what is virtual memory & how does it work
-oldest (first) data is moved into HDD or SSD instead of RAM when RAM doesn't have anymore space in it -HDD is partitioned, data is divided into pages that are sent form RAM to HDD to be temporarily stored until they're required
48
benefits & drawbacks of virtual memory
benefits: -programs larger than physical memory can be executed -no need to waste memory on data not being used -reduces need to buy more expensive RAM memory drawbacks: -comp runs more slowly - comp needs to swap data btw RAM & HDD/ SSD -virtual memory stakes up space in HDD that could be used to store files -system runs away slowly when comp relies on virtual memory heavily
49
what is could storage, types & how does it work
-when data is stored on remote servers -physical environment is owned & managed by a company host public cloud - storage environment where customer & storage provider are diff companies private cloud - storage provided by a dedicated environment behind the company firewall hybrid cloud - combination of public & private clouds -NOT A SECONDARY STORAGE TYPE
50
benefits & drawbacks of cloud storage
benefits: -unlimited storage -can be accessed from anywhere using internet -more reliable data recovery -less expertise needed for management drawbacks: -needs internet access -can be hacked -long term costs add up as subscription is needed -limited file support
51
benefits & drawbacks of storing data on cloud than locally
benefits: -cheaper than buying local hardware drawbacks: -limited file support
52
note: anything that is downloaded & installed is stored on the hard drive = non- volatile, can override data
53
note: CPU - RAM - HD
54
what does a 3.5 GHz processor mean
-processor can run 3.5 billion fetch, decode & execute cycles per second
55
2 ways to join a network
-NIC -ethernet
56
define NIC
-network interface card -needed to allow a device to connect to a network & send & receive data over it -contain MAC address -WNIC - wireless; converts wireless signals into a msg that CPU can understand -land NIC - wired
57
define MAC address
-identifies the physical address of a device on the network (never changes) -needed to connect to a network -Media Access Control -in hex, 48 bits in 6 groups of 2 -first 6 is manufacturer's code, last is device's serial number
58
define IP address
identifies the global address on the internet
59
how are IP addresses assigned
-when a device connects to a pvt network, they're given a pvt IP which is unique in that network but may be the same as another device in another network -when router connects to internet, it is given a unique IP address by ISP -all devices connected to the router has the same pub IP as the router but but each have their own diff pvt IP -ASSIGNED BY ROUTER LOCALLY OR ISP
60
IPv4
-in denary -32 bits, 4 octoates, 8 bits per octoate (no matter how small) -0 to 255 per octoate 2 ^ 32 possible combiantions
61
IPv6
-in hex -128 bits, 8 octoates 2 ^ 128 possible combinations
62
advantages of IPv6 to IPv4
-removes risk of IP address collisions -has built in authentic checks -allows for more efficient packet routes
63
differences btw MAC & IP
MAC: -unique for device -can be universal or local -uses 48 bits IP: -may not be unique -Dynamic IP changes every time device connects to internet; static IP doesn't change -can be 32 or 128 bits
64
differences btw Pvt & pub IP
pvt: -assigned by router locally -changes -managed manually pub: -provided by ISP -fixed -1 network has 1 public IP for all devices for internet access
65
static IP
-IP permanently assigned to a device by the ISP; don't change each time device logs on the network
66
dynamic IP
-IP assigned temporarily to a device by the ISP; changes every time device logs on the network -assigned using a Dynamic Host Configuration Protocol (DHCP)
67
where are static Ip assigned in
-remote servers which host a website -online database
68
differences btw static & dynamic IP
dynamic: -IP can change -IP is automatically assigned by setting a range -used for larger networks -better privacy; Ip changes each time -has lease time static: -IP cannot change -IP is manually assigned -used for small networks & servers -each device is fully traceable -allows of faster upload & download speed; can access websites directly no lease time
69
roles of a router
-finding path to the destination -forwarding packets -assigned IP addresses to devices in a network
70
note: you can have multiple networks on a router