Free IKM Operating Systems Questions and Answers 1 — Questions and Answers
Question 1: Which of the following is a key function of an operating system?
- Word processing
- Managing hardware resources (Correct answer)
- Compiling programs
- Web browsing
Correct answer: Managing hardware resources
An operating system (OS) serves as the core software that manages all computer hardware and software resources. Its primary function is to provide a platform for applications to run and to control peripherals like memory, processors, and input/output devices. Without an OS, the computer hardware would not be able to communicate or function cohesively.
Question 2: What is the purpose of virtual memory in an operating system?
- To increase processing speed
- To extend physical memory using disk space (Correct answer)
- To store user files
- To protect data from viruses
Correct answer: To extend physical memory using disk space
Virtual memory is a memory management technique that allows an operating system to compensate for shortages of physical memory by temporarily transferring data from RAM to disk storage. This process creates the illusion of a larger main memory than is physically available. It enables the system to run more applications or handle larger data sets than its physical RAM would otherwise permit, improving overall system performance and stability.
Question 3: Which of the following is a type of multitasking used by modern operating systems?
- Cooperative multitasking
- Preemptive multitasking (Correct answer)
- Linear multitasking
- Hierarchical multitasking
Correct answer: Preemptive multitasking
Preemptive multitasking is a method where the operating system controls when a process can use the CPU and can interrupt it at any time to allow another process to run. This ensures that all running applications get a fair share of CPU time, preventing any single application from monopolizing system resources. Modern operating systems like Windows, macOS, and Linux utilize preemptive multitasking to provide a responsive user experience.
Question 4: In which type of operating system is time-sharing a common feature?
- Real-time OS
- Single-tasking OS
- Distributed OS
- Multi-user OS (Correct answer)
Correct answer: Multi-user OS
Time-sharing is a technique that enables multiple users to simultaneously access a single computer system, each receiving a slice of the CPU's processing time. This is a common feature in multi-user operating systems, where the OS rapidly switches between different users' processes, giving each the impression of having dedicated access. This allows for efficient resource utilization and concurrent user interaction on shared systems.
Question 5: Which of the following is an example of a real-time operating system (RTOS)?
- Windows 10
- Linux
- QNX (Correct answer)
- macOS
Correct answer: QNX
QNX is a well-known example of a real-time operating system (RTOS), designed for applications requiring precise timing and deterministic behavior. Unlike general-purpose operating systems like Windows or macOS, RTOS prioritize predictable response times to events, making them suitable for embedded systems, industrial control, and automotive applications. Its microkernel architecture contributes to its reliability and real-time capabilities.
Which of the following is a key function of an operating system?