NPTEL Introduction to Operating Systems Week 3 Assignment Answers 2024

admin
By admin

NPTEL Introduction to Operating Systems Week 3 Assignment Answers 2024

1. If the MAX_SIZE is 0x20000000, the virtual address of a kernel variable is 0x2fffffff, and the Physical memory starts from 0x00000000, then the Physical address of the kernel variable will be __________.

  • 0xffffffff
  • 0x00ffffff
  • 0x0fffffff
  • 0xffffff
Answer :- For Answers Click Here

2. The kernel pages in Physical and Virtual Address space are mapped randomly.

  • True
  • False
Answer :- For Answers Click Here

3. There are multiple copies of kernel in the Physical Address space but there is only one copy of kernel in Virtual Address space from where all the processes share it.

  • True
  • False
Answer :- 

4. There are two processes currently in a system. Process A has no I/O operations, process B has an I/O operation that reads the input from the keyboard. When Process A pre-empts process B (not executing I/O) process B goes from to _________________.

  • Ready, Running
  • Ready, Runnable
  • Running, Ready
  • Blocked, Runnable
Answer :- For Answers Click Here

5. There are two processes currently in a system. Process A has no I/O operations, process B has an I/O operation that reads input from the keyboard. When Process B executes the I/O, and Process A goes from to ______________.

  • Running, Ready
  • Ready, Runnable
  • Ready. Running
  • Blocked, Runnable
Answer :- 

6. When a child is being created from a parent using the fork() system call initially the state of the process is set to READY state and before the fork() system call returns the state is changed to RUNNING.

  • True
  • False
Answer :- 

7. When a child process is created using the fork() system call, its state is set to running.

  • True
  • False
Answer :- For Answers Click Here

8. A zombie process is used to remove the reaper processes created on termination, which if not controlled, might lead to infinite resource leakage.

  • True
  • False
Answer :- 

9. I. The value of all the registers are same for parent and child process except for the registers %eip and %ebp
II. forkret changes only the %eip of child

  • I- False, II- True
  • I- False, II- False
  • I- True, II – True
  • I- True, II – False
Answer :- 

10. -s flag of the readelf utility shows details about ________________.

  • Syntax errors
  • Symbol table
  • Semantics
  • Headers
Answer :- For Answers Click Here
Share This Article
Leave a comment