NPTEL Introduction to Operating Systems Week 2 Assignment Answers 2024

admin
By admin

NPTEL Introduction to Operating Systems Week 2 Assignment Answers 2024

1. In which of the following cases would a page fault occur?

i)When a requested address is not in RAM
ii)When a write operation is issued on a read-only page.

  • i only
  • ii only
  • i and ii only
  • neither i nor ii
Answer :- c

2. Consider the following Memory Map used in the partition model (Blue – In use and White – Free).

A2Q02

A new process, Pnew of size 10k. According to the following allocations, Pnew will be placed in
a) Best Fit – _____________k
b) First Fit – _____________k
c) Worst Fit- ____________k

  • p4, p3, p6
  • p4, p9, p6
  • p5, p9, p7
  • p5, p3, p7
Answer :- d

3. Match the following

a) CR0 1)Remove free pages from the list
b) CR3 2)Add free pages to the list
c) kalloc() 3) Page table point register
d) kfree() 4) Enable paging

  • a-3, b-2, c-1, d-4
  • a-2, b-3, c-1, d-4
  • a-4, b-3, c-1, d-2
  • a-3, b-2, c-4, d-1
Answer :- For Answers Click Here

4. State True or False.

The code from MBR is copied to RAM at location 0x7cc0 by BIOS

  • True
  • False
Answer :- For Answers Click Here

5. _____________ performs the Power On Self Test.

  • BIOS
  • Bootloader
  • Kernel
  • None of the above
Answer :- 

6. Consider a system with total memory available is 2^(64) bytes. A user writes a C program on this system that uses the entire address space. The size of a pointer defined in this C program should be ______ bytes.

Answer :- 

7. The space in hard disk used to store inactive pages of a process is called _____________.

  • /tmp folder
  • User’s home directory
  • Swap space
  • None of the above
Answer :- For Answers Click Here

8. The bootloader in an x86 system switches the OS to ______________ from ____________.

  • Protected mode, Real mode
  • User mode, kernel mode
  • User mode, protected mode
  • Real mode, Protected mode
Answer :- 

9. Match the Following

a) Present bit 1) Difference in contents of page in RAM and the Disk
b) Dirty bit 2) Moving a page from Disk to RAM
c) Swap out 3) Moving a page from RAM to Disk
d) Swap in 4) page is present in RAM

  • a-1, b-3, c-4, d-2
  • a-2, b-1, c-4, d-3
  • a-4, b-1, c-3, d-2
  • a-3, b-4, c-2, d-1
Answer :- For Answers Click Here
Share This Article
Leave a comment