Q1
Q1 Which component of an operating system is responsible for managing files?
File System Manager
Memory Manager
Process Manager
Device Driver
Q2
Q2 An operating system's primary function includes which of the following?
Providing user interface
Managing hardware resources
Running applications
All of the above
Q3
Q3 The kernel of an operating system is:
The user interface
The part that manages hardware interactions
An application software
A type of virus
Q4
Q4 Which of the following is not a type of operating system?
Batch Operating System
Real-time Operating System
Sequential Operating System
Distributed Operating System
Q5
Q5 In an operating system, what is the role of a scheduler?
To allocate disk space
To manage user accounts
To determine which process runs at a certain point in time
To configure network settings
Q6
Q6 Multitasking in operating systems allows for:
Multiple users to share a single device
A single user to perform multiple tasks at one time
Devices to run without an OS
None of the above
Q7
Q7 Which command in Unix is used to display the current directory's contents?
ls
cd
mkdir
touch
Q8
Q8 A user complains that they cannot access the internet on their computer. What should be checked first?
The web browser's homepage setting
The network cable connection
The installed operating system
The computer's power status
Q9
Q9 A computer is running very slowly. The most likely cause is:
Too many browser tabs open
Insufficient RAM
Outdated graphics drivers
A disconnected printer
Q10
Q10 A process is:
An instance of a program in execution
A set of instructions stored on disk
The same as a thread
A type of computer virus
Q11
Q11 Which of the following is true about threads within the same process?
They share the same CPU but have different memory
They have separate CPUs
They share the same memory space
None of the above
Q12
Q12 The primary difference between a process and a thread is:
A thread is a part of a process
A process is less resource-intensive
Threads do not share resources
All of the above
Q13
Q13 In a multiprocessing system, processes:
Are executed one at a time
Can share resources efficiently
Are executed in parallel
Must communicate using inter-process communication (IPC)
Q14
Q14 Context switching is:
The process of saving and restoring the state of a CPU so that multiple processes can share a single CPU resource
The act of switching between different applications by the user
A method of disk scheduling
None of the above
Q15
Q15 Which of the following scenarios best demonstrates a deadlock?
Two or more processes are waiting indefinitely for an event that can only be caused by one of the waiting processes
A process waiting for a resource that's never released
A thread that is executing a non-terminating loop
All of the above
Q16
Q16 In operating systems, a semaphore is:
A type of malware
A signal mechanism
A low-level programming language
An I/O device driver
Q17
Q17 The main purpose of thread synchronization is to:
Ensure that only one thread can access the resource at any given time
Make sure that threads run at the same speed
Prevent threads from executing
None of the above
Q18
Q18 In most modern operating systems, a new thread is created by:
Forking a process
Using a thread library function like pthread_create in C
Cloning the operating system
Writing a new kernel module
Q19
Q19 If a program with multiple threads is using more CPU resources than expected, you should first:
Check for infinite loops within threads
Increase the number of CPUs in the system
Delete unused threads
None of the above
Q20
Q20 A thread is unable to proceed with its execution because it's waiting for a resource that's held by another thread. This scenario describes:
A deadlock
A segmentation fault
A syntax error
A runtime error
Q21
Q21 When a process is not responding to user inputs, a likely cause is:
The process is in a deadlock state
The process is executing a high-priority task
The user input device is malfunctioning
The process is waiting for a network response
Q22
Q22 To identify a process consuming an unusually high amount of system resources, you would use:
The ps command
The top command
The kill command
The cd command
Q23
Q23 What is the purpose of process scheduling in an operating system?
To allocate CPU time to processes
To allocate memory to processes
To manage the file system
To monitor system performance
Q24
Q24 Which scheduling algorithm assigns CPU time based on process priority?
First-Come, First-Served
Shortest Job First
Priority Scheduling
Round-Robin
Q25
Q25 The Round-Robin scheduling algorithm is designed to:
Prevent process starvation
Prioritize short jobs
Minimize resource allocation
Maximize system security
Q26
Q26 In the context of process scheduling, what does "context switch" mean?
Changing the process state from running to waiting
Switching the CPU from one process to another
Updating the process priority
None of the above
Q27
Q27 Which of the following is a disadvantage of the Shortest Job First (SJF) scheduling algorithm?
It can cause starvation of longer processes
It is too fast
It requires too much memory
It is not suitable for batch processing
Q28
Q28 What is a major advantage of using the Multilevel Queue scheduling algorithm?
It allows processes to move between queues
It reduces the overall system security
It simplifies the scheduler design
It increases the CPU utilization
Q29
Q29 How does the Real-Time Operating System (RTOS) scheduling differ from general-purpose operating system scheduling?
RTOS prioritizes tasks based on their urgency and deadlines
RTOS uses only the First-Come, First-Served algorithm
RTOS does not allow task preemption
RTOS schedules tasks alphabetically
Q30
Q30 In process scheduling, the term "quantum" refers to:
The maximum size of data a process can handle
The time a process spends in the CPU before being preempted
The priority level of a process
The number of processes in the system