wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

أسئلة حول أنظمة التشغيل

Total questions: 84

Worksheet time: 45mins

Name
Class
Date
1.

What is an Operating System?

a)

A hardware component

b)

A program that acts as an intermediary between a user and the computer hardware

c)

A type of application

d)

None of the above

2.

What does a device controller do?

a)

Manages CPU cycles

b)

Manages I/O devices

c)

Controls memory allocation

d)

None of the above

3.

What is the main function of a bootstrap program?

a)

To store data

b)

To manage processes

c)

To initialize the system and load the operating system kernel

d)

To control I/O devices

4.

What is multiprogramming?

a)

A system that allows one program to run at a time

b)

A system where multiple programs are kept in memory and executed by the CPU

c)

A type of operating system

d)

None of the above

5.

What is a kernel?

a)

A program running all the time on the computer

b)

A user program

c)

A type of hardware

d)

None of the above

6.

What does DMA stand for?

a)

Direct Memory Access

b)

Data Management Application

c)

Disk Management Area

d)

None of the above

7.

What is virtual memory used for?

a)

To increase CPU speed

b)

To allow execution of programs not fully in memory

c)

To store user data

d)

None of the above

8.

What is the main function of an operating system?

a)

To compile programs

b)

To manage hardware and software resources

c)

To write programs

d)

To design interfaces

9.

Which of the following is not a user interface provided by an operating system?

a)

Command-Line Interface (CLI)

b)

Graphic User Interface (GUI)

c)

Database Management Interface (DBI)

d)

Batch Interface

10.

What is a system call?

a)

A command to the hardware

b)

A program that compiles code

c)

A request to the OS for service by a program

d)

A debugging tool

11.

What is the main purpose of a system boot?

a)

To shut down the computer

b)

To load the operating system into memory

c)

To execute a program

d)

To run diagnostic tests

12.

Which of the following is a communication method between processes?

a)

File reading

b)

Message passing

c)

Command-line interface

d)

Error detection

13.

Which operating system component is responsible for error detection?

a)

CPU

b)

Memory

c)

Operating system

d)

Application programs

14.

What kind of interface allows users to type commands directly to the operating system?

a)

Batch interface

b)

Command-Line Interface (CLI)

c)

Graphic User Interface (GUI)

d)

Touchscreen Interface

15.

What does a shell in an operating system do?

a)

Manages hardware

b)

Interprets commands and runs programs

c)

Compiles code

d)

Allocates memory

16.

What is a process?

a)

A program stored on the hard drive

b)

A program in execution

c)

A static file

d)

A user interface

17.

Which of the following is not a process state?

a)

Running

b)

Waiting

c)

Terminated

d)

Deleted

18.

What is the short-term scheduler responsible for?

a)

Selecting processes for the ready queue

b)

Managing I/O requests

c)

Allocating memory

d)

Executing processes in the CPU

19.

Which of the following IPC mechanisms uses memory shared between processes?

a)

Message passing

b)

Signals

c)

Shared memory

d)

Sockets

20.

In the producer-consumer problem, what is the role of the buffer?

a)

To store produced data temporarily

b)

To manage I/O requests

c)

To handle memory allocation

d)

To execute processes

21.

Which type of communication link is usually bi-directional?

a)

Direct communication

b)

Indirect communication

c)

Shared memory

d)

Message passing

22.

What is the main feature of named pipes?

a)

They only work between parent and child processes

b)

They allow bi-directional communication without a parent-child relationship

c)

They are faster than ordinary pipes

d)

They only work within one system

23.

Which of the following is used to establish communication between a client and server?

a)

Files

b)

Shared memory

c)

Sockets

d)

Semaphores

24.

What is a thread?

a)

A process running on a computer

b)

A fundamental unit of CPU utilization

c)

A system call

d)

An operating system library

25.

What is one key advantage of using threads in an application?

a)

Simplifies code but decreases performance

b)

Requires more memory but increases performance

c)

Simplifies code and increases efficiency

