wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Operating System - Process

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

Where is the list of processes that are prepared to be executed and waiting?

a)
  1. Job queue

b)
  1. Ready queue

c)
  1. Execution queue

d)
  1. Process queue

2.

Where are placed the list of processes that are prepared to be executed and waiting?

a)
  1. Job queue

b)
  1. Ready queue

c)
  1. Execution queue

d)
  1. Process queue

3.

What type of scheduling is round-robin scheduling?

a)
  1. Linear data scheduling

b)
  1. Non-linear data scheduling

c)
  1. Preemptive scheduling

d)
  1. Non-preemptive scheduling

4.

Which conditions must be satisfied to solve a critical section problem?

a)
  1. Bounded Waiting

b)
  1. Progress

c)
  1. Mutual Exclusion

d)

All of the above

5.

Which of the following scheduling algorithms is preemptive scheduling?

a)
  1. FCFS Scheduling

b)
  1. SJF Scheduling

c)
  1. Network Scheduling

d)
  1. SRTF Scheduling

6.

Which of the following "semaphore" can take the non-negative integer values?

a)
  1. Binary Semaphore

b)
  1. Counting Semaphore

c)
  1. Real Semaphore

d)
  1. All of the these

7.

In which directory the local user profile settings are stored by default in windows 2000?

a)
  1. C: \ USERS

b)

C: \ NETLOGON

c)
  1. C: \ WIN NTUSER.DAT

d)
  1. C: \ Documents and settings

8.

Which of the following scheduling algorithms is non-preemptive scheduling?

a)
  1. SJF scheduling

b)
  1. Round-Robin scheduling

c)
  1. SRTF scheduling

d)
  1. None of these

9.

Which of the following scheduling reduces process flow time?

a)
  1. FCFS

b)
  1. LIFO

c)
  1. SJF

d)
  1. All of the these

10.

Which of the following method is used to prevent threads or processes from accessing a single resource?

a)
  1. PCB

b)
  1. Semaphore

c)
  1. Job Scheduler

d)
  1. Non-Contiguous Memory Allocation

11.

Which of the following mechanisms is a locking mechanism?

a)
  1. Semaphore

b)
  1. PCB

c)
  1. Mutex

d)
  1. Binary Semaphore

12.

If a process fails, most operating system write the error information to a ______

a)

new file

b)

another running process

c)

log file

d)

none of the mentioned

13.

Which one of the following is not a real-time operating system?



a)

RTLinux

b)

Palm OS

c)

QNX

d)

VxWorks

14.

In a timeshare operating system, when the time slot assigned to a process is completed, the process switches from the current state to?


a)

Suspended state

b)

Terminated state

c)

Ready state

d)

Blocked state

15.

When a process is in a “Blocked” state waiting for some I/O service. When the service is completed, it goes to the __________



a)

Terminated state

b)

Suspended state

c)

Running state

d)

Ready state

16.

The portion of the process scheduler in an operating system that dispatches processes is concerned with _______

a)

assigning ready processes to waiting queue

b)

assigning running processes to blocked queue

c)

assigning ready processes to CPU

d)

all of the mentioned

17.

Which of the following is a characteristic of a preemptive multitasking operating system?

a)

Processes are executed in a strict order

b)

Processes can be interrupted and resumed

c)

Only one process can run at a time

d)

Processes must complete before another can start

18.

What is the main purpose of a process control block (PCB)?

a)

To manage memory allocation

b)

To store process state information

c)

To handle I/O operations

d)

To schedule processes

19.

Which of the following is an advantage of using a priority scheduling algorithm?

a)

It ensures fairness among processes

b)

It minimizes average waiting time

c)

It is easy to implement

d)

It prevents starvation of low-priority processes

20.

Which of the following is a disadvantage of using a round-robin scheduling algorithm?

a)

  1. It can lead to high turnaround time

b)

  1. It is fair to all processes

c)

  1. It is easy to implement

d)

  1. It minimizes waiting time

21.

What is the primary role of a job scheduler in an operating system?

