A Level Computer Science chapter 3 Flashcards

(45 cards)

1
Q

What is the purpose of secondary storage

A

to store data/files/ long term data

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

What is the need for primary storage?

A
  • To store boot-up insturctions
    -To store immediate/current data being calculated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an embedded system.

A

A microprocessor is a combination of hardware and software designed for a specific function within a larger system that performs a specific task.

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

Feautres of an embedded system.

A

Has memory,
input/output abilities.
processor integrated into machine,
not easily changed (by user/owner)
does not have its own operating system
Does not require much proccessing power.

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

What are disadvantadges of an embedded system.

A
  • difficult to change/update firmware by user // difficult to upgrade to take advantage of new technology
  • cannot be easily adapted for another task
  • difficult to update or repair - usually thrown away instead
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does a laser printer work?

A
  • contains a revolving drum that is given an electrical
    charge
  • contents of page (provided by buffer/user) are drawn on drum as an electrostatic charge by a laser beam that moves back and forth
  • the drum is coated with oppositely charged toner which only sticks to areas charged by the laser beam
  • the drum then rolls over electrostatically charged paper, transferring the pattern onto the page
  • paper is passed through a fuser/is heated to seal image
  • the electrical charge is removed from drum, excess toner is collected
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How does a 3D printer work?

A
  • additive manufacturing
  • uses digital 3D model or CAD file
  • builds up model one layer at a time - starting from bottom, using xyz coordinates
    -Filament on the wheel and is fed into the head of the printer into the nozzle.
    -Filament is injected into the nozzle, while the nozzle heats up. Then the melted filament is dispensed.
  • material is fused together layer by layer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does a microphone work?

A
  • has a diaphragm
  • incoming sounds waves cause vibrations about diaphragm
  • this causes coil to move past a fixed magnet
    -the coil cuts the field lines of the magnetic inducing a voltage,
  • electrical signal is produced
    -The electric current generated is then digitised using ADC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do speakers work?

A
  • an electric current is sent to speaker
  • the electric current passes through a coil
  • current in the coil creates an electromagnetic field
  • an electromagnet is repelled by, or attracted to the permanent magnet based on direction of the current in the coil
  • movement of coil causes the diaphragm to vibrate - this vibration creates sound waves
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does a magnetic disk drive work, read and write ?

A

Magnetic Hard Disk
* has platters - divided into sectors and tracks
* surface of disk can be magnetised
* has a read/write head mounted on an arm
* data is encoded as a magnetic pattern
* writing - variation in current in head causes variation in magnetic field on disk
* reading - variation in magnetic field causes variation in current through head

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

Advantadges of a magnetic disk drive?

A

Advantages
* costs less per unit storage (used when large storage capacity is required)
* has more longevity (used with devices that work all the time and have large number of read write operations)

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

Solid State Memory
* uses a grid of columns and rows (arrays/blocks) that has two transistors at each
intersection:
* floating gate - stores voltage (represents either a 1 or 0)
control gate - controls movement of charge/electrons during read/write operations
* not possible to overwrite existing data (need to erase first then write data into location)

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

How does a solid state drive work

A
  • Data is stored in NAND flash memory cells
  • Made up of control and floating transistors
  • Each cell uses a transistor with a floating gate
    -Control gates control the flow of electrons in and out floating gates
    -Floating gates hold/store the electron/voltage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Advantadges of solid state drive.

A

Advantages
- no moving parts - more reliable
- faster data access times

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

How is SDD non volatile (explain how it stores data)?

A

-High voltage is applied to the control gate
-The control gate then forces them into the floating gate
- The floating gate keeps the electrons in position.
- Therefore the storage is non-volatile

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

How does optical Disk work

A
  • a rotating disk with tracks made from a reflective metal layer
  • data is read/written using laser light (either red or blue) that is shone onto the disc and creates pits.
  • data is stored in pits and lands on the track
  • reading - reflected light from different states is encoded as a bit pattern
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How can you re-write a disk

A
  • remove the whole layer of pits then re shine laser to ingroove pits.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Uses of Optical disk

A
  • used for transferring data between devices or as back-up systems
  • can be read-only - used to distribute software, movies or games
  • generally have lower storage capacity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

How does a touch-screen work (resistive and capacitive)

A

Resistive touch screen
* has two layers
* when user touches screen, layers touch and a circuit is completed
* processor determines horizontal and vertical point of contact
* will work if any object touches the screen
Capacitive touch screen
* has several layers
* when top layer is touched, there is a change in the electric current
* a microprocessor identifies the coordinates of touch

20
Q

How does a virtual reality headset work?

A
  • video/data is sent from a computer to the headset
  • the video feed is sent to an LCD/OLED display
  • there are two lenses placed between eyes and screen - allows for focusing and reshaping of video for each eye, creating 3D effect
  • uses an fps of 60 to 120 sensors measure/track movements of user, allowing the video on the screen to react to and mimic movements
  • uses surround sound so sound from speakers appears to come from all directions
  • can also use infrared sensors to monitor eye movement, allows depth of field on screen to be more realistic
