Module: TM112
Assignment: TMA 03
Page 1 of 15
,Question 1
a. Given that the hard drive has 100GB of data stored,
100GB = 100 000MB
100 000MB / 200MB/s = 500s
500s/ 60 = 8.33
It will take 8.3 minutes to write 100GB of data.
b. When a file is deleted in the recycling bin, or if one right clicks on the
recycling bin and chooses the option to empty recycling bin, then the
file is permanently deleted and is not recoverable.
c. SSDs contains a storage cell with limited life expectancy. Each time
new data is added, the old must be deleted and with time this wears
down the cells and according to Moukine (2018), it only takes a small
percentage of bad sectors for data loss to occur. As SSD use flash
memory there is no physical location for data to be stored.
In contrast, a HDD stores data on spinning disks thus making it
relatively easier to recover data from a physical drive.
Word count: 84
Page 2 of 15
, Question 2.
a.i.
from random import
# Glossary setup
Give option to view flashcard, quit or view definition
If view flashcard is selected
Print random word from glossary
If view definition is selected
Print definition
If quit is selected
Quit
The algorithm uses the pattern 4.4: case analysis (nested case).
a.ii. the program would be tested by running the program several times,
trying each input options, ‘s’ for new flashcard, ‘q’ to quit and ‘return’ to
ensure the output shows correct depending on what was shown first, the
definition or entry.
Page 3 of 15
Assignment: TMA 03
Page 1 of 15
,Question 1
a. Given that the hard drive has 100GB of data stored,
100GB = 100 000MB
100 000MB / 200MB/s = 500s
500s/ 60 = 8.33
It will take 8.3 minutes to write 100GB of data.
b. When a file is deleted in the recycling bin, or if one right clicks on the
recycling bin and chooses the option to empty recycling bin, then the
file is permanently deleted and is not recoverable.
c. SSDs contains a storage cell with limited life expectancy. Each time
new data is added, the old must be deleted and with time this wears
down the cells and according to Moukine (2018), it only takes a small
percentage of bad sectors for data loss to occur. As SSD use flash
memory there is no physical location for data to be stored.
In contrast, a HDD stores data on spinning disks thus making it
relatively easier to recover data from a physical drive.
Word count: 84
Page 2 of 15
, Question 2.
a.i.
from random import
# Glossary setup
Give option to view flashcard, quit or view definition
If view flashcard is selected
Print random word from glossary
If view definition is selected
Print definition
If quit is selected
Quit
The algorithm uses the pattern 4.4: case analysis (nested case).
a.ii. the program would be tested by running the program several times,
trying each input options, ‘s’ for new flashcard, ‘q’ to quit and ‘return’ to
ensure the output shows correct depending on what was shown first, the
definition or entry.
Page 3 of 15