2019/20 Computer Science AS Flashcards

1
Q

Define Procedure

A

A procedure is a self contained set of commands that can be called from different parts of a program. They can be used for breaking code down into manageable sections (easier to read, debug and maintain), and preventing duplicating sections of code.

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

Difference between a constant and variable? Pros And Cons?

A

Constant= fixed value, variable= changes.
Constants: Value can’t be accidentally changed, the program will run faster, If value needs to be changed, it is easier to change it, as it only needs to be changed once.

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

Explain the bus topology and some advantages and disadvantages…..

A

Bus Topology:
All devices are connected to a backbone cable.
All devices have equal rights to the resources.
If more than 1 device tries to send data a collision occurs, where all devices withdraw the data they sent then a random timer is set (so they don’t keep colliding) and it tries again after a certain time.

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

Explain the star topology and some advantages and disadvantages…..

A

Star Topology:
Middle hub is surrounded by computers/ devices.
The switch reads the MAC addresses, and sends it to the appropriate device.
Downside= If the hub goes down the whole network won’t work.

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

Explain the ring topology and some advantages and disadvantages…..

A

Ring Topology:
Data travels in 1 direction in a “Token”.
No data collisions, as the token is the only thing that can take data around.
Each device will take the data and check if it’s for them, if it is, the token will change to read, go back to the user and then continue to be free, circling around again.
If the data is not for the device, the token will keep going round the loop, checking each device

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

What does NIC stand for & What does it do?

A

NIC= Network interface Card

Hardware which allows your computer to connect to the internet.

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

Explain The Client server Model….

A

Client Server model- 1 server in the middle that the computers access data from. Stores info such as user login.

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

Explain The P2P Network

A

P2P- No central server, users dedicate a portion of resources, Bandwidth, processing power etc, so each computer acts as a client and a server. Devices between the network have equal access, and this could be used in small offices, or in a small department of a large company.

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

What are 2 negatives to P2P Networking……

A

More access points for the outside world, so easier to hack

Everyone’s equal idea (no one can have more access rights)

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

Explain Packet switching

A

Packet Switching:
Data is split into packets, 500-1500 bytes, including a header to re order at the end. The packets take the fastest route possible, and are reordered at the end.

If data is intercepted, the hacker has not got all the data. Also, if a route is broken the packets can take a different route.

However the reordering takes time and it’s not good for small amounts of data, as the header takes up a lot of space.

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

Explain Circuit Switching

A

Circuit Switching:
Electronically connected
Doesn’t need a header and gets a dedicated line, and the full bandwidth.
However, the data is easier to intercept, as it isn’t split up, and a portion of the network is made unavailable while there is a connection.
An example of this is the old telephones (POTS).

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

What are the 3 types of storage?

A

Solid state, optical, and Magnetic

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

Define device Driver.

A

Device driver= Software that allows the device to operate

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

What is ROM?

A

Read Only Memory, where BIOS/ firmware is stored, non volatile.

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

What is BIOS?

A

BIOS= Basic Input Output System (Firmware), controls basic functions. The first thing to spring into action, waking everything up, checking settings.

Then it will run POST (Power On System Test) Then it will check for a drive with OS. MBR can only support up to 2 Tb (Master boot Record).

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

What is UEFI, and why is it better than BIOS?

A

Unified Extensible Firmware Interface, faster, can use graphical interface, can deal with extremely large amounts of data.

17
Q

Explain RAID 5

A

RAID 5=Protecting Data, 3 drives needed, 1 for rebuilding the array if it fails. Reeds very quickly, without a RAID controller writing is slow, and rebuilding the array takes time.

18
Q

Explain RAID 6

A

RAID 6= More Durable than R5. 4 Drives min, 2 for redundancy, can survive 2 drive failures. Much slower to write than RAID 5. Cant run unless you have a complex RAID controller.

19
Q

What is ASCII?

A

American Standard Code for Information Interchange

Represents alpha numerical data
Works like any other code, one thing represents another
Binary is used to present out numbers, letters and symbols

ASCII includes definitions for 128 characters 33 non printing (affecting how text and space is processed)
95 printable characters including space

20
Q

What is Parity?

A

The 8th bit is called a parity bit, which can be a 1 or 0 to make the code odd or even (by counting the number of 1s).

This makes sure that it doesn’t change when transmitted, as the bit would turn from even to odd parity.

However, this does prevent bits from changing places.

21
Q

What is Unicode?

A

First 128 codes are the same as ASCII so it’s backwards compatible.

Unicode- more characters represented but larger file sizes and data transmission times.

ASCII- Limited to Latin character set but smaller file sizes and transmission files.