BIOS is stored in both ROM and RAM. In many MS-DOS systems, the most primitive parts of the device drivers are located in ROM so they can be used by stand-alone applications, diagnostics, and the system’s bootstrapping program. A second section is loaded from the disk into RAM and extends the capabilities of the basic functions stored in ROM so that BIOS can handle all of the system’s input and output requests.