đ CP/M and MS/DOS (8 MCQs)
Microcomputer Operating Systems for Early Personal Computers
CP/M and MS-DOS were influential operating systems for early microcomputers and personal computers. CP/M, developed by Digital Research, primarily supported 8-bit Intel 8080 and compatible processors. MS-DOS was developed for the 16-bit IBM PC platform and compatible machines. Both provided command-line interfaces, file services, and program-loading facilities in environments that generally ran one foreground program at a time.
Bringing Disk-Based Program Management to Small Machines
Early microcomputers had limited memory and storage, making large multiuser operating systems impractical. Users needed a compact way to load applications, organise files, and communicate with disk devices. CP/M and MS-DOS provided standard interfaces between programs and hardware, helping software vendors target families of machines instead of writing every application for one specific configuration.
CP/M's BIOS and BDOS Compared with MS-DOS Services
CP/M divided its system into a Console Command Processor, Basic Disk Operating System, and Basic Input/Output System. The BIOS isolated machine-specific disk and console operations, while the BDOS offered file and operating services. MS-DOS provided a command interpreter and system services, with an I/O layer supporting device-specific operations on IBM PC-compatible hardware.
Opening a Disk File from a Command Prompt
A CP/M user enters a command to run an application. The command processor locates the program on disk, loads it into memory, and transfers control to it. The application requests file operations through BDOS services, which rely on the BIOS for hardware-specific access. This separation allows compatible applications to run on different CP/M machines.
Software Compatibility and the Limits of Single-Task Design
These systems helped establish standard disk formats, command-driven administration, and a broad application ecosystem for microcomputers. Their small size suited limited hardware, but conventional configurations lacked protected memory and modern process isolation. MS-DOS compatibility became widespread, although hardware variation and memory limits complicated applications, and later Windows versions added more advanced multitasking and graphical services.
Three Misconceptions About CP/M and MS-DOS
'MS-DOS was simply a renamed CP/M' is incorrect; it was based on 86-DOS, though the systems shared concepts. 'CP/M's BIOS managed all file operations' is false; BDOS provided file services. 'Early MS-DOS provided modern protected multitasking' is incorrect; its standard environment was primarily single-tasking.
Exam Focus: Identify CP/M Layers and DOS Capabilities
Memorise CP/M's CCP, BDOS, and BIOS roles, especially the separation between file services and machine-dependent I/O. Compare CP/M's 8-bit origins with MS-DOS on 16-bit IBM PC-compatible systems. Questions may test command interpreters, program loading, disk-file operations, and the limitations of single-tasking and unprotected memory.
Key Terms of CP/M and MS-DOS
- CCP - CP/M command processor.
- BDOS - CP/M basic disk services.
- BIOS - Hardware-specific input/output layer.
- 86-DOS - System adapted into early MS-DOS.
- Command interpreter - Program accepting user commands.
đ All CP/M and MS/DOS MCQs
Q1. Who is credited with writing the original CP/M operating system?
đ Explanation: Gary Kildall created CP/M while working at Digital Research. The other individuals are known for founding Microsoft, Apple, and Linux respectively, which are unrelated to CP/Mâs origin. Recognizing Kildallâs role helps students understand the early software ecosystem that enabled personal computers. This knowledge is essential when studying how operatingâsystem ideas spread, even though the question simply asks for a name.
Q2. Why was CP/M considered a pivotal step toward widespread personal computing?
đ Explanation: CPâŻM offered a standard set of system calls for disk operations, allowing software to run on many different hardware platforms without rewriting code. The other options describe features CPâŻM did not have: it was singleâtasking, ran on common hardware, and still required programmers. Understanding this reason shows how standardization lowered barriers for developers, accelerating personalâcomputer adoption.
Q3. How did the design of CP/M influence the later development of MSâDOS?
đ Explanation: MSâDOS retained CP/Mâs fileâsystem structure (e.g., FAT) and adopted similar commandâline conventions, making it easier for users to transition. It did not copy CPâŻMâs GUI because CPâŻM lacked one, nor did it ignore CPâŻM entirely. Recognizing this continuity explains why early DOS programs could be ported with minimal changes, illustrating the practical impact of design inheritance.
Q4. A developer must port a program written for CP/M to run under MSâDOS. Which step is most critical to ensure correct file handling?
đ Explanation: The core of a CP/M application communicates with the OS via BDOS calls; mapping these to DOS interrupt services (e.g., INTâŻ21h) preserves fileâaccess behavior. Simply altering syntax or UI does not guarantee functional compatibility, and language conversion is unnecessary if the code remains in the same language. This focus on systemâcall translation reflects realâworld porting tasks where lowâlevel OS interfaces are the primary obstacle.
Q5. A computer with 16âŻKB of RAM runs CP/M. What is the maximum size of a single program that can be loaded into memory, assuming the operating system occupies 4âŻKB?
đ Explanation: CPâŻM reserves part of RAM for its own kernel; if the system uses 4âŻKB, the remaining 12âŻKB is available. However, CPâŻM loads programs in 2âŻKB pages, and the largest contiguous block without fragmentation is 8âŻKB (four pages). Therefore, the maximum program size is 8âŻKB. The other choices either ignore OS overhead or exceed the paging limitation, illustrating how memory constraints affect program size.
Q6. A legacy application uses CP/M BDOS calls for file management. To emulate this on a modern operating system, which software layer must be created?
đ Explanation: Emulating CP/M requires a translation layer that captures BDOS calls and maps them to the host OSâs fileâsystem API. Hardware drivers are unnecessary because modern OSes already support storage devices, and a GUI or network protocol does not address the lowâlevel systemâcall translation. Building such a layer mirrors realâworld emulators like DOSBox, showing how software abstraction enables legacy code to run on current platforms.
Q7. How does the commandâline interpreter of TOPSâ20 differ from that of early MSâDOS regarding user assistance?
đ Explanation: TOPSâ20âs interpreter includes a builtâin help system that can be invoked with a question mark, giving immediate guidance on command syntax. Early MSâDOS lacked such interactive assistance, relying on printed manuals or external documentation. The other statements are inaccurate: MSâDOS did not embed tutorials, and both systems did not completely lack help. Understanding this contrast highlights how userâfriendly design can reduce learning curves, a key factor in system adoption.
Q8. An engineer is designing a small embedded device that must run a single application and store data on a floppy disk. Which legacy operating system would be most suitable as a starting point, and why?
đ Explanation: CPâŻM was designed for 8âbit machines with limited memory, providing a tiny kernel and straightforward diskâI/O routines, making it ideal for constrained embedded devices. MSâDOS expects more RAM and includes features unnecessary for a singleâapplication environment. TOPSâ20âs virtual memory and Linuxâs larger footprint would add unwanted complexity. Selecting CPâŻM mirrors realâworld scenarios where developers choose lightweight legacy OSes to meet strict resource limits.