Introduction to Operating Systems Week 3 NPTEL Assignment Answers 2025

Need help with this week’s assignment? Get detailed and trusted solutions for Introduction to Operating Systems Week 3 NPTEL Assignment Answers. Our expert-curated answers help you solve your assignments faster while deepening your conceptual clarity.

✅ Subject: Introduction to Operating Systems
📅 Week: 3
🎯 Session: NPTEL 2025 July-October
🔗 Course Link: Click Here
🔍 Reliability: Verified and expert-reviewed answers
📌 Trusted By: 5000+ Students

For complete and in-depth solutions to all weekly assignments, check out 👉 NPTEL Introduction to Operating Systems Week 3 NPTEL Assignment Answers

🚀 Stay ahead in your NPTEL journey with fresh, updated solutions every week!

NPTEL Introduction to Operating Systems Week 3 Assignment Answers 2025

1. Match the following

        a. Inode                1) The pid is assigned to a process
        b. New state         2)Never exits
        c. Trapframe        3)Stores metadata
        d. nit                    4) For restarting a process after a context switch
  • a-4, b-2, c-3, d-1
  • a-3, b-4, c-2, d-1
  • a-4, b-1, c-2, d-3
  • a-3, b-1, c-4, d-2
Answer : See Answers

2. We have n number of fork system calls, denoted as nXfork(). What is the total number of process created?

  • n
  • 2^n
  • 2^(n-1)
  • (2^n) – 1
Answer :

3. State True/ False

        The process whose parent exited before the child is an orphan process. Can a process can be Zombie and Orphan at the same time.
  • True
  • False
Answer :

4. What is the output of the following program for any value of a

int main()
{
int a, pid;
pid = fork();
if(pid == 0)
{
a=a+5;
printf(“u = %d\n”,a);
}
else
{
a=a-5;
printf(“x = %d\n”,a);
}
}

  • u =x+5
  • x=u+5
  • x=u+10
  • u=x+10
Answer :

5. Which of the below statement is false.

  • Init is the first process created using booting
  • Init process is a daemon process
  • Init process have process identifier as 1
  • None of these
Answer :

6. A student have written a program and used pid = fork() function call in it. The pid returned by the fork was 5119. Which of the following is true about the process invoking fork?

  • Process is a parent process with pid = 5119
  • Process is a child process. Its Parent’s pid is 5119
  • The process is a parent process. Its Child’s pid is 5119
  • Process is a child process with pid = 5119
Answer : See Answers

7. Which of the following is false?

  • Process : Contains code+data+heap+stack+process state
  • Program : One program can be used to create many processes
  • Process : Process is not a unique isolated entity
  • Program : Code + Static and Global data
Answer :

8. The state transition that occurs due to the scanf system call in the program is ______________.

int main(){
    Int a;
           scanf(“%d \n ”, &a);
           exit(0)
          }
  • NEW -> READY
  • READY -> RUNNING
  • RUNNING -> BLOCKED
  • BLOCKED -> READY
Answer :

9. Which one of the following is the property of Operating system that helps to prevent attacks?
i)Rings
ii) a separate stack for the kernel
iii)Virtual memory
iv) Shared Libraries

  • i
  • i, ii
  • i, ii, iii
  • i, ii, iii, iv
Answer :

10. Match the following

        1. If the parent and the child process share the same page table. Does this mean they share the same page frames in the RAM? COW creates a copy of the shared pages if it changes.
        2. All further changes are made in this new page.
  • True, False
  • False, True
  • False, False
  • True, True
Answer : See Answers

11. Match the following

        a. Init.d                    1) Created when system call occurs
        b. Zombie                2) The %eax register is cleared when this is created
        c. Child process      3) Created by kernel while booting
        d. Trapframe           4) Allows a parent process to read the status of child
  • a-1, b-2, c-3, d-4
  • a-3, b-4, c-2, d-1
  • a-2, b-1, c-4, d-3
  • a-4, b-3, c-1, d-2
Answer :

12. State True/False

        In memory mapping, the entire kernel is mapped into process’ address space, which helps the user process to easily access the kernel data.
  • True
  • False
Answer :

13. Arrange the following in order

        a. Change state to runnable
        b. Copy page directory contents from parent to child process
        c. Copy the trapframe from the parent process
        d. Change state to embryo
  • a, c, b, d
  • c, d, a, b
  • d, b, c, a
  • a, c, b, d
Answer :

14. wait() system call inside the parent process returns the status of the child. What does it returns when it is called inside the child?

  • Returns -1 , when it is not the parent of any other process
  • Returns its own process id
  • Returns the exit status of the parent currently exited
  • None of these
Answer :

15. State True/False

        execlp() system call replaces the child process with a new program file, but the process ID will not change.
  • True
  • False
Answer : See Answers