Complete the code to identify the file allocation method that stores files in consecutive blocks.
method = "[1]" # This method stores files in consecutive blocks on disk.
The contiguous allocation method stores all blocks of a file in consecutive order on the disk, making access fast and simple.
Complete the code to name the file allocation method that uses pointers to link file blocks.
method = "[1]" # This method stores file blocks linked by pointers.
The linked allocation method stores each file block with a pointer to the next block, forming a chain.
Fix the error in the code to correctly identify the file allocation method that uses an index block.
method = "[1]" # This method uses an index block to store all block addresses.
The indexed allocation method uses a special index block that contains pointers to all the file's blocks, allowing direct access.
Fill both blanks to complete the description of the linked allocation method.
In linked allocation, each file block contains [1] to the next block, and there is no need for [2] storage.
Linked allocation stores a pointer in each block to the next block, so it does not require extra index storage like indexed allocation.
Fill all three blanks to complete the dictionary that maps allocation method names to their descriptions.
file_methods = {"contiguous": "Stores files in [1] blocks", "linked": "Uses [2] to link blocks", "indexed": "Uses an [3] block"}The dictionary describes each method: contiguous uses consecutive blocks, linked uses pointers, and indexed uses an index block.