Complete the sentence to explain why memory management is important.
Memory management helps to [1] the use of available memory.Memory management maximizes the use of available memory by efficiently allocating and freeing memory blocks.
Complete the sentence to describe a benefit of memory management.
By managing memory well, the system can [1] more programs to run at the same time.Good memory management allows more programs to run simultaneously by efficiently sharing memory.
Fix the error in the sentence about memory management.
Memory management [1] memory by allocating it only once and never freeing it.
Allocating memory once and never freeing it wastes memory, which is a problem memory management tries to avoid.
Fill both blanks to complete the explanation of memory management.
Memory management [1] memory blocks and [2] unused memory for other programs.
Memory management allocates memory blocks when needed and frees unused memory so other programs can use it.
Fill all three blanks to complete the dictionary comprehension about memory usage.
memory_usage = [1]: [2] for [3] in programs if programs[[3]] > 0}
This comprehension creates a dictionary where each program name maps to its memory usage if the usage is greater than zero.