21
Q

What is the purpose of a buffer and how does it work

A

Purpose of a buffer
- A buffer is a small temporary storage area in memory (usually RAM) used to hold data while it is being transferred from one place to another.
- To act as temporary storage until it is ready to be transmitted to the device
-The data that is being transferred goes into the buffer and waits until it can be sent to the transferred device
- Reduces waiting time and prevents data loss
- It is used when devices operate at different speeds, allowing the faster device to continue working without waiting for the slower one.
- Allows processes to operate independently of each other.

22
Q

How does buffer work

A
  • instructions and data are sent by computer to buffer
  • data is transferred from buffer to device - allowing the user to continue using the computer, allowing the processor to continue processing
  • When the buffer is empty, an interrupt is sent to the computer, requesting more data
23
Q

What is RAM, what does it do? What does it store?

A
  • primary memory
  • stores currently running part of software/data/OS/programs/processes
  • either static or dynamic
  • can store data about I/0 devices, contents of buffer, or information about current process
24
Q

How does SRAM and DRAM work

A

SRAM - transistors arranged as flip-flops, more complex circuitry
DRAM - uses (a single) transistors and capacitors, stores bits as a charge

25
Why does DRAM need constant refreshing
The capacitor leaks data, so the cells are dynamic
26
What are advantages and disadvantages of SRAM?
- faster access time - because it does not need to be refreshed - used on CPU for performance (used in cache memory) - does not need to be refreshed - consumes less power -Has lower data density
27
Advantages and disadvantages of DRAM?
-costs less per unit - higher storage/data/bit density - more data stored per chip - simpler design - uses fewer transistors - needs to be refreshed - has higher power consumption - slower access speed (used in main memory)
28
ROM
- primary memory - stores start-up instructions/BIOS, firmware, any permanently required data - stores the kernel of the operating system // parts of OS
29
How is ROM used in an embedded system
-Stores data to allow the embedded system to work at its function -bootup instructions -Memory is not lost when power is off, so it stores data - store data that does not change.
30
What is PROM, EPROM, EEPROM?
- PROM - can be set once/programmed once - EPROM - erased using UV light, needs to be removed from the device, can be overwritten multiple times, must be entirely erased to rewrite - EEPROM - erased using voltage (no additional equipment is needed), erased within device, can be overwritten multiple times, does not have to be entirely erased before rewriting, the contents of the firmware can be changed easily
31
What is a control system
-It uses constant feedback loop from input sensors sending data to the microprocessor to produce an action by anactuator, to maintain a condition
32
Role of an actuator.
-generates signal// converts electrical energy into mechanical energy -to produce an action (be specific to situation)
33
Describe what it is meant by an embedded system?
A microprocessor/microcontroller that performs one specific task.
34
Difference between a monitoring and a control system?
A monitoring system does not have an actuator/does not cause electrical energy to be converted into to mechanical.
35
Describe everything you know about HDD, from how it works, read/write etc.
-The hard disk has (one or more) platter/plate/disk -Each surface of the platter/disk is (ferrous oxide which is) capable of being magnetised -The platters/disks are mounted on a (central) spindle -The entire mechanism is contained inside a sealed (aluminium) box. -The disks are rotated (at high-speed) -(Each surface of the disk) has a read/write head mounted on an arm (positioned just above the surface) -Electronic circuits control the movement of the arm (and hence the heads) -The surface of the platter/disk is divided into concentric tracks / circles -The surface of the platter/disk is divided into sectors -One track in one sector is the basic unit of storage called a block -The data is encoded as a magnetic pattern for each block -When writing to disk, a variation in the current in the head produces a variation in magnetic field on the disk -When reading from disk, a variation in the magnetic field produces a variation in current through the head
36
Explain whysomething is an embedded system
It is integrated into the system, and it uses hardware and software to preform one specific task. the system is not easily changed by the owner.
37
Describe one benefit of using EEPROMs in an embedded system.
no additional equipment is needed to change ... enables firmware updates by non-technical users can be erased and reprogrammed several times ... so firmware can be updated ... can erase a particular byte or the whole EEPROM possible to reprogram / update ...without removing it from the device
38
Explain the importance of feedback in a control system.
-to ensure the system operates with the given criteria -... by enabling system output to affect subsequent system input -... thus allowing conditions to be automatically adjusted
39
What is the not gate logic
1 -> 0 0 ->1
40
What is the AND logic
0 0 -> 0 1 0 -> 0 0 1 -> 0 1 1 -> 1
41
OR gate logic.
0 0 -> 0 1 0 -> 1 0 1 -> 1 1 1 -> 1
42
XOR gate logic
0 0 -> 0 1 0 -> 1 0 1 -> 1 1 1 -> 0
43
NOR gate logic
0 0 -> 1 1 0 -> 0 0 1 -> 0 1 1 -> 0
44
NAND gate logic.
0 0 -> 1 1 0 -> 1 0 1 -> 1 1 1 -> 0
45
XNOR gate logic.
0 0 -> 1 1 0 -> 0 0 1 -> 0 1 1 -> 1