Test 1- 22nd April Flashcards

1
Q

What is the CPU?

A
  • Central Processing Unit
  • is the electronic circuitry that executes instructions comprising a computer program.
  • the CPU performs basic arithmetic, logic, controlling, and input/output operations specified by the instructions in the program
  • the processing power of the CPU depends on different characteristics like its clock speed, number of cores and cache size.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the CU do?

A

-Control Unit

  • the control unit is in overall control of the CPU
  • main job is to execute program instructions by following fetch-decode-execute cycle.
  • it controls the flow of data inside the CPU (to registers, ALU, cache) and outside CPU (to main memory and input/output devices)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the ALU do?

A

-Arithmetic Logic Unit

  • The ALU does all the calculations
  • it completes simple addition + subtraction, compares the size of numbers and can do multiplication and divisions using repeated addition and subtraction.
  • It performs logic operations such as AND, OR and NOT
  • and binary shifts (computers use binary data)
  • it contains the accumulator register.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the cache do?

A
  • the cache is a very fast memory in the CPU
  • it is slower than the registers but faster than RAM
  • It stores regularly used data so that the CPU can access it quickly the next time its needed.
  • When CPU requests data, it checks the cache first to see if data is there.
  • if not, it will fetch from RAM.
  • Cache have a very low capacity and are expensive compared to RAM and secondary storage.
  • There are different levels of cache memory- L1, L2, L3.
  • L1 is quickest but has lowest capacity, L2 is slower but has more capacity than L1, L3 is the slowest but has the highest capacity.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the function of the PC?

A
  • Program Counter

- Holds the memory address of the instruction for each cycle.

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

What is the function of the MAR?

A
  • Memory address register
  • holds any memory address about to be used by the CPU.
  • The address might point to data or a CPU instruction.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the function of the MDR?

A
  • Memory data register
  • holds the actual data or instruction.
  • This may have been fetched from memory or be waiting to be written to memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the accumulator do?

A

-stores intermediate results of calculations in the ALU

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

Describe the fetch part of the “fetch-decode-execute” cycle:

A

Fetch Instructions:

1) Copy memory address from the PC to the MAR
2) Copy the instruction stored in MAR address to MDR
3) Increment (increase) the PC to point to the address of the next instruction, ready for next cycle.

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

Describe the decode part of the “fetch-decode-execute” cycle:

A

Decode Instructions:

  • The instructions in MDR is decoded by CU.
  • The CU may then prepare for the next step, e.g. by loading values into the MAR or MDR.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Describe the execute part of the “fetch-decode-execute” cycle:

A

Execute Instructions:

1) The instruction is performed.
2) This could be: load data from memory, write data to memory, do a calculation or logic operation, change address in PC or halt program.

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

Describe the full “fetch-decode-execute cycle”:

A

Fetch Instructions:

1) Copy memory address from the PC to the MAR
2) Copy the instruction stored in MAR address to MDR
3) Increment (increase) the PC to point to the address of the next instruction, ready for next cycle.

Decode Instructions:

  • The instructions in MDR is decoded by CU.
  • The CU may then prepare for the next step, e.g. by loading values into the MAR or MDR.

Execute Instructions:

1) The instruction is performed.
2) This could be: load data from memory, write data to memory, do a calculation or logic operation, change address in PC or halt program.

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

What is a LAN?

A

-Local Area Network:

  • A LAN covers a small geographic area located on a single site
  • all hardware for LAN is owned by the organisation that uses it.
  • LANS can be wired (with Ethernet) or wireless (WiFi)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Explain some advantages of using LAN:

A
  • Sharing files is easier- network users can access same files.
  • They can work collaboratively on files
  • You can share the same hardware (like printers) on a LAN
  • Internet connection can be shared between every device connected to LAN
  • You can communicate with LAN users cheaply and easily, e.g. with instant messaging.
  • User accounts can be stored centrally, so users can log in from any device on the network.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a WAN?

A

-Wide Area Network:

  • A WAN connects LANs that are in different geographical locations.
  • Organisations have to hire infrastructure (communication lines) from telecommunication companies who own and manage the WAN.
  • WAN is more expensive to set up than LAN.
  • WANs may be connected using fibre optic or copper telephone lines, satellite links or radio links.
  • The internet is one big WAN.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What factors affect the performance of a network:

A

1) Bandwidth- the amount of data that can be transferred in a given time. The greater the bandwidth, the better the network can perform.
2) Available bandwidth- shared between users on network, too many users or heavy use may cause congestion and slow the network. You can limit bandwidth available ti individual users to address this.
3) Latency- measures the time it takes for some data to get to its destination across the network. It is usually measured as a round trip delay - the time taken for information to get to its destination and back again
4) Wired connections are generally faster and more reliable than wireless- fibre optics can give much better performance than copper cables. Wireless performance depends on signal quality so is affected by range and amount of interference, and physical obstructions.

17
Q

What is the function of a NIC?

A
  • Network Interface Controller
  • is an internal piece of hardware that allows a device to connect to a network.
  • They exist both wirelessly and wired connections.
18
Q

What is the function of a switch?

A
  • Switches connect devices on a LAN.
  • they receive data in units called frames from one device
  • and transmit this data on the network with the correct MAC address.
19
Q

What is the function of a router?

A

Routers are responsible for transmitting data between networks- they are always connected to at least two different networks.

Routers have a crucial role in directing data on the internet, into units called packets, to their destination.

They connect the LAN to the Internet.

20
Q

What are ethernet cables?

A
  • Ethernet cables are used to connect devices in a LAN
  • The most common ethernet cables are CAT5E and CAT6
  • They are ‘twisted par’ cables containing four pairs of copper wires which are twisted together to reduce internal interference.