TM112 - Introduction To Computing 2- TMA03 (Marked) TMA03 TM112 TMA03 TM112 Question 1 Within a HDD are sectors that can store 512 bytes of data which are grouped together into a cluster, a file’s size could take up a few clusters although not using all the sectors capacity leaving slack space, c...
tm112 introduction to computing 2 tma03 marked tma03 tm112 tm112 tma03 within a hdd are sectors that can store 512 bytes of data which are grouped together into a cluster a file’s size could ta
Within a HDD are sectors that can store 512 bytes of data which are grouped together into a cluster, a
file’s size could take up a few clusters although not using all the sectors capacity leaving slack space,
continuing to store file’s as such till it’s non-contiguous causing the PC to slow down but a defragging
utility will more chucks of files together optimizing speeds.
Partitions are created for the OS’s FAT or NTFS as an index of clusters in use, unallocated or when a file has
been deleted but doesn’t waste time removing the files but make’s the cluster vacant to be over written
and can prove useful for file recovery after an accidentally deleting.
For security before you throw away a HDD the data must be cleared through either overwriting the disk
with zeros and ones, degaussing data magnetisation on HDD’s using a magnetic field or physical
destruction.
(words 150)
Question 2
a)i)
>> show definition
>>>Prompt for user input
>>>If the glossary contains this word, print the definition of the entry
>>>Otherwise, print the entry was not found in glossary
ii)
def look_up_definition():
""" Ask's user for a word to define and
returns the definition if there is one.
"""
entry = input('Please enter your word: ')
if entry in glossary:
print('The definition of ', entry, 'is ', glossary[entry])
else:
print(entry, 'not found in glossary')
, iii)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ELITESOLUTIONS. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £7.75. You're not tied to anything after your purchase.