cs4022_2025T3_Q2_NA.pdf
Operating System · Quiz 2 · Sep 2025
← 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.
Question 6 MCQ · 4.0 marks
[[IMAGE:911932260507311a_2_0]]

Process 1 and Process 2 will enter their critical sections simultaneously,
leading to race conditions.
Process 1 will always enter its critical section before Process 2.
Process 2 will always enter its critical section before Process 1.
Deadlock can occur if both processes try to enter their critical sections
simultaneously.
A published solution is not available for this question yet.
Question 7 MCQ · 3.0 marks
[[IMAGE:911932260507311a_3_1]]

Mutual exclusion
Progress
Bounded waiting
None of these
A published solution is not available for this question yet.
Question 8 MCQ · 3.0 marks
[[IMAGE:911932260507311a_3_2]]

7F 42 43 44 02 01 01 00
7F 45 4D 50 02 01 01 00
7F 45 4C 46 02 01 01 00
7F 50 51 52 02 01 01 00
A published solution is not available for this question yet.
Question 9 MCQ · 3.0 marks
[[IMAGE:911932260507311a_4_3]]

0x800000000000000F
0x000000000000000D
0x000000000000000F
0x8000000000000005
A published solution is not available for this question yet.
Question 10 MCQ · 1.0 marks
State True or False: In inter-process communication (IPC) using shared memory, the commonly
used system calls are send and receive.
TRUE
FALSE
A published solution is not available for this question yet.
Question 11 MCQ · 2.0 marks
[[IMAGE:911932260507311a_5_4]]

[[IMAGE:911932260507311a_5_5]]

[[IMAGE:911932260507311a_5_6]]

[[IMAGE:911932260507311a_5_7]]

[[IMAGE:911932260507311a_5_8]]

A published solution is not available for this question yet.
Question 12 MCQ · 2.0 marks
[[IMAGE:911932260507311a_5_9]]

execl
execvp
execlp
exec
A published solution is not available for this question yet.
Question 13 MCQ · 2.0 marks
[[IMAGE:911932260507311a_6_10]]

a - 1, b - 2, c - 3
a - 2, b - 1, c - 3
a - 2, b - 3, c - 1
a - 1, b - 3, c - 2
A published solution is not available for this question yet.
Question 14 MCQ · 2.0 marks
What is a disadvantage associated with the Shortest Job First (SJF) scheduling algorithm in
operating systems?
Inefficiency for short jobs
Starvation
Lack of flexibility
None of these
A published solution is not available for this question yet.
Question 15 MCQ · 2.0 marks
In the context of response time, which of the following statements is correct for the First-Come-
First-Serve (FCFS) and Round Robin scheduling algorithms?
Round Robin provides the same or a lower response time compared to FCFS.
FCFS provides a lower response time compared to Round Robin.
Both FCFS and Round Robin give the same response time to each process.
None of these
A published solution is not available for this question yet.
Question 16 MSQ · 3.0 marks
Select all the correct statements
Mutexes use busy wait while trying to acquire the lock.
Mutexes can be also implemented with spinlocks
A blocking semaphore with S initialized to 1 is similar to a mutex.
The Thundering herd problem of the mutexes can be solved using a queue.
A published solution is not available for this question yet.
Question 17 MSQ · 3.0 marks
Choose all the correct statements regarding compiling and linking multiple C source files using
gcc.
The command gcc file1.c file2.c -o output produces an executable named
output.
The command gcc -c file1.c file2.c -o output produces an executable named
output.
The command gcc -c file1.c file2.c produces file1.o and file2.o.
The command gcc file1.o file2.o -c -o output produces an executable named
output.
The command gcc file1.o file2.o -o output links the object files into an
executable named output.
A published solution is not available for this question yet.
Question 18 MSQ · 4.0 marks
[[IMAGE:911932260507311a_7_11]]

70
80
90
100
110
120
A published solution is not available for this question yet.
Question 19 NAT · 4.0 marks
[[IMAGE:911932260507311a_8_12]]

A published solution is not available for this question yet.
Question 20 NAT · 4.0 marks
[[IMAGE:911932260507311a_9_13]]

A published solution is not available for this question yet.
Question 21 NAT · 4.0 marks
[[IMAGE:911932260507311a_9_14]]

A published solution is not available for this question yet.