d)

Reduces the number of processes

26.

What is a multithreading model where each user-level thread is mapped to one kernel thread?

a)

Many-to-One

b)

One-to-One

c)

Many-to-Many

d)

Two-level Model

27.

Which model allows many user-level threads to be mapped to many kernel threads?

a)

One-to-One

b)

Many-to-One

c)

Many-to-Many

d)

Two-level Model

28.

What is the primary purpose of thread libraries?

a)

To manage operating system memory

b)

To provide APIs for creating and managing threads

c)

To handle I/O devices

d)

To compile programs

29.

Which threading model is considered more flexible for multithreaded programming?

a)

One-to-One

b)

Many-to-One

c)

Many-to-Many

d)

Single-threaded

30.

What is the primary function of a thread pool?

a)

To execute processes sequentially

b)

To pre-create threads and wait for tasks

c)

To limit thread execution time

d)

To handle interposes communication

31.

What is thread-local storage (TLS) used for?

a)

To store data shared by all threads

b)

To store data unique to each thread

c)

To manage process scheduling

d)

To cancel threads

32.

What is process synchronization?

a)

A technique to manage memory

b)

A method to manage the execution order of processes

c)

A method to protect critical sections in concurrent processes

d)

A way to allocate resources

33.

What is the critical section problem?

a)

Ensuring mutual exclusion when accessing shared data

b)

Managing memory allocation

c)

Handling I/O operations

d)

Providing process scheduling

34.

What is a race condition?

a)

A condition where processes run at maximum speed

b)

A situation where multiple processes try to modify shared data at the same time

c)

A process that waits indefinitely for resources

d)

A condition where a process completes its execution first

35.

What does mutual exclusion ensure in process synchronization?

4 lines
36.

What does mutual exclusion ensure in process synchronization?

a)

Multiple processes can enter the critical section at the same time

b)

Only one process is allowed in the critical section at a time

c)

All processes execute simultaneously

d)

Processes wait indefinitely to access resources

37.

What is a semaphore?

a)

A tool that prevents process execution

b)

A synchronization tool that controls access to shared resources

c)

A memory allocation technique

d)

A scheduling algorithm

38.

What is the bounded-buffer problem?

a)

A memory allocation problem

b)

A synchronization problem where a buffer has a fixed size

c)

A scheduling algorithm

d)

A paging problem

39.

Which variable is used in Peterson’s Solution to decide which process enters the critical section?

a)

Buffer

b)

Counter

c)

Flag

d)

Turn

40.

What is a monitor in process synchronization?

a)

A hardware tool for process management

b)

A high-level abstraction that provides process synchronization

c)

A memory allocation mechanism

d)

A process scheduling algorithm

41.

What is the primary goal of CPU scheduling?

a)

To reduce the number of processes

b)

To maximize CPU utilization

c)

To allocate more memory

d)

To handle I/O operations

42.

What is the CPU–I/O Burst Cycle?

a)

A cycle where processes only use the CPU

b)

A cycle where processes alternate between CPU execution and I/O waiting

c)

A cycle of only I/O operations

d)

A single process executing continuously

43.

What does the dispatcher do in CPU scheduling?

a)

Terminates processes

b)

Allocates memory to processes

c)

Gives control of the CPU to the selected process

d)

Allocates I/O devices

44.

What is the goal of the First-Come, First-Served (FCFS) scheduling algorithm?

a)

To reduce context switching

b)

To run the process with the shortest burst time first

c)

To execute processes in the order they arrive

d)

To execute processes with the highest priority first

45.

Which CPU scheduling algorithm minimizes average waiting time?

a)

Round Robin

b)

First-Come, First-Served

c)

Shortest-Job-First (SJF)

d)

Priority scheduling

46.

What is a preemptive version of the Shortest-Job-First algorithm called?

a)

Shortest-remaining-time-first

b)

Round Robin

c)

Priority scheduling

d)

First-Come, First-Served

47.

