OS PRELIM Flashcards
What is the main purpose of an operating system?
a) To allow direct interaction between the user and hardware
b) To manage hardware and provide an environment for executing programs
c) To provide internet access
d) To replace application programs
To manage hardware and provide an environment for executing programs
Which of the following is NOT a function of an operating system?
a) File management
b) Hardware management
c) Creating application software
d) Process scheduling
Creating application software
The operating system acts as an intermediary between:
a) Hardware and software
b) The user and hardware
c) The CPU and memory
d) Application software and firmware
The user and hardware
What component of the computer system executes instructions and performs calculations?
a) RAM
b) Hard Disk
c) CPU
d) Cache
CPU
What is the role of the device controller in a computer system?
a) To store all programs and data
b) To manage specific hardware devices
c) To execute instructions
d) To act as the central processing unit
To manage specific hardware devices
An interrupt is used to:
a) Store files in memory
b) Signal the CPU that an event requires attention
c) Transfer data from RAM to the CPU
d) Restart the operating system
Signal the CPU that an event requires attention
Which of the following best describes multiprogramming?
a) Running multiple processes at once for increased CPU utilization
b) Using multiple CPUs to execute a single process
c) Executing a single program in sequence
d) Using one program to control multiple CPUs
Running multiple processes at once for increased CPU utilization
The kernel mode in an operating system is used for:
a) Running user applications
b) Executing privileged operations of the OS
c) Running antivirus software
d) Managing only input devices
Executing privileged operations of the OS
What is the purpose of a timer in an operating system?
a) To allow user applications to run indefinitely
b) To schedule system reboots
c) To prevent infinite loops in programs
d) To synchronize multiple operating systems
To prevent infinite loops in programs
In an operating system, a process is:
a) A static entity stored on disk
b) A program in execution
c) A hardware component that controls I/O devices
d) A special type of file in the OS
A program in execution
The process that creates other processes in an operating system is called:
a) Child process
b) Parent process
c) System process
d) Background process
Parent process
Which of the following best describes virtual memory?
a) A portion of RAM reserved for the operating system
b) A method for storing files permanently
c) A technique that uses secondary storage to extend RAM
d) A cache for frequently accessed files
A technique that uses secondary storage to extend RAM
What is the main function of a file system in an OS?
a) To create and delete processes
b) To manage files and directories
c) To increase CPU speed
d) To prevent software bugs
To manage files and directories
Which of the following is an example of secondary storage?
a) RAM
b) Cache memory
c) Hard Disk Drive (HDD)
d) CPU registers
Hard Disk Drive (HDD)
What is the purpose of caching in an OS?
a) To increase processing power
b) To store frequently used data for faster access
c) To eliminate the need for RAM
d) To replace hard disk storage
To store frequently used data for faster access
A process control block (PCB) contains information about:
a) Process state, program counter, and CPU registers
b) Only the program code
c) File system permissions
d) The list of all installed applications
Process state, program counter, and CPU registers
A context switch occurs when:
a) A process is created
b) The CPU switches from one process to another
c) A file is deleted
d) The system is rebooted
The CPU switches from one process to another
Which scheduling queue holds processes that are ready to execute?
a) Job queue
b) Ready queue
c) Waiting queue
d) Terminated queue
Ready queue
What is the purpose of interprocess communication (IPC)?
a) To allow processes to share data and communicate
b) To increase RAM capacity
c) To speed up CPU processing
d) To disable background processes
To allow processes to share data and communicate
Which IPC mechanism allows processes to communicate through a shared memory region?
a) Message passing
b) Pipes
c) Shared memory
d) Interrupts
Shared memory
What is the difference between blocking and non-blocking communication?
a) Blocking waits until an event occurs; non-blocking continues execution
b) Non-blocking pauses execution, while blocking does not
c) Both terms refer to the same process
d) Blocking is only used in networking
Blocking waits until an event occurs; non-blocking continues execution
What is the main purpose of an operating system’s security mechanism?
a) To allow unrestricted access to system resources
b) To prevent unauthorized access and protect system data
c) To increase CPU speed
d) To delete unused files automatically
To prevent unauthorized access and protect system data
A firewall is an example of which security technique?
a) Process scheduling
b) User authentication
c) Network security
d) Virtual memory management
Network security
What is the difference between protection and security in an OS?
a) Protection controls resource access; security defends against attacks
b) Protection is for networking, security is for memory management
c) Protection prevents data loss, security prevents CPU overheating
d) Protection is only for user authentication, while security is for firewalls
Protection controls resource access; security defends against attacks