MauryaHub PYQ Practice

cs4022_2025T1_Q1_NA.pdf

Operating System · Quiz 1 · Jan 2025

← 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.

Question 163 MCQ · 3.0 marks

If the memory map for a device starts from the offset 0x40005000 and has a size of 1024 bytes in a 32-bit addressing scheme, what will be the last address in the memory map?
  1. 0x400053FF
  2. 0x40005400
  3. 0x400052FF
  4. 0x40004FFF

A published solution is not available for this question yet.

Question 164 MCQ · 3.0 marks

[[IMAGE:0b005b616da1915c_2_0]]
Source diagram or notation
  1. Sizes of all the registers are 4-byte.
  2. Sizes of ‘config_reg‘, ‘status_reg‘, and ‘counter_reg‘ are 4-byte, 1-byte, and 2- byte respectively.
  3. Sizes of ‘config_reg‘, ‘status_reg‘, and ‘counter_reg‘ are 2-byte, 1-byte, and 2- byte respectively.
  4. Sizes of ‘config_reg‘, ‘status_reg‘, and ‘counter_reg‘ are 1-byte, 2-byte, and 4- byte respectively.

A published solution is not available for this question yet.

Question 165 MCQ · 3.0 marks

[[IMAGE:0b005b616da1915c_3_1]]
Source diagram or notation
  1. Both the parent and child processes execute the ‘ls‘ command concurrently.
  2. The child process executes the ‘ls -l‘ command, and the parent process waits for it to complete.
  3. The parent process executes the ‘ls -l‘ command, and the child process terminates.
  4. None of these

A published solution is not available for this question yet.

Question 166 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.
  1. (i) → (ii) → (iii) → (iv)
  2. (i) → (iii) → (ii) → (iv)
  3. (ii) → (i) → (iii) → (iv)
  4. (ii) → (i) → (iv) → (iii)

A published solution is not available for this question yet.

Question 167 MCQ · 3.0 marks

Consider a process A that forks process B, and process B forks process C. Process A terminates, and process B continues to execute while process C forks a new process D. What is the parent process of D?
  1. Process A
  2. Process B
  3. Process C
  4. Process init
  5. None of these

A published solution is not available for this question yet.

Question 168 MCQ · 3.0 marks

[[IMAGE:0b005b616da1915c_4_2]]
Source diagram or notation
  1. The base address of the process’s memory.
  2. The number of system calls handled by the kernel.
  3. The number identifying the requested system call.
  4. The priority level of the process.

A published solution is not available for this question yet.

Question 169 MCQ · 4.0 marks

Consider a system with a virtual memory space size of 16GB and a single page table containing 2\(^{20}\) entries. What is the size of each page frame?
  1. 64 KB
  2. 16 KB
  3. 8 KB
  4. 32 KB

A published solution is not available for this question yet.

Question 170 MCQ · 4.0 marks

Consider a system with 128 MB of physical memory and a 32-bit virtual address space. Given a page size of 8 KB, what will be the number of frames?
  1. 2\(^{16}\) frames
  2. 2\(^{15}\) frames
  3. 2\(^{13}\) frames
  4. 2\(^{17}\) frames

A published solution is not available for this question yet.

Question 171 MCQ · 4.0 marks

[[IMAGE:0b005b616da1915c_5_3]]
Source diagram or notation
  1. Parent 1: 20 Child 1: 15 Child 2: 30 Parent 2: 50
  2. Child 1: 25 Parent 1: 20 Parent 2: 50 Child 2: 30
  3. Parent 1: 20 Parent 2: 50 Child 1: 20 Child 2: 50
  4. Child 1: 15 Parent 1: 25 Parent 2: 50 Child 2: 35

A published solution is not available for this question yet.

Question 172 MCQ · 2.0 marks

What is deadlock in an operating system?
  1. Processes waiting for input from the user.
  2. A process that uses all available CPU resources.
  3. A situation where two or more processes are blocked forever.
  4. Processes consuming more memory than allocated.

A published solution is not available for this question yet.

Question 173 MCQ · 2.0 marks

[[IMAGE:0b005b616da1915c_6_4]]
Source diagram or notation
  1. Initializing the kernel’s virtual memory
  2. Initializing user-level page tables
  3. Configuring the interrupt vector table
  4. Managing process scheduling

A published solution is not available for this question yet.

Question 174 MCQ · 2.0 marks

[[IMAGE:0b005b616da1915c_7_5]]
Source diagram or notation
  1. TRUE
  2. FALSE

A published solution is not available for this question yet.

Question 175 MCQ · 2.0 marks

[[IMAGE:0b005b616da1915c_7_6]]
Source diagram or notation
  1. A process that is waiting for an event or resource to become available.
  2. A process that is temporarily inactive while waiting for some condition to be met.
  3. A process that has finished execution and is ready to be removed from the process table.
  4. None of these

A published solution is not available for this question yet.

Question 176 MCQ · 2.0 marks

In the xv6 operating system, if a process is waiting for I/O to complete, what will be the state transition of the process?
  1. Running → Runnable
  2. Running → Sleeping
  3. Runnable → Unused
  4. State remains unchanged

A published solution is not available for this question yet.

Question 177 MCQ · 2.0 marks

Imagine a basic Linux shell that executes the ls -l command. Which of the following lists correctly orders the system calls initiated by the shell, starting from the moment the user enters this command until the shell resumes and prompts the user for their next input?
  1. wait-fork-exec
  2. exec-wait-fork
  3. fork-exec-wait
  4. exec-fork-wait

A published solution is not available for this question yet.

Question 178 MCQ · 1.0 marks

[[IMAGE:0b005b616da1915c_8_7]]
Source diagram or notation
  1. TRUE
  2. FALSE

A published solution is not available for this question yet.

Question 179 MCQ · 1.0 marks

When a process invokes the exec system call, which components in the Process Control Block (PCB) remain unchanged?
  1. Page table entries
  2. Process identifier (PID)
  3. The value of the program counter
  4. File descriptor table and memory information.

A published solution is not available for this question yet.

Question 180 MSQ · 3.0 marks

[[IMAGE:0b005b616da1915c_9_8]]
Source diagram or notation
  1. [[IMAGE:0b005b616da1915c_9_9]]
    Source diagram or notation
  2. [[IMAGE:0b005b616da1915c_9_10]]
    Source diagram or notation
  3. [[IMAGE:0b005b616da1915c_9_11]]
    Source diagram or notation
  4. [[IMAGE:0b005b616da1915c_9_12]]
    Source diagram or notation
  5. [[IMAGE:0b005b616da1915c_9_13]]
    Source diagram or notation

A published solution is not available for this question yet.