wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

FOS QUIZ 7

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

What is a process in an operating system?

a)

A passive entity stored on disk

b)

A program in execution

c)

A data structure in the PCB

d)

A shared memory block

2.

Which of the following is NOT a state of a process?

a)

Ready

b)

Terminated

c)

Waiting

d)

Distributed

3.

What does a Process Control Block (PCB) NOT contain?

a)

Process state

b)

Scheduling information

c)

Network configuration

d)

Memory management information

4.

Which system call creates a new process in Unix?

a)

exec()

b)

fork()

c)

wait()

d)

exit()

5.

In process scheduling, what is the purpose of the ready queue?

a)

Hold processes waiting for I/O operations

b)

Store terminated processes

c)

Maintain processes ready for CPU execution

d)

Synchronize interprocess communication

6.

Which IPC model uses shared variables for communication?

a)

Message Passing

b)

Shared Memory

c)

RPC

d)

Sockets

7.

What does the send() function do in message-passing systems?

a)

Receives a message from a process

b)

Sends a message to another process

c)

Creates a new process

d)

Synchronizes process execution

8.

In which communication model are mailboxes used?

a)

Direct communication

b)

Indirect communication

c)

Shared memory

d)

RPC

9.

What is the primary advantage of threads over processes?

a)

Easier implementation

b)

Better resource sharing

c)

Reduced execution speed

d)

Increased process creation overhead

10.

What is multithreading?

a)

Running multiple processes simultaneously

b)

Running multiple threads in a single process

c)

Executing tasks in a distributed system

d)

Running multiple kernels on a CPU

11.

Which of these is NOT a multithreading model?

a)

One-to-One

b)

Many-to-Many

c)

Many-to-One

d)

Single-to-Single

12.

What type of threads does the POSIX Pthreads library provide?

a)

User-level threads

b)

Kernel-level threads

c)

Both user-level and kernel-level threads

d)

Java-based threads

13.

In the Many-to-One model:

a)

Each user thread maps to a unique kernel thread

b)

All user threads map to a single kernel thread

c)

Kernel threads map to user threads as needed

d)

There is no mapping between threads

14.

Which threading library is NOT supported by Linux?

a)

Java threads

b)

Windows threads

c)

POSIX Pthreads

d)

Kernel threads

15.

In thread pools:

a)

Threads are created dynamically during execution

b)

Threads await work after creation

c)

Threads manage memory for the process

d)

Threads terminate upon task completion

16.

What is the purpose of thread-local storage (TLS)?

a)

Sharing data between threads

b)

Providing each thread with its own data

c)

Reducing synchronization overhead

d)

Managing thread scheduling

17.

Which of the following is an implicit threading technique?

a)

Thread pools

b)

Fork-Join

c)

OpenMP

d)

All of the above

18.

How are signals delivered in multithreaded processes?

a)

To all threads simultaneously

b)

To a specific thread

c)

To the process's main thread

d)

It depends on the implementation

19.

Which threading model provides the greatest flexibility?

a)

Many-to-One

b)

One-to-One

c)

Many-to-Many

d)

Two-level

20.

What is fork-join parallelism?

a)

A method to create threads dynamically

b)

A way to divide tasks and join results

c)

A model for managing multiple processes

d)

A synchronization technique

21.

Which language does NOT use implicit threading?

a)

C

b)

Java

c)

Swift

d)

Python

22.

What is a kernel thread?

a)

A thread created by the user application

b)

A thread managed directly by the operating system kernel

c)

A thread that handles I/O operations only

d)

A thread exclusive to multicore systems

23.

What is the primary distinction between concurrency and parallelism?

a)

Concurrency is simultaneous execution; parallelism is multitasking

b)

Concurrency makes progress on tasks; parallelism executes tasks simultaneously

c)

Concurrency is specific to threads; parallelism to processes

d)

There is no distinction

24.

What does the term "process state" refer to in an operating system?

a)

The name of the process

b)

The resources allocated to a process

c)

The current status of a process during its execution lifecycle

d)

The CPU time used by a process

25.

In the context of video playback, what does the "Waiting" state represent?

a)

Video tab initializes

b)

Video is playing

c)

Video buffering due to slow internet connection

d)

You close the video