Home / Study library / Operating System / End Term · Jan 2026 Operating System · End Term · Jan 2026 · AN
Operating System · End Term · Jan 2026 AN
← Course papers · Start practice / exam
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
0 / 20 published solutions
Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19 Q20 Q21
Question 2 MCQ · 4.0 marks Consider the below plots representing the order in which the requests are serviced by different
disk scheduling algorithms.
Match the above plots with the corresponding disk scheduling algorithm.
6406536924574. (1) - C-SCAN, (2) - FCFS, (3) - SCAN, (4) - C-LOOK
6406536924575. (1) - C-LOOK, (2) - FCFS, (3) - SCAN, (4) - C-SCAN
6406536924576. (1) - SCAN, (2) - C-SCAN, (3) - C-LOOK, (4) - FCFS
6406536924577. (1) - C-LOOK, (2) - C-SCAN, (3) - FCFS, (4) - SCAN
A published solution is not available for this question yet.
Report a correction for Q2
Question 3 MCQ · 4.0 marks Consider the following program. Assume execlp succeeds.
Which output order is guaranteed?
6406536924632. parent done appears before hello
6406536924633. hello appears before parent done
6406536924634. Only parent done appears
6406536924635. The order is non-deterministic
A published solution is not available for this question yet.
Report a correction for Q3
Question 4 MCQ · 4.0 marks Consider the following resource-allocation situation.
• Process P1 holds resource R1 and waits for R2.
• Process P2 holds resource R2 and waits for R3.
• Process P3 holds resource R3 and waits for R1.
• None of the processes releases its currently held resource until it acquires the requested one.
Which deadlock condition is most directly exhibited by the waiting pattern above?
6406536924636. Mutual exclusion
6406536924638. Circular wait
6406536924639. Time sharing
A published solution is not available for this question yet.
Report a correction for Q4
Question 5 MCQ · 2.0 marks If the memory map for a device starts at address 0x40001000 and has a size of 8192 bytes, what is
the last valid address in the memory map?
A published solution is not available for this question yet.
Report a correction for Q5
Question 6 MCQ · 2.0 marks Consider that the following commands are executed in a shell with root (/) as the current directory.
What is the absolute path of the file report.txt?
6406536924582. /data/processed/report.txt
6406536924583. /data/raw/monthly/report.txt
6406536924584. /data/processed/monthly/report.txt
6406536924585. /monthly/report.txt
A published solution is not available for this question yet.
Report a correction for Q6
Question 7 MCQ · 2.0 marks In xv6 on RISC-V, which register contains the system call number when the user process traps into
the kernel?
A published solution is not available for this question yet.
Report a correction for Q7
Question 8 MCQ · 2.0 marks When a shell executes a command and then waits for it to finish before printing the next prompt,
which sequence of system calls is most likely used?
6406536924590. exec → fork → wait
6406536924591. wait → fork → exec
6406536924592. fork → wait → exec
6406536924593. fork → exec → wait
A published solution is not available for this question yet.
Report a correction for Q8
Question 9 MCQ · 2.0 marks In a 64-bit RISC-V system, the scause register stores trap information. What will be the value of
scause for an Environment call from U-mode?
6406536924594. 0x0000000000000008
6406536924595. 0x8000000000000008
6406536924596. 0x0000000000000009
6406536924597. 0x8000000000000009
A published solution is not available for this question yet.
Report a correction for Q9
Question 10 MCQ · 2.0 marks What is the major disadvantage of the First-Come, First-Served (FCFS) CPU scheduling algorithm?
6406536924598. Starvation of long processes
6406536924599. Convoy effect due to long CPU-bound processes
6406536924600. It always requires page replacement
6406536924601. It cannot be implemented without virtual memory
A published solution is not available for this question yet.
Report a correction for Q10
Question 11 MCQ · 2.0 marks When a process successfully invokes the exec system call, which of the following definitely remains
unchanged?
6406536924602. Program counter value
6406536924603. Address space contents
6406536924604. Process identifier (PID)
6406536924605. User stack contents
A published solution is not available for this question yet.
Report a correction for Q11
Question 12 MCQ · 2.0 marks Consider the code segment (for xv6) given below.
What are the base address and the end address of the count reg?
6406536924640. The base address is 0xD200401A, and the end address is 0xD200401C.
6406536924641. The base address is 0xD2004018, and the end address is 0xD2004019.
6406536924642. The base address is 0xD200401A, and the end address is 0xD200401B.
6406536924643. The base address is 0xD2004026, and the end address is 0xD2004027.
A published solution is not available for this question yet.
Report a correction for Q12
Question 13 MCQ · 3.0 marks Consider the following code snippet
Which of the following statements is correct?
6406536924618. The program creates three threads, each printing "Operating Systems" 50
times, and "Done" is printed only after all thread outputs are completed.
6406536924619. The program creates three threads, each printing "Operating Systems" 50
times, but "Done" may appear before some thread outputs.
6406536924620. The program creates one thread at a time due to pthread join, resulting in
sequential execution.
6406536924621. The program prints "Operating Systems" exactly 50 times in total and then
prints "Done".
A published solution is not available for this question yet.
Report a correction for Q13
Question 14 MSQ · 3.0 marks Consider the following processes in an xv6-like operating system:
• Process P1 is waiting in the ready queue.
• Process P2 is currently executing on the CPU.
• Process P3 is blocked waiting for disk I/O.
• Process P4 has terminated, but its parent has not yet called wait().
6406536924606. P1 is in the RUNNABLE state.
6406536924607. P2 is in the RUNNING state.
6406536924608. P3 is in the SLEEPING state.
6406536924609. P4 is in the ZOMBIE state.
6406536924610. P3 is in the RUNNABLE state.
6406536924611. P4 is in the RUNNING state.
A published solution is not available for this question yet.
Report a correction for Q14
Question 15 MSQ · 3.0 marks Assume that context switches can occur at any time during execution. The variable counter is
shared between two concurrent threads/processes.
Initial value: counter = 100
Program A
R1 = counter
R1 = R1 + 30
counter = R1
Program B
R2 = counter
R2 = R2 - 20
counter = R2
Which of the following can be the possible final values of counter?
A published solution is not available for this question yet.
Report a correction for Q15
Question 16 MSQ · 3.0 marks Choose all correct statements regarding compiling and linking multiple C source files using gcc.
6406536924622. gcc file1.c file2.c -o output produces an executable named output.
6406536924623. gcc -c file1.c file2.c produces file1.o and file2.o.
6406536924624. gcc file1.o file2.o -o output links the object files into an executable named
output.
6406536924625. gcc -c file1.c file2.c -o output produces an executable named output.
6406536924626. gcc file1.o file2.o -c -o output produces an executable named output.
A published solution is not available for this question yet.
Report a correction for Q16
Question 17 NAT · 2.0 marks A system has 256 MiB of physical memory and uses a page size of 4 KiB. How many page frames
are present in RAM?
Assume 1 MiB = 2\(^{20}\) bytes and 1 KiB = 2\(^{10}\) bytes.
A published solution is not available for this question yet.
Report a correction for Q17
Question 18 NAT · 2.0 marks Consider the following processes, all arriving at time 0 and entering the ready queue in the order
shown below.
If the CPU scheduling policy is Round Robin with time quantum 2, what is the average response
time?
A published solution is not available for this question yet.
Report a correction for Q18
Question 19 NAT · 2.0 marks Consider the following processes scheduled using FCFS.
What is the average waiting time?
A published solution is not available for this question yet.
Report a correction for Q19
Question 20 NAT · 2.0 marks Consider the following processes scheduled using non-preemptive SJF.
What is the average response time?
A published solution is not available for this question yet.
Report a correction for Q20
Question 21 NAT · 2.0 marks A system uses a 32-bit virtual address space with a page size of 4 KiB and a single-level page table.
How many entries are required in the page table?
Assume 1 KiB = 2\(^{10}\) bytes
A published solution is not available for this question yet.
Report a correction for Q21