Foundations-of-Computer-Science practice question 9 of 15

What is a file system used for?

Full set: 71 questions
Answer options
A:

A. To schedule CPU tasks only

B:

B. To organize, store, and retrieve data on storage devices

Correct answer
C:

C. To cool the processor

D:

D. To translate source code into machine code

Correct Answer:
B. B. To organize, store, and retrieve data on storage devices
Explanation

A file system is a core component of an operating system that provides a method for storing, organizing, and retrieving files from a storage device, such as a hard drive or solid-state drive. It manages the physical location of data, tracks file metadata (like permissions, size, and creation date), and presents a hierarchical structure of directories and files to the user. This abstraction allows programs and users to interact with data without needing to know the specific physical details of the storage medium.

Why Incorrect

A. CPU task scheduling is a function of the operating system's process scheduler, which manages the execution of processes, not the file system.
C. Processor cooling is a hardware function managed by physical components like heat sinks and fans, completely unrelated to software or file systems.
D. Translating source code into machine code is the job of a compiler or an interpreter, which are programming language processing tools.

References

1. Arpaci-Dusseau, R. H., & Arpaci-Dusseau, A. C. (2018). Operating Systems: Three Easy Pieces. Arpaci-Dusseau Books. Chapter 39, "Files and Directories," Section 39.1, p. 1.

2. Silberschatz, A., Galvin, P. B., & Gagne, G. (2018). Operating System Concepts (10th ed.). Wiley. Chapter 12, "File-System Structure," Section 12.1, p. 537.

Scroll to Top