MauryaHub PYQ Practice

Operating System · Quiz 1 · Jan 2024

Operating System · Quiz 1 · Jan 2024

← Course papers · Start practice / exam

This page contains the reliably extracted subset, not the complete original paper.

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 22 published solutions

Question 136 MCQ · 1.0 marks

In monolithic kernels, there is direct communication between modules in the kernel by procedure calls.
6406532474379.
TRUE
6406532474380.
FALSE

A published solution is not available for this question yet.

Report a correction for Q136

Question 137 MCQ · 1.0 marks

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.
6406532474410.
TRUE
6406532474411.
FALSE

A published solution is not available for this question yet.

Report a correction for Q137

Question 138 MCQ · 1.0 marks

“Daemons are deliberate orphan processes that become detached from user sessions and operate in the background.”
6406532474424.
TRUE
6406532474425.
FALSE

A published solution is not available for this question yet.

Report a correction for Q138

Question 139 MCQ · 2.0 marks

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?
6406532474367.
0x200000FF
6406532474368.
0x20000100
6406532474369.
0x200001FF
6406532474370.
0x20000200

A published solution is not available for this question yet.

Report a correction for Q139

Question 140 MCQ · 2.0 marks

Which instruction in the xv6 operating system facilitates the transition of the CPU from user mode to supervisor mode?
6406532474381.
jmp
6406532474382.
syscall
6406532474383.
ecall
6406532474384.
None of these

A published solution is not available for this question yet.

Report a correction for Q140

Question 141 MCQ · 2.0 marks

Source diagram or notation
6406532474385.
It is the memory address where the proc array begins.
6406532474386.
It is the total number of processes launched since the system boot.
6406532474387.
It is the number of CPU cores available to xv6.
6406532474388.
It is the maximum number of concurrent processes supported.

A published solution is not available for this question yet.

Report a correction for Q141

Question 142 MCQ · 2.0 marks

Source diagram or notation
6406532474389.
Managing process states
6406532474390.
Handling timer interrupts
6406532474391.
Managing system resources
6406532474392.
Storing the return address for function calls

A published solution is not available for this question yet.

Report a correction for Q142

Question 143 MCQ · 2.0 marks

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
6406532474393.
(i) → (ii) → (iii) → (iv)
6406532474394.
(i) → (iii) → (ii) → (iv)
6406532474395.
(ii) → (i) → (iii) → (iv)
6406532474396.
(ii) → (i) → (iv) → (iii)

A published solution is not available for this question yet.

Report a correction for Q143

Question 144 MCQ · 2.0 marks

Select the incorrect statements regarding the **exit** function.
6406532474434.
The **exit** function sets the state of the current process to **ZOMBIE**.
6406532474435.
The **exit** function reparents the child processes to the init process using the **reparent** function.
6406532474436.
The **exit** function changes the context of the current process to the parent process by returning the exit status to the **wait** function of the parent.
6406532474437.
The **exit** function is responsible for closing all the opened files using **fileclose** function.

A published solution is not available for this question yet.

Report a correction for Q144

Question 145 MCQ · 2.0 marks

Select all the incorrect statements regarding the **wait** function.
6406532474438.
**wait** function runs an infinite loop until all the child processes of the parent are terminated.
6406532474439.
**wait** function returns when it finds a terminated child process.
6406532474440.
**wait** function returns the exit status of the child to the parent.
6406532474441.
**wait** function returns the **pid** of the terminated child.

A published solution is not available for this question yet.

Report a correction for Q145

Question 146 MCQ · 3.0 marks

Source diagram or notation
6406532474406.
stack0 + 3 + 4 * 1024
6406532474407.
stack0 + 3 * 4* 1024
6406532474408.
stack0 + 2 * 4 * 1024
6406532474409.
stack0 + 2 + 4 * 1024

A published solution is not available for this question yet.

Report a correction for Q146

Question 147 MCQ · 3.0 marks

Consider the size of the virtual memory space is 4 GB, and the number of entries in the page table is 2\(^{21}\). What is the size of each page frame?
6406532474412.
3MB
6406532474413.
3KB
6406532474414.
6KB
6406532474415.
6MB

A published solution is not available for this question yet.

Report a correction for Q147

Question 148 MCQ · 3.0 marks

Consider the following lines of code. Identify the TRUE statements.
Source diagram or notation
(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
6406532474416.
(i), (ii), and (iii)
6406532474417.
(i), (iii), and (iv)
6406532474418.Source diagram or notation
(i), (ii), and (iv)
6406532474419.
(ii), (iii), and (iv)

A published solution is not available for this question yet.

Report a correction for Q148

Question 149 MCQ · 3.0 marks

Find the correct match for the following functions.
Source diagram or notation
6406532474426.Source diagram or notation
6406532474427.Source diagram or notation
6406532474428.Source diagram or notation
6406532474429.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q149

Question 150 MCQ · 3.0 marks

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?
6406532474442.
2\(^{32}\) frames
6406532474443.
2\(^{14}\) frames
6406532474444.
2\(^{20}\) frames
6406532474445.
2\(^{15}\) frames

A published solution is not available for this question yet.

Report a correction for Q150

Question 151 MSQ · 2.0 marks

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.
6406532474402.
A is in RUNNABLE state
6406532474403.
A is in SLEEPING state
6406532474404.
C is in RUNNABLE state
6406532474405.
C is in SLEEPING state

A published solution is not available for this question yet.

Report a correction for Q151

Question 152 MSQ · 2.0 marks

Select all the correct statements about the first process in xv6 **(sbin/init).**
6406532474430.
**init** process uses **fork** system call to create child processes and loads the other programs using **exec** system call in the child processes.
6406532474431.
The **init** process uses the **exec** system call to create child processes.
6406532474432.
**init** process is created by a **fork** system call using **ecall** instruction.
6406532474433.
**init** process is created by an **exec** system call using **ecall** instruction.

A published solution is not available for this question yet.

Report a correction for Q152

Question 153 MSQ · 3.0 marks

Which of the following can be possible output of the following lines of code?
Source diagram or notation
6406532474420.
Child 30 Child 25 Parent 30
6406532474421.
Child 30 Child 25 Parent 25
6406532474422.
Parent 30 Child 30 Child 25
6406532474423.
Parent 25 Child 30 Child 25

A published solution is not available for this question yet.

Report a correction for Q153

Question 154 MCQ · 2.0 marks

Consider the code segment (for xv6) given below.
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532474371.
The base address is 0x00000000, and content is 0x0000.
6406532474372.
The base address is 0x00000000, and content is 0x7D.
6406532474373.
The base address is 0xA0004000, and content is 0x0000.
6406532474374.
The base address is 0xA0004000, and content is 0x007D.

A published solution is not available for this question yet.

Report a correction for Q154

Question 155 MCQ · 3.0 marks

Consider the code segment (for xv6) given below.
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
6406532474375.Source diagram or notation
6406532474376.Source diagram or notation
6406532474377.Source diagram or notation
6406532474378.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q155

Question 156 NAT · 3.0 marks

Consider the following code for **kvminit** function in **vm. c.**
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q156

Question 157 MCQ · 3.0 marks

Consider the following code for **kvminit** function in **vm. c.**
Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation
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); .**
6406532474398.
01110
6406532474399.
10111
6406532474400.
01011
6406532474401.
10110       **DL(CV)** **Section Id :** 64065351460 **Section Number :** 11 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 19 **Number of Questions to be attempted :** 19 **Section Marks :** 36 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** Yes **Clear Response :** **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q157