21 Operating Systems (Computer Science) questions asked in CIL MT previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
Which of the following options about non-preemptive scheduling is incorrect?
ANon-preemptive scheduling can lead to process starvation.
BIn non-preemptive scheduling, the response time and waiting time are generally not equal for all processes, and in most cases, waiting time is greater than response time.
CIn non-preemptive scheduling, the CPU is relinquished only when a process terminates or initiates an input/output operation.
DRound Robin is classified as a non-preemptive scheduling algorithm.
Show answerHide answer
Correct answer: (D) Round Robin is classified as a non-preemptive scheduling algorithm.
Consider a Mealy machine designed to process a sequence representing the presence of mineral samples ('M') and non-mineral samples ('N') during a geological survey. The machine outputs 'A' when the current sample is 'M' and the previous sample was 'N', otherwise it outputs 'B'. Which description below correctly reflects the machine's output behavior?
AIt produces output based on both the current input and the previous state.
BIt produces output based only on the current input symbol.
CIt waits until the next transition to output a value.
DIt changes output only when the input switches from 'M' to 'N'.
Show answerHide answer
Correct answer: (A) It produces output based on both the current input and the previous state.
Match the following.
List-1: A. Moves suspended process to secondary storage, B. Loads the processes into memory for execution, C. Moves one of the processes to Running state, D. Allocates CPU to a process
List-2: I. Short-Term Scheduler, II. Dispatcher, III. Medium-Term Scheduler, IV. Long-Term Scheduler
AA – III, B – IV, C – I, D – II
BA – II, B – I, C – IV, D – III
CA – III, B – I, C – II, D – IV
DA – II, B – IV, C – I, D – III
Show answerHide answer
Correct answer: (A) A – III, B – IV, C – I, D – II
Given the Burst Time (BT) of 4 processes P1, P2, P3 and P4 as BT(t1, t2, t3, t4) = (4, 8, 6, 7), smoothening factor (α) = 0.5, and T1 = 10, what will be the burst time of process P5 for Shortest Job First scheduling, using the technique of exponential averaging?
Let each process Pᵢ, i=1 to 7 executes the following code.
repeat
P(mutex);
CS
V(mutex);
forever
The process P₈ executes the following code:
repeat
V(mutex);
CS
V(mutex);
forever
What is the maximum number of processes that can be present in the critical section at any point of time? Given that the initial value of binary semaphore variable "mutex" is 1.
Consider the following segment of codes related to process creation. How many times the message "child process created" will be printed?
#include <stdio.h>
void main(){
fork(); fork(); fork();
printf("child process created");
}
Consider the Unix i-node which uses 12 direct DBAs, 1 single indirect, 1 double indirect, 1 triple indirect. The disk block address requires 32 bits and disk block size is 1 KB. What is the maximum file size?
Consider a system with page fault service time (S) = 100 ns, main memory access time (M) = 20 ns, and page fault rate (P) = 65%. Calculate the effective memory access time.
Which scheduling algorithm gives a minimum average waiting time?
ARR
BPriority
CSJF
DFCFS
Show answerHide answer
Correct answer: (C) SJF
How to use these CIL MT Computer Science questions
Every question here was asked in a real CIL MT paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full CIL MT papers as timed tests to check your speed under exam conditions.