Time Left - 10:00 mins

IIIT Hyderabad Practice Quiz : Operating System-2

Attempt now to get your rank among 247 students!

Question 1

In which allocation method for disk block allocation in a file system, insertion and deletion of blocks in a file is easy?

Question 2

Contiguous allocation has two problems _______ and _______ that linked allocation solves.

Question 3

Consider the following statements:
Statement 1- The presence of deadlock assures the presence of cycle but vice versa is not correct.

Statement 2-If there is a deadlock then recovery through resources is done either by preemption of the resources or by rollbacking the assigned resources.
Which of the statement is/are correct?

Question 4

Which of the following statements are true?
S1: If a Privileged Instruction is executed in User Mode, then it will not be executed and will be treated as an illegal instruction
S2:  To change the mode from Privileged to Non-Privileged, a Privileged Instruction is required that does not generate any interrupt.
S3: Generating any Trap Instruction is a Privileged Instruction.

Question 5

Consider three CPU-intensive processes, which require 10, 20 and 30 time units and arrive at times 0, 2 and 6, respectively. How many context switches are needed if the operating system implements a shortest remaining time first scheduling algorithm? Do not count the context switches at time zero and at the end.
  • 247 attempts
  • 3 upvotes
  • 0 comments
Aug 1GATE & PSU CS