wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

BCS303_Internal_Assessment

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

In a multithreaded process, which of the following is NOT shared among threads?

a)

Heap

b)


Global variables

c)


C. Stack

d)


D. Code section

2.

Which condition definitely forces a CPU scheduling decision?

a)

Process switches from ready to running

b)

Process switches from waiting to ready

c)

Process switches from new to ready

d)

Process switches from running to waiting

3.

Starvation can occur in

a)

FCFS only

b)

Round Robin only

c)

Priority Scheduling only

d)

Priority Scheduling and SJF

4.

In bounded buffer problem, why only (BUFFER_SIZE − 1) slots are usable?

a)

To avoid overflow

b)

To distinguish full and empty buffer

c)

To reduce memory usage

d)

Due to modulo operation

5.

If a parent terminates before the child and OS does NOT allow independent children, the child becomes

a)

Zombie

b)

Orphan

c)

Cascading terminated

d)

Deadlock

6.

Many-to-one threading model fails on multicore systems because

a)

Too many kernel threads

b)

Blocking system call blocks all threads

c)

Kernel unaware of threads

d)

No parallel execution possible

7.

Which of the following statements about a process is TRUE?

a)

A process is only a program stored on disk and does not include execution details.

b)

A process includes program code, current execution state, stack, heap, and data section.

c)

A process and a thread are exactly the same and always have separate memory.

d)

A process does not require a program counter to execute instructions.

8.

Which of the following statements about process states is FALSE?

a)

A process in the ready state is waiting to be assigned the CPU.

b)

A process in the running state is currently executing instructions on the CPU.

c)

A process in the waiting state is waiting for I/O or some event to occur.

d)

A process in the terminated state is waiting in the ready queue for CPU allocation.

9.

Which of the following statements regarding the Process Control Block (PCB) is TRUE?

a)

PCB stores only the process ID and nothing else.

b)

PCB contains information required to restart a process after a context switch.

c)

PCB is created only after a process terminates.

d)

PCB is shared among all processes in the system.

10.

Which of the following statements about Inter-Process Communication (IPC) is TRUE?

a)

IPC is required only for independent processes.

b)

Message passing allows processes to communicate without sharing memory.

c)

Shared memory IPC does not require synchronization between processes.

d)

IPC is unnecessary in multitasking operating systems.

11.

In a multithreaded environment, which of the following is a potential issue when threads share data?

a)

Race condition

b)

All of the above

c)

Deadlock

d)

Starvation

12.

What happens to a process that is in the waiting state?

a)

It is waiting for an I/O operation to complete.

b)

It has finished execution.

c)

It is ready to be assigned to the CPU.

d)

It is currently executing instructions.

13.

Which of the following is a method of synchronization in concurrent programming?

a)

All of the above

b)

Monitor

c)

Semaphore

d)

Mutex

14.

What is the primary purpose of a process scheduler in an operating system?

a)

To manage memory allocation

b)

To handle I/O operations

c)

To maintain process states

d)

To determine the order of process execution

15.

Which of the following is a characteristic of a thread?

a)

Threads share the same memory space

b)

Threads cannot run concurrently

c)

Threads are heavier than processes

d)

Threads have separate process IDs