Quiz Space

Operating Systems · End Term · 10 May 2026 · January 2026 term · Set 1

Question 5: Consider that the following commands are executed in a sh…

Question 5

+2 marksOne correct option

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?

  1. A

    /data/processed/report.txt

  2. B

    /data/raw/monthly/report.txt

  3. C

    /data/processed/monthly/report.txt

  4. D

    /monthly/report.txt

Show answer

Correct answer

  • C

    /data/processed/monthly/report.txt

Question 5 of 20 in the IIT Madras BS Operating Systems (Operating Systems) End Term paper sat on 10 May 2026, in the January 2026 term (OS 10 May 26). It carries 2 marks.

More questions from this paper

  1. Q1Consider the below plots representing the order in which the requests are serviced by different disk scheduling algorit…
  2. Q2Consider the following program. Assume execlp succeeds. Which output order is guaranteed?
  3. Q3Consider the following resource-allocation situation.\ Process P1 holds resource R1 and waits for R2. • Process P2 hold…
  4. Q4If the memory map for a device starts at address 0x40001000 and has a size of 8192 bytes, what is the last valid addres…
  5. Q6In xv6 on RISC-V, which register contains the system call number when the user process traps into the kernel?
  6. Q7When a shell executes a command and then waits for it to finish before printing the next prompt, which sequence of syst…
  7. Q8In a 64-bit RISC-V system, the scause register stores trap information. What will be the value of scause for an Environ…
  8. Q9What is the major disadvantage of the First-Come, First-Served (FCFS) CPU scheduling algorithm?
  9. Q10When a process successfully invokes the exec system call, which of the following definitely remains unchanged?
  10. Q11Consider the code segment (for xv6) given below. What are the base address and the end address of the count reg?
  11. Q12Consider the following code snippet Which of the following statements is correct?
  12. Q13Consider the following processes in an xv6-like operating system:\ Process P1 is waiting in the ready queue. • Process …
  13. Q14Assume that context switches can occur at any time during execution. The variable counter is shared between two concurr…
  14. Q15Choose all correct statements regarding compiling and linking multiple C source files using gcc.
  15. Q16A system has 256 MiB of physical memory and uses a page size of 4 KiB. How many page frames are present in RAM?\ Assume…
  16. Q17Consider the following processes, all arriving at time 0 and entering the ready queue in the order shown below. If the …
  17. Q18Consider the following processes scheduled using FCFS. What is the average waiting time?
  18. Q19Consider the following processes scheduled using non-preemptive SJF. What is the average response time?
  19. Q20A system uses a 32-bit virtual address space with a page size of 4 KiB and a single-level page table. How many entries …