a)

  1. To manage CPU scheduling

b)

  1. To allocate memory to processes

c)

  1. To load processes into memory for execution

d)

  1. To handle I/O operations

22.

Which of the following statements is true regarding the FIFO scheduling algorithm?

a)

  1. It is a preemptive scheduling algorithm

b)

  1. It can lead to the convoy effect

c)

  1. It is optimal for minimizing average waiting time

d)

  1. It is suitable for real-time systems

23.

What is the main function of a process scheduler in an operating system?

a)

To allocate CPU time to processes

b)

To manage memory allocation

c)

To handle I/O operations

d)

To terminate processes

24.

Which of the following is a disadvantage of priority scheduling?

a)

It can lead to starvation of low-priority processes

b)

It is difficult to implement

c)

It requires more CPU time

d)

It is not suitable for batch systems

25.

In a multi-threaded environment, what is the purpose of a mutex?

a)

To allow multiple threads to access a resource simultaneously

b)

To prevent multiple threads from accessing a resource at the same time

c)

To manage memory allocation for threads

d)

To schedule threads for execution

26.

What is the main advantage of using a preemptive multitasking operating system?

a)

It allows for better responsiveness to user inputs

b)

It requires less memory

c)

It simplifies process management

d)

It eliminates the need for context switching

27.

Which of the following is a disadvantage of using a mutex in a multi-threaded environment?

a)

It can lead to deadlock situations

b)

It allows multiple threads to access resources simultaneously

c)

It is faster than using semaphores

d)

It simplifies thread management

28.

In a priority scheduling algorithm, what happens when two processes have the same priority?

a)

They are executed in the order they arrive

b)

One process is always executed first

c)

They are both terminated

d)

They are executed simultaneously

29.

What is the role of a job queue in an operating system?

a)

To hold processes that are currently executing

b)

To store processes that are ready to run

c)

To maintain processes that are waiting for I/O

d)

To keep track of all processes in the system

30.

Which of the following is a common method for inter-process communication?

a)

Shared memory

b)

Mutex

c)

Semaphore

d)

All of the above

31.

What happens to a process in a 'Suspended' state?

a)

It is waiting for I/O operations to complete

b)

It is temporarily removed from the ready queue

c)

It is actively using CPU resources

d)

It has completed its execution

32.

What is the role of a process in an operating system?

a)

To execute user commands

b)

To manage system resources

c)

To perform background tasks

d)

To handle user input

33.

Which of the following states indicates that a process is currently executing on the CPU?

a)

Ready state

b)

Running state

c)

Blocked state

d)

Terminated state

34.

What is the main disadvantage of non-preemptive scheduling?

a)

It can lead to starvation of processes

b)

It is more complex to implement

c)

It requires more CPU time

d)

It is less efficient than preemptive scheduling

35.

What is the main purpose of a semaphore in an operating system?

a)

To manage memory allocation

b)

To synchronize access to shared resources

c)

To schedule processes for execution

d)

To handle I/O operations

36.

Which of the following states indicates that a process is currently executing on the CPU?

a)

Ready state

b)

Running state

c)

Blocked state

d)

Terminated state

37.

In a multi-threaded environment, what is the primary function of a mutex?

a)

To allow multiple threads to run simultaneously

b)

To prevent race conditions

c)

To manage memory allocation

d)

To schedule threads for execution

38.

What is the function of a context switch in an operating system?

a)

To allocate memory to processes

b)

To save the state of a currently running process

c)

To terminate a process

d)

To schedule a new process for execution

39.

Which of the following is a characteristic of a non-preemptive scheduling algorithm?

a)

Processes can be interrupted at any time

b)

Once a process starts executing, it cannot be stopped until it finishes

c)

It allows for better responsiveness

d)

It is more complex to implement

40.

What is the primary purpose of a ready queue in an operating system?

a)

To hold processes that are currently executing

b)

To store processes that are waiting for I/O

c)

To maintain processes that are ready to run

d)

To track terminated processes