Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : OPERATING SYSTEMS (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS
REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS
REGISTERED BY YOU)
Solution
In monolithic kernels, there is direct communication between modules in the kernel by procedure calls.
Solution
The _entry function in an operating system kernel like xv6 is called by each CPU core individually during the boot process, and it initializes the stack for each CPU core separately.
Solution
“Daemons are deliberate orphan processes that become detached from user sessions and operate in the background.”
Solution
If the memory map for the interrupt controller starts from the offset 0x20000000 and has a size of 256 bytes in a 32-bit addressing scheme then what will be the last address in the memory map?
Solution
Which instruction in the xv6 operating system facilitates the transition of the CPU from user mode to supervisor mode?
Solution
Solution
Solution
What is the correct sequence of tasks that takes place as part of memory initializationof the xv6 kernel before turning on paging?
(i) Creation of page frames (ii) Creation of page tables for kernel (iii) Add each chunk of 4KB physical memory to the freelist (iv) Set the page table bits in the satp register
(i) Creation of page frames (ii) Creation of page tables for kernel (iii) Add each chunk of 4KB physical memory to the freelist (iv) Set the page table bits in the satp register
Solution
Select the incorrect statements regarding the exit function.
Solution
Select all the incorrect statements regarding the wait function.
Solution
Solution
Consider the size of the virtual memory space is 4 GB, and the number of entries in the page table is 221. What is the size of each page frame?
Solution
Consider the following lines of code. Identify the TRUE statements.

(i) Output is parent : 0 child : 1 (ii) In the parent process, fork returns child pid, and in the child process, fork returns 0 (iii) wait returns the PID of an exiting parent process (iv) When fork is called, all pages are easily shared between parent and child by copying the parent’s page tables
(i) Output is parent : 0 child : 1 (ii) In the parent process, fork returns child pid, and in the child process, fork returns 0 (iii) wait returns the PID of an exiting parent process (iv) When fork is called, all pages are easily shared between parent and child by copying the parent’s page tables
Solution
Find the correct match for the following functions.

Solution
Consider a system with 32 MB of physical memory and a 32-bit virtual address space. Given a page size of 2 KB, what will be the number of frames?
Solution
Assume process A is waiting for an input, process B is running, and process C was running before process B and is now waiting for its turn to run. Select all the correct statements from below.
Solution
Select all the correct statements about the first process in xv6 (sbin/init).
Solution
Which of the following can be possible output of the following lines of code?

Solution
Comprehension Passage
Consider the code segment (for xv6) given below.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Consider the code segment (for xv6) given below.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Consider the following code for kvminit function in vm. c.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Consider the following code for kvminit function in vm. c.

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
What will be the values of the first 5 bits (from the right) of the page table entry after the execution of kvmmap(KERNBASE, KERNBASE, (uint64)etext-KERNBASE, PTE_R |PTE_X); .
Solution
Shape
Thickness [ / ]
3
All colors