MauryaHub PYQ Practice

Operating System · Quiz 1 · May 2024

Operating System · Quiz 1 · May 2024

← Course papers · Start practice / exam

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

0 / 19 published solutions

Question 2 MCQ · 1.0 marks

State True or False In RISC-V, during system calls, the **mstatus** register stores the current mode of operation of the processor.
6406532785711.
TRUE
6406532785712.
FALSE

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 1.0 marks

The **ecall** instruction in the xv6 operating system facilitates the transition of the CPU from user mode to supervisor mode.
6406532785773.
TRUE
6406532785774.
FALSE

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 2.0 marks

What is a race condition in an operating system?
6406532785721.
Processes racing for CPU resources.
6406532785722.
Concurrent access leading to unpredictable results
6406532785723.
Incompatible hardware configurations.
6406532785724.
System instability due to competing tasks.

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 2.0 marks

What is the primary purpose of the kvminit function in the xv6 operating system?
6406532785725.
Initializing the kernel’s virtual memory
6406532785726.
Initializing user-level page tables
6406532785727.
Configuring the interrupt vector table
6406532785728.
Managing process scheduling

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 2.0 marks

State True or False. The **init** process, being the first process created by the system, can exit using the **exit** system call.
6406532785737.
TRUE
6406532785738.
FALSE

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 2.0 marks

In the context of xv6 operating systems, what does the **zombie** state of a process refer to?
6406532785739.
A process that has terminated, but whose resources have not yet been deallocated by the operating system.
6406532785740.
A process that is suspended and waiting for user input.
6406532785741.
A process that is ready to run but is waiting for CPU time.
6406532785742.
None of these

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MCQ · 2.0 marks

In the xv6 operating system, if a timer interrupt occurs while a process is executing, what will be the state transition of the process?
6406532785756.
Running → Sleeping
6406532785757.
Running → Unused
6406532785758.
Running → Runnable
6406532785759.
State remains unchanged

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MCQ · 2.0 marks

Source diagram or notation
6406532785764.
The number of CPUs supported by xv6 is 64.
6406532785765.
The size of each **struct proc** is 64 bytes.
6406532785766.
The array **proc** can dynamically resize to handle more than 64 processes.
6406532785767.
The system can handle a maximum of 64 processes simultaneously.

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MCQ · 3.0 marks

If the memory map for a device starts from the offset 0x30004000 and has a size of 512 bytes in a 32-bit addressing scheme, what will be the last address in the memory map?
6406532785703.
0x30004100
6406532785704.
0x300041FF
6406532785705.
0x30004200
6406532785706.
0x30003FFF

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MCQ · 3.0 marks

Source diagram or notation
6406532785707.
Sizes of all the registers are 4-byte.
6406532785708.
Sizes of control register, data register, and status register are 2-byte, 4-byte, and 1-byte respectively.
6406532785709.
Sizes of control register, data register, and status register are 2-byte, 4-byte, and 2-byte respectively.
6406532785710.
Sizes of control register, data register, and status register are 16-byte, 32-byte, and 8-byte respectively.

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MCQ · 3.0 marks

Source diagram or notation
6406532785729.
Both the parent and child processes execute the **pwd** command concurrently.
6406532785730.
The parent process waits for the child process to finish executing the **pwd** command.
6406532785731.
The parent process executes the **pwd** command and then waits for the child process to finish.
6406532785732.
None of these

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 3.0 marks

What is the correct sequence of setting up first user process? (i) Find an unused proc entry. (ii) Create trapframe. (iii) Create empty user process page table. (iv) Create context for process.
6406532785733.
(i) → (ii) → (iii) → (iv)
6406532785734.
(i) → (iii) → (ii) → (iv)
6406532785735.
(ii) → (i) → (iii) → (iv)
6406532785736.
(ii) → (i) → (iv) → (iii)

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 MCQ · 3.0 marks

Consider a process P1 that forks P2, P2 forks P3, and P3 forks P4. P1 and P2 continue to execute while P3 terminates. Now, what is the parent process of P4?
6406532785743.
Process P1
6406532785744.
Process P2
6406532785745.
Process init
6406532785746.
None of these

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 3.0 marks

Source diagram or notation
6406532785760.
The return address of the user space
6406532785761.
The number that is returned to the user space.
6406532785762.
The number that identifies the system call.
6406532785763.
The number that identifies the process

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MSQ · 3.0 marks

Which of the following actions are performed by **userinit**?
6406532785751.
It creates a page directory.
6406532785752.
It invokes **procinit**.
6406532785753.
It sets the process to a sleeping state.
6406532785754.
It allocates a **process id** and **trapframe**.
6406532785755.
It creates a user stack at 0X0.

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MSQ · 3.0 marks

Assume Process P2 and Process P4 are waiting for an input, Process P1 is running, and Process P3 was running before Process P1 and is now waiting for its turn to run. Select all the correct statements about the states of the processes.
6406532785768.
Process P2 is in the RUNNABLE state
6406532785769.
Process P4 is in the SLEEPING state.
6406532785770.
Process P1 is in the RUNNING state.
6406532785771.
Process P3 is in the SLEEPING state.
6406532785772.
Process P3 is in the RUNNABLE state.

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 4.0 marks

Consider a system with a virtual memory space size of 8 GB and a single page table with 2\(^{18}\) entries. What is the size of each page frame?
6406532785713.
32 MB
6406532785714.
64 KB
6406532785715.
16 KB
6406532785716.
32 KB

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 4.0 marks

Consider a system with 64 MB of physical memory and a 32-bit virtual address space. Given a page size of 4 KB, what will be the number of frames?
6406532785717.
2\(^{16}\) frames
6406532785718.
2\(^{14}\) frames
6406532785719.
2\(^{12}\) frames
6406532785720.
2\(^{18}\) frames

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MSQ · 4.0 marks

Source diagram or notation
6406532785747.
Child 20 Child 15 Parent 15
6406532785748.
Child 20 Child 15 Parent 20
6406532785749.
Parent 20 Child 20 Child 15
6406532785750.
Parent 15 Child 20 Child 15       **RL** **Section Id :** 64065359410 **Section Number :** 2 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 8 **Number of Questions to be attempted :** 8 **Section Marks :** 40 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No

A published solution is not available for this question yet.

Report a correction for Q20