What is the main disadvantage of the Priority Scheduling algorithm?

a)

Processes are executed in random order

b)

It causes high CPU utilization

c)

Low-priority processes may never execute (starvation)

d)

It has no solution for deadlock

48.

What is the purpose of aging in Priority Scheduling?

a)

To prevent low-priority processes from starvation

b)

To increase the priority of CPU-bound processes

c)

To reduce context switching

d)

To terminate waiting processes

49.

Which scheduling algorithm assigns the highest priority to the process with the earliest deadline?

a)

First-Come, First-Served

b)

Earliest Deadline First (EDF)

c)

Priority Scheduling

d)

Round Robin

50.

What is processor affinity?

a)

The preference of a process to run on a particular processor

b)

The process of scheduling based on time

c)

The process of allocating memory to processors

d)

The division of the CPU into multiple cores

51.

Which POSIX scheduling class uses a First-Come, First-Served strategy?

a)

SCHED_RR

b)

SCHED_FIFO

c)

SCHED_OTHER

d)

SCHED_PRIORITY

52.

The main function of an operating system is to manage hardware and software resources.

a)

صح يالأمير

b)

خطأ يالأمير

53.

A byte is the smallest unit of computer storage.

a)

True

b)

False

54.

Solid-state drives (SSDs) are generally slower than hard disks.

a)

True

b)

False

55.

An interrupt-driven operating system responds to both hardware and software interrupts.

a)

True

b)

False

56.

Virtual memory allows processes to execute even if they are not completely loaded into RAM.

a)

True

b)

False

57.

A user interface is necessary for all types of operating systems.

a)

True

b)

False

58.

System calls are always written in assembly language.

a)

True

b)

False

59.

The operating system must detect and handle errors during program execution.

a)

True

b)

False

60.

CLI is more user-friendly than GUI.

a)

True

b)

False

61.

System programs do not interact with the operating system kernel.

a)

True

b)

False

62.

A process is considered a passive entity.

a)

True

b)

False

63.

The program counter is part of the process control block.

a)

True

b)

False

64.

A terminated process can be restarted without reloading it into memory.

a)

True

b)

False

65.

Context switching is considered an overhead because it does no useful work.

a)

True

b)

False

66.

The long-term scheduler selects processes that are ready to execute immediately.

a)

True

b)

False

67.

Multithreaded programs can improve the responsiveness of applications.

a)

True

b)

False

68.

Threads always run in isolation and do not share resources.

a)

True

b)

False

69.

Thread creation is more expensive than process creation.

a)

True

b)

False

70.

In a One-to-One threading model, every user thread is mapped to a kernel thread.

a)

True

b)

الاجابه ترو

71.

Thread pools help limit the number of active threads in an application.

a)

True

b)

False

72.

The critical section is a part of the code where shared data is accessed.

a)

True

b)

False

73.

The bounded-buffer problem only occurs when the buffer is empty.

a)

True

b)

False

74.

Deadlock occurs when processes are waiting indefinitely for resources held by each other.

a)

True

b)

False

75.

A binary semaphore can take any integer value.

a)

True

b)

False

76.

Mutual exclusion guarantees that multiple processes can enter the critical section at the same time.

a)

True

b)

False

77.

CPU utilization refers to how effectively the CPU is kept busy.

a)

True

b)

False

78.

First-Come, First-Served (FCFS) is a preemptive scheduling algorithm.

a)

True

b)

False

79.

In Round Robin scheduling, each process gets an equal share of the CPU in a circular order.

a)

True

b)

False

80.

Shortest-Job-First (SJF) always gives the longest average waiting time.

a)

True

b)

False

81.

Priority scheduling can result in starvation of low-priority processes.

a)

True

b)

False

82.

Preemptive scheduling allows the CPU to switch between processes at any time.

a)

True

b)

False

83.

The Round Robin algorithm is ideal for time-sharing systems.

a)

True

b)

False

84.

Processor affinity means that a process is free to run on any available processor.

a)

True

b)

False