ICT Operating System Fundamentals — Questions and Answers
Question 1: Which scheduling algorithm can lead to starvation of low-priority processes?
- Round Robin
- First-Come First-Served
- Priority Scheduling (Correct answer)
- Shortest Job First
Correct answer: Priority Scheduling
Priority Scheduling can starve low-priority processes if higher-priority processes continuously arrive.
Question 2: What is a 'race condition' in operating systems?
- A CPU speed benchmark test
- An outcome that depends on the unpredictable sequence of thread execution (Correct answer)
- A method to speed up memory access
- A type of disk scheduling algorithm
Correct answer: An outcome that depends on the unpredictable sequence of thread execution
A race condition occurs when system behavior depends on the relative timing of events such as thread execution order.
Question 3: Which of the following best describes a 'semaphore' in OS context?
- A type of file system
- A synchronization variable used to control access to shared resources (Correct answer)
- A memory paging technique
- A CPU scheduling queue
Correct answer: A synchronization variable used to control access to shared resources
A semaphore is an integer variable used to solve critical section problems and synchronize concurrent processes.
Question 4: What is the purpose of the Translation Lookaside Buffer (TLB)?
- To store recently executed instructions
- To cache recent virtual-to-physical address translations (Correct answer)
- To manage disk I/O requests
- To schedule CPU bursts
Correct answer: To cache recent virtual-to-physical address translations
The TLB is a hardware cache that speeds up virtual address translation by storing recent page table entries.
Question 5: In a multi-threaded process, what do threads share?
- Program counter and stack only
- Code, data, and OS resources like open files (Correct answer)
- Only the CPU registers
- Nothing — each thread is fully independent
Correct answer: Code, data, and OS resources like open files
Threads within the same process share the code section, data section, and OS resources, but each has its own stack and registers.
Question 6: What does the 'working set' model in virtual memory refer to?
- The set of all pages in RAM
- The set of pages a process is actively using in a time window (Correct answer)
- Pages recently swapped to disk
- The OS kernel pages in memory
Correct answer: The set of pages a process is actively using in a time window
The working set model tracks the pages a process has referenced recently to predict what pages it will need.
Question 7: Which condition is NOT required for deadlock to occur?
- Mutual exclusion
- Hold and wait
- Preemption (Correct answer)
- Circular wait
Correct answer: Preemption
Deadlock requires mutual exclusion, hold and wait, no preemption, and circular wait — preemption prevents deadlock, not causes it.
Question 8: What is 'thrashing' in an operating system?
- Excessive CPU overclocking
- A state where the OS spends more time paging than executing processes (Correct answer)
- Rapid context switching between threads
- Disk fragmentation causing slow reads
Correct answer: A state where the OS spends more time paging than executing processes
Thrashing occurs when a system has too many processes competing for too few memory frames, causing constant page faults.
Question 9: What is the main difference between a hard link and a soft (symbolic) link?
- Hard links work across file systems; soft links do not
- Soft links point directly to inode data; hard links use a name alias
- Hard links point to the inode; soft links point to the filename path (Correct answer)
- There is no practical difference
Correct answer: Hard links point to the inode; soft links point to the filename path
A hard link directly references the file's inode, while a symbolic link stores the path to another file name.
Question 10: Which OS component is responsible for translating high-level I/O calls into device-specific operations?
- Device driver (Correct answer)
- File system
- Virtual memory manager
- Process scheduler
Correct answer: Device driver
Device drivers provide an abstraction layer that translates generic OS I/O requests into hardware-specific commands.
Question 11: In the context of CPU scheduling, what is 'aging'?
- Gradually increasing the priority of waiting processes to prevent starvation (Correct answer)
- Reducing CPU speed when idle
- Swapping old processes to disk
- Removing processes that have run too long
Correct answer: Gradually increasing the priority of waiting processes to prevent starvation
Aging gradually increases the priority of processes that have been waiting a long time, preventing starvation.
Question 12: What does 'copy-on-write' (COW) enable in process forking?
- Immediate full duplication of parent memory
- Parent and child share memory pages until one modifies them (Correct answer)
- Child process writes to disk instead of RAM
- Automatic backup of forked process data
Correct answer: Parent and child share memory pages until one modifies them
Copy-on-write defers page copying until either the parent or child process actually modifies a shared page.
Question 13: Which RAID level provides both striping and mirroring?
- RAID 0
- RAID 1
- RAID 5
- RAID 10 (Correct answer)
Correct answer: RAID 10
RAID 10 combines striping (RAID 0) for performance and mirroring (RAID 1) for redundancy.
Question 14: What is the role of the 'inode' in a Unix-like file system?
- It stores the file's actual content data
- It contains metadata about a file such as permissions, size, and disk block locations (Correct answer)
- It is the directory entry with the file's name
- It is a network interface identifier
Correct answer: It contains metadata about a file such as permissions, size, and disk block locations
An inode stores file metadata (permissions, timestamps, size, block pointers) but not the file name or content.
Question 15: What distinguishes a microkernel architecture from a monolithic kernel?
- Microkernels run all OS services in kernel space for speed
- Microkernels keep only essential functions in kernel space and run services in user space (Correct answer)
- Monolithic kernels are smaller in code size
- Microkernels do not support multitasking
Correct answer: Microkernels keep only essential functions in kernel space and run services in user space
Microkernels minimize the kernel by running services like file systems and drivers in user space, improving modularity.
Question 16: What happens during a context switch?
- The OS terminates the running process
- The CPU saves the current process state and loads the state of the next scheduled process (Correct answer)
- Memory pages are swapped to disk
- A new thread is created within the current process
Correct answer: The CPU saves the current process state and loads the state of the next scheduled process
A context switch saves the PCB of the running process and restores the PCB of the next process to run.
Question 17: Which page replacement algorithm has the lowest page fault rate theoretically?
- LRU (Least Recently Used)
- FIFO (First In First Out)
- Optimal (OPT) (Correct answer)
- Clock Algorithm
Correct answer: Optimal (OPT)
The Optimal algorithm replaces the page that will not be used for the longest future time, minimizing page faults.
Question 18: In Unix, what does the 'fork()' system call return to the parent process?
- 0
- The PID of the child process (Correct answer)
- -1 on success
- The memory address of the child
Correct answer: The PID of the child process
fork() returns the child's PID to the parent, and 0 to the child — allowing each to identify its role.
Question 19: What is the purpose of a 'mutex' (mutual exclusion lock)?
- To allow multiple threads to read shared data simultaneously
- To ensure only one thread accesses a critical section at a time (Correct answer)
- To schedule threads by priority
- To detect memory leaks in concurrent programs
Correct answer: To ensure only one thread accesses a critical section at a time
A mutex ensures that only one thread can hold the lock and execute within the critical section at any given time.
Question 20: Which of the following is an example of non-preemptive CPU scheduling?
- Round Robin
- Preemptive Priority Scheduling
- First-Come First-Served (FCFS) (Correct answer)
- Shortest Remaining Time First
Correct answer: First-Come First-Served (FCFS)
FCFS is non-preemptive because once a process starts executing, it runs to completion or until it voluntarily yields.
Question 21: What is 'internal fragmentation' in memory management?
- Wasted memory between allocated blocks
- Unused memory within an allocated block due to fixed-size partitions (Correct answer)
- Excessive page swapping
- Memory corruption from pointer errors
Correct answer: Unused memory within an allocated block due to fixed-size partitions
Internal fragmentation is wasted space inside an allocated memory partition when the process doesn't need all of it.
Which scheduling algorithm can lead to starvation of low-priority processes?
What Practice Test Geeks adds beyond an AI chat for ICT
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length ICT mock exam — 30 questions in 45 minutes with a 70% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed ICT question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- A printable ICT cheat sheet you can print or save as a PDF.
- ICT flashcards built from the same question bank.
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Editorial policy