Chapter 7: Files & Input Flashcards

1
Q

Why shouldn’t files be ‘opened’ for too long?

A

When a file is open, they can easily be corrupted, thus they should be kept open for the shortest time possible.

This is because, if the solution crashes, the file will be corrupted/damaged if the file is open.

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

Why is security required?

A

As files can contain sensitive user information (usernames & passwords), leaving a file unprotected can be dangerous as someone can access the file DIRECTLY rather than through the solution.

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

What are some security measures to put into place to prevent unauthorised access?

A

1) Encryption
2) Files can be password protected
3) Files can be placed into folders that are only accessible by the administrator

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

Define archiving

A

The process of removing unwanted files to be accessed to another storage place that can securely store them for a LIMITED amount of time, for instance Recycle bin.

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

Why is archiving necessary?

A

Because storage space is LIMITED. It is necessary to remove the files that you no longer need.

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

What are some threats to data?

A

1) Accidental
2) Event-based
3) Deliberate

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

What is involved in performing a backup?

A

1) Simple as making a copy -> placing it in a secure location

2) The frequency of the backup DEPENDS on
- how much data is there to backup
- facilities available
- how valuable the data is

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

What is Version Control Software (VCS)?

A

Applications that help organisations keep track of their backup versions, which is vital for managing backups.

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

What is the use of a Uninterrupted Power Supply (UPS)

A

In the event of a power outage, a UPS can keep a server running for enough time to complete an (up-to-date) backup and for the system to SAFELY SHUTDOWN without damaging any files.

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

How does a full backup work?

A

Data is copied to the backup media

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

Advantage of full backup

A

A full backup is able to restore the ENTIRE set of data at once

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

Disadvantages of full backup

A

1) Time consuming if there is a large amount of data to backup

2) Requires a medium (e.g. usb) which can store the combined size of all the files -> EXPENSIVE

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

When should a backup be performed?

A

Usually at the end of the day. BECAUSE:

-> because the backup can interrupt the procedure

-> it can take a long time to complete, which is why they are generally performed at night

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

What should you consider when backing up?

A

The backup media should be able to ACCOMMODATE the size of the backup, without having to swap or change the media in between/during the backup process.

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

How does a Differential backup work?

A

1) A full backup is made
2) Subsequent backups only contain the FILES that have changed

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

Advantages of differential backup

A

1) Only 2 backups are made, (the full backup and the most recent differential backup)

2) The process of completing daily backups is more simpler and quick

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

Disadvantages of differential backup

A

1) RESTORING the backup is more complex than restoring a full backup

2) to FULLY RESTORE the backup,
the full backup needs to be restored and also the most recent differential backup

3) When the number of files grow, the size of a differential backup will be too large to handle, and thus will require ANOTHER FULL BACKUP

18
Q

How does an incremental backup work?

A

1) Full backup is made
2) The Subsequent backups consist of changes to the previous incremental backup.

19
Q

What is the advantage of incremental backup?

A

The BACKUP process is fast and efficient

20
Q

What are the disadvantages of using incremental backup?

A

to RESTORE, it takes longer/is more complicated because the full backup needs to be restored + ALL the incremental backups in order.

21
Q

What does the backup media Cloud Storage involve?

A

Moving the data to the cloud storage on a regular schedule, or manually, such as Google drive, Onedrive.

22
Q

Advantages of using Cloud Storage of backup media

A

1) Independent of physical media and only relies on the accessibility of the CLOUD SERVER

2) RETRIEVING the backup just requires you to connect to the cloud server and transferring the required files.

23
Q

Disadvantages of using Cloud Storage

A

During a power outage, you cannot access the data

24
Q

Advantages of using Tape backup as backup media

A

1) Holds onto data for a really long time
2) Cheap
3) Portable and small
4) Easy to store compared to other physical media
5) many formats involve encryption

25
Q

Disadvantages of using Tape backup

A

Time consuming, limited space

26
Q

Advantages of using hard disk as a backup media

A

1) Performing a backup is quick
2) Large capacity
3) Portable
4) Can be connected to an information system

27
Q

Disadvantages of using a hard disk as a backup media

A

1) Can be easily damaged
2) Volatility
3) Do not retain data for a long period of time

28
Q

Advantages of using SSD (Solid State Drive)

A

1) Highly portable
2) Easy to transport
3) Less likely to be physically damaged
4) Speed is relatively good

29
Q

Disadvantages of using SSD (Solid State Drive)

A

1) Information on their ability to retain data is limited
2) Very expensive
3) Data recovery is difficult if a SSD FAILS

30
Q

What are the factors you should consider

A

1) Backups should be easily accessible

2) Despite backups, there will still be a version gap between the data that has been lost and the last backup

3) At least one backup should be kept OFFSITE in the event of a disaster

4) MULTIPLES of backup media should be produced in case a media fails

5) A backup procedure should include a detailed procedure.

31
Q

What are Data Structures?

A

The ways that data can be stored to enable efficient algorithms to be used to optimise program execution time.

32
Q

How do arrays work?

A

A set of data elements under the same name, where they can hold any type of data (SAME TYPE, for instance only strings or only numbers),
Accessed via a index starting from 0

33
Q

Advantages and disadvantages of Arrays

A

Advantages

1) Easy to use
2) Every Language supoorts them

Disadvantages:

1) Array elements need to be of the same type, which is why records can be used

2) The size of an array can make it time consuming to navigate

34
Q

What are the advantages/disadvantages of using dictionaries?

A

Users can access both the key and value,

however, only one value is stored per key, which also has to be unique

35
Q

What are classes?

A

Objects that have a number of methods and events associated within it

They can be duplicated as many times as required

You can declare objects within a particular class and it can be referenced on its own

36
Q

Advantages and disadvantages of classes

A

1) Useful when a large number of objects needs to be created, or when standard variables would be difficult to use

Shortcoming:
- Can be hard to define initially

37
Q

What is the difference between records and arrays?

A

Records are structures that can used to group together variables for a particular purpose.

While an array usually contains elements of all the same variable type, the fields within a record may be of different types + sizes.

38
Q

What are stacks and how do they work?

A

One-dimensional array of values that are accessed in a particular way.

-> Works on the principle First in Last out (FILO)
-> A ‘push’ function adds data to the top of the stack
-> A ‘pop’ function removes data from the top of the stack

THE ELEMENT THAT IS INSERTED FIRST, COMES OUT LAST

39
Q

What are the advantages and disadvantages of using stacks?

A

As they use FILO, they are useful in executing code and backtracking through “call to functions” once they have been completed.

The disadvantage is that they are limited in size.

40
Q

What are linked lists and how do you create/use them

A

Data structure that maintains itself in order at all times. (BASICALLY SORTED ARRAYS). The elements are placed in the correct order STRAIGHT AWAY, which is better than using arrays where they are unsorted and you need to use sorting algorithms to sort them in order.

To create a linked list,you need 2 lists:

1) One to store the required information
2) One to store the links which will point to the next array element

41
Q

advantages and disadvantages of using linked lists

A

Benefits:
1) Very large
2) Elements are added in order

Shortcomings:
1) Maintaining the list can be difficult, but arrays are even harder

42
Q

What is a data structure

A

A way of organising data in a computer so that it can be used effectively\