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?
0x400053FF
0x40005400
0x400052FF
0x40004FFF
A published solution is not available for this question yet.
Question 164 MCQ · 3.0 marks
[[IMAGE:0b005b616da1915c_2_0]]

Sizes of all the registers are 4-byte.
Sizes of ‘config_reg‘, ‘status_reg‘, and ‘counter_reg‘ are 4-byte, 1-byte, and 2-
byte respectively.
Sizes of ‘config_reg‘, ‘status_reg‘, and ‘counter_reg‘ are 2-byte, 1-byte, and 2-
byte respectively.
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]]

Both the parent and child processes execute the ‘ls‘ command concurrently.
The child process executes the ‘ls -l‘ command, and the parent process waits
for it to complete.
The parent process executes the ‘ls -l‘ command, and the child process
terminates.
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.
(i) → (ii) → (iii) → (iv)
(i) → (iii) → (ii) → (iv)
(ii) → (i) → (iii) → (iv)
(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?
Process A
Process B
Process C
Process init
None of these
A published solution is not available for this question yet.
Question 168 MCQ · 3.0 marks
[[IMAGE:0b005b616da1915c_4_2]]

The base address of the process’s memory.
The number of system calls handled by the kernel.
The number identifying the requested system call.
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?
64 KB
16 KB
8 KB
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?
2\(^{16}\) frames
2\(^{15}\) frames
2\(^{13}\) frames
2\(^{17}\) frames
A published solution is not available for this question yet.
Question 171 MCQ · 4.0 marks
[[IMAGE:0b005b616da1915c_5_3]]

Parent 1: 20
Child 1: 15
Child 2: 30
Parent 2: 50
Child 1: 25
Parent 1: 20
Parent 2: 50
Child 2: 30
Parent 1: 20
Parent 2: 50
Child 1: 20
Child 2: 50
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?
Processes waiting for input from the user.
A process that uses all available CPU resources.
A situation where two or more processes are blocked forever.
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]]

Initializing the kernel’s virtual memory
Initializing user-level page tables
Configuring the interrupt vector table
Managing process scheduling
A published solution is not available for this question yet.
Question 174 MCQ · 2.0 marks
[[IMAGE:0b005b616da1915c_7_5]]

TRUE
FALSE
A published solution is not available for this question yet.
Question 175 MCQ · 2.0 marks
[[IMAGE:0b005b616da1915c_7_6]]

A process that is waiting for an event or resource to become available.
A process that is temporarily inactive while waiting for some condition to be
met.
A process that has finished execution and is ready to be removed from the
process table.
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?
Running → Runnable
Running → Sleeping
Runnable → Unused
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?
wait-fork-exec
exec-wait-fork
fork-exec-wait
exec-fork-wait
A published solution is not available for this question yet.
Question 178 MCQ · 1.0 marks
[[IMAGE:0b005b616da1915c_8_7]]

TRUE
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?
Page table entries
Process identifier (PID)
The value of the program counter
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]]

[[IMAGE:0b005b616da1915c_9_9]]

[[IMAGE:0b005b616da1915c_9_10]]

[[IMAGE:0b005b616da1915c_9_11]]

[[IMAGE:0b005b616da1915c_9_12]]

[[IMAGE:0b005b616da1915c_9_13]]

A published solution is not available for this question yet.