All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 05 · MOCK TEST

System Software and Operating System — Mock Test 10

25 questions · about 30 minutes. Press End Mock any time to see your score and the correct answers.

0 / 25 answered 00:00
Q1. Given below are two statements:
Statement (I): A thread is a dispatchable unit of work that does not execute sequentially and is not interruptible.
Statement (II): It is not possible to alter the behaviour of a thread by altering its context when the thread is suspended.
In light of the above statements, choose the most appropriate answer.
Q2. Given below are an Assertion (A) and a Reason (R):
Assertion (A): I/O protection is ensured by a hardware trap.
Reason (R): I/O interrupts are caused by conditions such as I/O completion and device malfunction occurring within I/O devices.
In light of the above, choose the correct answer.
Q3. Given below are two statements:
Assertion A: A process involves a library function to create a thread.
Reason R: The threads make system calls to convey their resource and I/O requirements to the Kernel.
Q4. In a multi-user operating system, requests for a particular resource arrive at an average rate of 20 per hour (a Poisson arrival process). What is the probability that no request is made in a 45-minute interval?
Q5. In Linux Operating system, when ________ is invoked, it is passed a set of flags that determine how much sharing is to take place between the parent and child tasks.
Q6. User level threads are threads that are visible to the programmer and are unknown to the kernel. The operating system kernel supports and manages kernel level threads. Three different models relate user and kernel level threads:
Statement (A): (i) The many-to-one model maps many user threads to one kernel thread. (ii) The one-to-one model maps one user thread to one kernel thread. (iii) The many-to-many model maps many user threads to a smaller or equal number of kernel threads.
Statement (B): (i) The many-to-one model maps many kernel threads to one user thread. (ii) The one-to-one model maps one kernel thread to one user thread. (iii) The many-to-many model maps many kernel threads to a smaller or equal number of user threads.
Which of the following is true?
Q7. One of the disadvantages of user-level threads compared to kernel-level threads is:
Q8. Match List I with List II regarding operating system I/O management.
List I: (a) Device controller (b) Device driver (c) Interrupt handler (d) Kernel I/O subsystem
List II: (i) Extracts information from the controller's registers and stores it in a data buffer (ii) Performs I/O scheduling (iii) Performs the actual data transfer between the device and memory (iv) Processes/initiates the I/O request
Choose the correct answer from the options given below.
Q9.

Match List I with List II

Figure

Choose the correct answer from the options given below:

Q10.

Match List I with List II

Figure

Choose the correct answer from the options given below:

Q11.

Consider the following table about processes, their burst time and arrival time

Figure

Now which of the process shall finish second last as per the respective GANTT charts for the nonpreemptive SJF and Round Robin (time quantum =10 ) scheduling methods.

Q12.

Which of the following statement is correct for Pthreads?

Q13.

Consider the following Graph of disk scheduling and identify the disk scheduling algorithm representing by this graph. Queue 84, 125, 11, 36, 170, 20, 172, 45

Figure
Q14.

Match the LIST-I with LIST-II

Figure

RAID ECC

D. IV. level 4 organization

Q15.

Given the following processes with their times and priority (lower number indicates higher priority)

Figure

Which of the following is a value of average waiting time using priority scheduling algorithm?

Directions (Q96–100): Processes with arrival time and CPU burst (ms): P1 (arrival 0, burst 5), P2 (2, 3), P3 (2, 2), P4 (5, 3), P5 (6, 1).

Q16.

Calculate the average response time for these processes with nonpreemptive priority Scheduling algorithm? Priority of the process are as follows and consider that all the processes came at zero (0) time. (Note low numbers represent high priority).

Figure
Q17.

Match List - I with List - II.

Figure

(D) Priority Scheduling (IV) Select the process for execution with smallest next Burst time.

Q18.

Match List - I with List - II.

Figure

Directions (Q96–100): The Banker's Algorithm is a deadlock-avoidance method in operating systems. It maintains information about the maximum resources each process may require, the resources currently allocated and the resources available. Each process must declare its maximum demand for each resource type before it starts. When a process requests additional resources, the algorithm checks whether granting the request leaves the system in a safe state — one in which there is a sequence that lets all processes complete. If so, the resources are allocated; otherwise the process must wait until its request can be safely fulfilled.

Q19.

What is the significance of the Banker's algorithm in terms of resource management?

Q20.

The order of steps of Address Translation in Linux Virtual Memory Scheme will be :

A. register

B. offset

C. Page directory.

D. Page table

E. Page Middle directory

Choose the correct answer from the options given below :

Q21.

Match List-I with List-II :

Figure
Q22.

Match List-I with List-II.

Figure
Q23.

Match List-I with List-II :

Figure
Q24.

Which of the following is not correct about the virtual memory segmentation ?

Q25.

In windows scheduling, which of the following option is correct ?