NEW
Font size
WorksheetsComputer Systems and Operating 3
Total questions: 56
Worksheet time: 28mins
What is an Operating System?
A hardware component
A program that acts as an intermediary between a user and the computer hardware
A type of application
None of the above
Which of the following is not a component of a computer system?
Hardware
Users
I/O Devices
Software Programs
Which storage is directly accessible by the CPU?
Main Memory
Hard Disk
SSD
Cache
What is the main function of a bootstrap program?
To store data
To manage processes
To initialize the system and load the operating system kernel
To control I/O devices
What is an interrupt in an operating system?
A hardware failure
A software process
A signal that temporarily halts the current process
A device controller function
Which of the following is an example of secondary storage?
CPU
RAM
Hard Disk
Cache
What is multiprogramming?
A system that allows one program to run at a time
A system where multiple programs are kept in memory and executed by the CPU
A type of operating system
None of the above
What is a kernel?
A program running all the time on the computer
A user program
A type of hardware
None of the above
What does a device controller do?
Manages CPU cycles
Manages I/O devices
Controls memory allocation
None of the above
What is the main purpose of caching in computer systems?
To increase storage capacity
To improve data retrieval speed
To reduce memory usage
None of the above
The main function of an operating system is to manage hardware and software resources.
True
False
A byte is the smallest unit of computer storage.
True
False
Solid-state drives (SSDs) are generally slower than hard disks.
True
False
An interrupt-driven operating system responds to both hardware and software interrupts.
True
False
Virtual memory allows processes to execute even if they are not completely loaded into RAM.
True
False
Multiprogramming requires the system to keep only one job in memory at a time.
True
False
The CPU can directly access secondary storage devices like hard disks.
True
False
Symmetric multiprocessing means each processor performs specific assigned tasks.
True
False
An operating system kernel is the only program running at all times on the computer.
True
False
What is the main function of an operating system?
To compile programs
To manage hardware and software resources
To write programs
To design interfaces
Which of the following is not a user interface provided by an operating system?
Command-Line Interface (CLI)
Graphic User Interface (GUI)
Database Management Interface (DBI)
Batch Interface
What is a system call?
A command to the hardware
A program that compiles code
A request to the OS for service by a program
A debugging tool
Operating systems can use either CLI, GUI, or both interfaces for user interaction.
True
False
System calls are used by user programs to request services from the operating system.
True
False
Batch interfaces allow direct user interaction with the system in real-time.
True
False
What is a process?
A program stored on the hard drive
A program in execution
A static file
A user interface
Which of the following is not a process state?
Running
Waiting
Terminated
Deleted
Which part of the process contains the current activity such as the program counter?
Stack
Data section
Text section
Heap
What is the main advantage of using system calls via APIs instead of directly accessing them?
It is faster
It hides complex OS details from the programmer
It allows debugging
It provides more control over hardware
What type of system call is used for managing processes, like creating or terminating them?
Device management
Process control
File management
Communication
A user interface is necessary for all types of operating systems.
True
False
System calls are always written in assembly language.
True
False
The operating system must detect and handle errors during program execution
True
False
CLI is more user-friendly than GUI.
True
False
System programs do not interact with the operating system kernel.
True
False
The layered approach of an operating system means each layer depends on the next higher layer.
True
False
Which type of system call is used to create or delete a file?
Process control
File management
Device management
Information maintenance
What is the main purpose of a system boot?
To shut down the computer
To load the operating system into memory
To execute a program
To run diagnostic tests
Which of the following is a communication method between processes?
File reading
Message passing
Command-line interface
Error detection
Which operating system component is responsible for error detection?
CPU
Memory
Operating system
Application programs
What kind of interface allows users to type commands directly to the operating system?
Batch interface
Command-Line Interface (CLI)
Graphic User Interface (GUI)
Touchscreen Interface
What is the role of the Process Control Block (PCB)?
To store the program file
To store the state of the process
To handle input/output operations
To manage memory
Which of the following is true about a context switch?
It deletes the process
It swaps the process state between the CPU and memory
It ends a process
It saves and loads the process state
What is a job queue in process scheduling?
A set of jobs waiting for input
A set of jobs waiting for the user to assign
A set of all processes in the system
A set of processes that are ready for execution
What is the short-term scheduler responsible for?
Selecting processes for the ready queue
Managing I/O requests
Allocating memory
Executing processes in the CPU
What is a zombie process?
A process that has not yet started
A process that is waiting to be assigned to a CPU
A process that has finished execution but has not been removed from the process table
A process in the ready state
Which of the following IPC mechanisms uses memory shared between processes?
Message passing
Signals
Shared memory
Sockets
A process is considered a passive entity.
True
False
The program counter is part of the process control block.
True
False
A terminated process can be restarted without reloading it into memory.
True
False
Context switching is considered an overhead because it does no useful work.
True
False
A process can exist in the waiting state when it needs I/O to proceed.
True
False
The long-term scheduler selects processes that are ready to execute immediately.
True
False
Shared memory communication is controlled by the operating system.
True
False
Blocking communication requires the sender to wait until the message is received.
True
False
Message passing does not require shared memory between processes.
True
False
