0
0
Operating Systemsknowledge~10 mins

Free space management in Operating Systems - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the sentence to describe free space management: <br> Free space management keeps track of {{BLANK_1}} on a storage device.

Operating Systems
Free space management keeps track of [1] on a storage device.
Drag options to blanks, or click blank then click option'
Afree space
Bused space
Cfile names
Dfile permissions
Attempts:
3 left
๐Ÿ’ก Hint
Common Mistakes
Confusing free space with used space.
Thinking it tracks file names or permissions.
2fill in blank
medium

Complete the sentence: <br> One common method of free space management is the {{BLANK_1}} method, which uses a list to track free blocks.

Operating Systems
One common method of free space management is the [1] method, which uses a list to track free blocks.
Drag options to blanks, or click blank then click option'
Aindexed allocation
Blinked list
Ccontiguous allocation
Dbitmap
Attempts:
3 left
๐Ÿ’ก Hint
Common Mistakes
Choosing bitmap instead of linked list.
Confusing allocation methods with free space tracking methods.
3fill in blank
hard

Fix the error in the statement: <br> The bitmap method uses a {{BLANK_1}} to represent each block's status as free or used.

Operating Systems
The bitmap method uses a [1] to represent each block's status as free or used.
Drag options to blanks, or click blank then click option'
Abit
Bfile descriptor
Clinked list
Dbyte
Attempts:
3 left
๐Ÿ’ก Hint
Common Mistakes
Choosing linked list which is a different method.
Choosing byte which is larger than needed.
4fill in blank
hard

Fill both blanks to complete the description: <br> In the bitmap method, each {{BLANK_1}} in the bitmap corresponds to a {{BLANK_2}} on the disk.

Operating Systems
In the bitmap method, each [1] in the bitmap corresponds to a [2] on the disk.
Drag options to blanks, or click blank then click option'
Abit
Bblock
Cfile
Ddirectory
Attempts:
3 left
๐Ÿ’ก Hint
Common Mistakes
Confusing file or directory with block.
Thinking bitmap uses bytes instead of bits.
5fill in blank
hard

Fill all three blanks to complete the code snippet for free space management: <br> free_space = {{BLANK_1}}(size) <br> for i in range(size): <br> ย ย ย ย if free_space[{{BLANK_2}}] == 0: <br> ย ย ย ย ย ย ย ย allocate_block({{BLANK_3}})

Operating Systems
free_space = [1](size)
for i in range(size):
    if free_space[[2]] == 0:
        allocate_block([3])
Drag options to blanks, or click blank then click option'
Abitarray
Bi
Dlist
Attempts:
3 left
๐Ÿ’ก Hint
Common Mistakes
Using bitarray without importing or defining it.
Using wrong variable names instead of i.