Introduction To Operating Systems NPTEL Week 2 Assignment
Course Name: Introduction To Operating Systems NPTEL
Link of course: Click here
These are answers of Introduction To Operating Systems NPTEL Week 2 Assignment
Q1. Match the Following
a) Present bit 1) Difference in contents of page in RAM and the Disk
b) Dirty bit 2) Moving page from Disk to Memory
c) Swap out 3) Moving page from memory 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-3, b-4, c-2, d-1
a-4, b-1, c-3, d-2
Answer: d. a-4, b-1, c-3, d-2
Q2. Consider a system using 2-level paging and the virtual address is 38 bits. The most significant 10 bits are used to index the page directory and next 16 bits index the page table. Each entry in both levels is 4 Bytes. What is the maximum size of a page table in KB?
Answer: 256
Q3. Consider a system using 2-level paging and the virtual address is 38 bits. The most significant 10 bits are used to index the page directory and next 16 bits index the page table. Each entry in both levels is 4 Bytes. What is the maximum number of page tables that a process can have?
Answer: 4096
These are answers of Introduction To Operating Systems NPTEL Week 2 Assignment
Q4. Consider a system with total memory available is 2^(38) bytes. A user write a C program on this system that uses the entire addressing space. What is the size of a pointer (in bytes) defined in this C program.
Answer: 5
Q5. Consider the following memory map using multiprogram with partition model. Blue represent memory in use while white represent free memory as shown in the figure below.

Request for memory follows the following order : 100k, 25k, 125k, 50k. Which of the following allocation satisfies the above request?
1)Best Fit 2)First Fit 3)Worst Fit
1,2,3
1,2
2,3
None of these
Answer: b.1,2
These are answers of Introduction To Operating Systems NPTEL Week 2 Assignment
Q6. Match the following
a)CR0 1)Removes free pages from a linked list
b)CR3 2) Enable paging
c)kalloc( ) 3) Page directory point register
d)kfree( ) 4) Add free pages to a linked list
a-3, b-2, c-1, d-4
a-2, b-3, c-1, d-4
a-2, b-3, c-4, d-1
a-3, b-2, c-4, d-1
Answer: c. a-2, b-3, c-4, d-1
Q7. During swap out of a page all the changes that occurred in a page are updated in the main memory.
True
False
Answers: True
Q8. Sector 0 is of _____________ bytes, which is loaded into the location _____________
512, 0xffff0
1024, 0xffff0
512, 0x7c00
1024, 0x7c00
Answer: c. 512, 0x7c00
These are answers of Introduction To Operating Systems NPTEL Week 2 Assignment
Q9. The bootloader switches the OS to _____________ from _____________.
Protected mode, Real mode
User mode, kernel mode
User mode, protected mode
Real mode, Protected mode.
Answer: a. Protected mode, Real mode
Q10. Consider the following memory map using the partition model, with Blue representing memory in use and White representing free memory.

A new process Pnew is of size 10k. In which partition is Pnew placed for
a)Best Fit : _____________k
b)First Fit : _____________k
c)Worst Fit : _____________k
10, 11, 11
10, 10, 11
11, 12, 40
11, 10, 48
Answer: c. 11, 12, 40
These are answers of Introduction To Operating Systems NPTEL Week 2 Assignment
All weeks of Introduction To Operating Systems: Click Here
More NPTEL Solutions: Click me
* The material and content uploaded on this website are for general information and reference purposes only. Please do it by your own first. COPYING MATERIALS IS STRICTLY PROHIBITED.