Virtual memory allows an operating system to use hard disk space as an extension of RAM. This enables programs to use more memory than is physically available by swapping data between RAM and the disk as needed. It makes the system appear to have more memory than it physically does, enabling programs to run more efficiently even if physical memory is limited.
- To increase the physical RAM capacity (A) is incorrect, as virtual memory does not increase physical RAM, but rather extends the memory using disk space.
- To encrypt data stored in memory (C) is not the function of virtual memory. Encryption is typically handled by other security mechanisms.
- To optimize CPU scheduling (D) is unrelated to virtual memory, which focuses on memory management rather than CPU scheduling.
Thus, the correct answer is (B), allowing programs to use more memory than is physically available.