📝 IBM OS/360 (14 MCQs)
IBM OS/360 for the System/360 Mainframe Family
IBM OS/360 was a major operating-system family developed for the IBM System/360 series of mainframe computers. It sought to provide a broadly compatible software environment across a range of machines with different performance and storage capacities. Its facilities included job control, file and device management, batch execution, and, in selected configurations, multiprogramming and spooling.
One Software Family for a Range of Mainframe Models
Customers needed to move software and workloads across System/360 models without rewriting every application for each machine. At the same time, small configurations could not support the same workload as large installations. OS/360 therefore offered different operating configurations, balancing compatibility and functionality against available memory, processor capacity, and peripheral equipment.
PCP, MFT, MVT and Job Control Language
OS/360 included the Primary Control Program, Multiprogramming with a Fixed number of Tasks, and Multiprogramming with a Variable number of Tasks. PCP ran one job at a time; MFT used fixed partitions; MVT allocated variable-sized regions. Job Control Language described job steps, program execution, datasets, and required devices for system processing.
Choosing a Configuration for Two Concurrent Jobs
In an MFT installation, an administrator defines several memory partitions, and each partition can hold one job. Two jobs can execute concurrently when they fit separate partitions. Under MVT, memory regions can be allocated with variable sizes for job requirements. The configuration therefore affects memory use, multiprogramming capacity, and the degree of internal fragmentation.
Mainframe Compatibility, Batch Throughput and Complexity
OS/360 established a durable software environment for a widely deployed mainframe family and supported complex commercial workloads. Multiprogramming and spooling improved throughput by coordinating jobs and I/O. However, the system was large and difficult to develop and configure; the different operating modes also meant that not every OS/360 installation provided identical scheduling or memory-allocation behaviour.
Three Misconceptions About IBM OS/360
'Every OS/360 installation used variable partitions' is incorrect; MFT used fixed partitions. 'PCP was fully multiprogrammed' is false; it executed one job at a time. 'OS/360 was a single unchanging configuration' is misleading; PCP, MFT, and MVT offered different capabilities according to system requirements and hardware resources.
Exam Focus: Compare PCP, MFT and MVT
Memorise the full forms and distinguish their memory-allocation and execution models. For MFT, explain fixed partitions and one job per partition; for MVT, explain variable-sized regions. Be ready to interpret JCL's role, describe spooling, and evaluate how multiprogramming improved throughput while introducing memory-management complexity.
Key Terms of IBM OS/360
- PCP - Primary Control Program.
- MFT - Multiprogramming with fixed task partitions.
- MVT - Multiprogramming with variable task regions.
- JCL - Language describing batch job requirements.
- Spooling - Queuing I/O through storage.
📝 All IBM OS/360 MCQs
Q1. A programmer needs to submit a batch job on an IBM OS/360 system that prints a report after processing. Which JCL statement should be used to specify the output device?
📖 Explanation: The //SYSOUT statement tells the system to route the job's output to a printer or display defined in the system configuration. //OUTPUT is not a valid JCL keyword, //PRINTER is used in older IBM systems but not in OS/360 JCL, and //DEST is a placeholder not recognized by the supervisor. By selecting //SYSOUT, the job correctly communicates its output destination, ensuring the report is printed as intended.
Q2. When using the GETMAIN macro to allocate a 4 KB buffer, which parameter correctly specifies the size?
📖 Explanation: GETMAIN requires the LENGTH parameter to define the number of bytes to allocate, so LENGTH=4096 accurately requests a 4 KB buffer. The other options use non‑standard keywords or formats that the macro does not recognize, leading to allocation errors. Providing the correct LENGTH ensures the operating system reserves the needed memory, allowing the program to store data safely.
Q3. Why did IBM introduce multiprogramming in OS/360?
📖 Explanation: Multiprogramming allows several jobs to reside in memory simultaneously, so the CPU can switch to another job when one is waiting for I/O. This reduces idle periods and raises overall system throughput. Changing language syntax or adding GUIs does not directly affect CPU utilization, and disk capacity is unrelated to the scheduling strategy. Hence, the primary motivation was performance improvement.
Q4. What is the primary role of the Supervisor component in OS/360?
📖 Explanation: The Supervisor, also called the control program, orchestrates CPU allocation, memory management, and I/O handling for all jobs, ensuring orderly execution. It does not present a graphical interface, run user programs without mediation, or perform networking tasks, which are handled by other system modules or later operating systems. Its central responsibility is resource coordination and job control.
Q5. In what year was IBM OS/360 first released?
📖 Explanation: IBM announced OS/360 in 1964, but the first major release occurred in 1966, marking the debut of the widely used mainframe operating system. The later years listed correspond to subsequent updates or unrelated systems. Recognizing the 1966 release date helps place OS/360 in the historical timeline of computing development.
Q6. A system administrator must boot a mainframe from the DASD volume labeled 'SYS1'. Which IPL command correctly initiates the load?
📖 Explanation: IPL (Initial Program Load) is the command used to start the operating system from a specified volume; providing the volume label after IPL tells the firmware where to locate the bootstrap loader. START, BOOT, and LOAD are not valid IPL syntax on OS/360 and would result in a failed start. Using IPL SYS1 correctly directs the system to load OS/360 from the designated disk.
Q7. A developer must choose between a sequential VSAM file and an indexed VSAM KSDS for a dataset that will be searched by key values. Which choice is most appropriate?
📖 Explanation: An indexed KSDS (Key Sequenced Data Set) stores records with a key and maintains an index for fast key‑based retrieval, matching the requirement for frequent searches. A sequential ESDS lacks an index and would require full scans, while RRDS uses relative record numbers and does not support key searches. Direct Access VSAM is not a standard VSAM type. Therefore, an indexed KSDS best satisfies the need.
Q8. What purpose does the Linkage Editor (IEWL) serve in OS/360 development?
📖 Explanation: The Linkage Editor reads compiled object modules, resolves external references, and produces a loadable executable, enabling modular programming and code reuse. It does not handle paging, GUI debugging, or encryption, which are responsibilities of other system components. By producing a single program image, IEWL streamlines deployment and ensures that all referenced symbols are correctly linked.
Q9. In a system with an 18‑bit segment number and a 16‑bit offset, what is the maximum size of a single segment?
📖 Explanation: The offset field determines the addressable range within a segment. With 16 bits, the offset can represent values from 0 to , giving a maximum segment size of bytes (65,536 bytes). The segment number does not affect individual segment size, and the larger powers listed exceed the offset capacity, making them invalid for this calculation.
Q10. Why was the second‑chance page‑replacement algorithm chosen for MULTICS, and how did it influence OS/360 design decisions?
📖 Explanation: The second‑chance algorithm scans pages, giving each a “second chance” before replacement, which is simple to implement yet often lowers fault rates compared to pure FIFO. This pragmatic approach inspired OS/360 designers to create comparable swap mechanisms that were easy to code while improving performance. The other options misstate the algorithm’s characteristics or hardware requirements.
Q11. A programmer must decide between a VSAM KSDS and an ESDS for a log file that only ever appends new records. Which type is most efficient?
📖 Explanation: An ESDS (Entry Sequenced Data Set) is ideal for append‑only workloads because it stores records sequentially without maintaining an index, reducing overhead. A KSDS maintains a key index, which is unnecessary for simple appends and adds extra processing. RRDS requires fixed‑length records, and ISAM is an older, less flexible format. Therefore, ESDS offers the most efficient solution for a growing log.
Q12. When debugging a program that fails due to protection violations, which protection ring should user applications normally execute in?
📖 Explanation: In IBM’s hierarchical protection model, Ring 0 is reserved for the most privileged kernel code, while Ring 3 is the least privileged level intended for user programs, isolating them from critical system resources. Executing in Ring 0 would expose the system to security risks, and Rings 1 and 2 are intermediate levels used for system services. Placing user code in Ring 3 prevents unauthorized access and helps identify protection faults during debugging.
Q13. How did OS/360’s multiprogramming concepts influence later time‑sharing systems such as MULTICS?
📖 Explanation: Multiprogramming allowed OS/360 to keep the CPU busy while jobs waited for I/O, a principle that time‑sharing systems extended to support many interactive users simultaneously. This overlapping of processing and I/O laid the groundwork for the responsive, concurrent environment of MULTICS. The other statements describe features not related to OS/360’s influence on MULTICS.
Q14. A developer wants to generate a conditional branch in assembly that jumps to label CHECK if register R2 equals zero. Which macro should be used?
📖 Explanation: The BC (Branch on Condition) macro tests a condition code; BC 0 branches when the zero condition code is set, which occurs after comparing R2 to zero. BNR is not a standard macro, BALR performs an unconditional branch and link, and BCT decrements a register before testing. Using BC 0,CHECK correctly implements the desired conditional jump.