Study Guide Q's Flashcards
Which of the following describes rotational delay?
A) Time to move the read/write head to the correct track
B) Time for the desired sector to rotate under the read/write head
C) Time to transfer data to the computer once it is under the read/write head
D) Time to spin up the disk to its operational speed
B) Time for the desired sector to rotate under the read/write head
Which of the following describes seek time?
A) Time for the desired sector to rotate under the read/write head
B) Time to move the read/write head to the correct track
C) Time to transfer data once the head is in position
D) Time to access data on a solid-state drive
B) Time to move the read/write head to the correct track
You have memory blocks of sizes: 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order). A process requests 250 KB of memory.
Which block would Best Fit choose?
300 KB
You have memory blocks of sizes: 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order). A process requests 250 KB of memory.
Which block would Worst Fit choose?
600 KB
You have memory blocks of sizes: 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order). A process requests 250 KB of memory.
Which block would First Fit choose?
500 KB
You have memory blocks of sizes: 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in that order). A process requests 250 KB of memory.
Which block would Next Fit choose? (Assume the last allocation was made in the 300 KB block)
600 KB
What is the primary role of an operating system?
A) To manage the hardware and software resources of the system
B) To act as a bridge between hardware capabilities and user needs
C) To run applications directly without hardware intervention
D) To replace hardware functionality entirely
B) To act as a bridge between hardware capabilities and user needs
Which feature of the OS allows multiple programs to run simultaneously?
A) Abstraction
B) Multiprogramming
C) Resource Allocation
D) Virtualization
B) Multiprogramming
How does the OS abstract hardware functionality for users?
A) By giving direct access to hardware
B) By simplifying and hiding the complexity of hardware
C) By requiring applications to handle hardware-level instructions
D) By allowing hardware to run independently of the OS
B) By simplifying and hiding the complexity of hardware
Virtualization in an operating system:
A) Provides direct access to hardware components
B) Creates the illusion of more favorable hardware characteristics
C) Duplicates hardware components for redundancy
D) Runs only one application at a time
B) Creates the illusion of more favorable hardware characteristics
Which component of the OS is primarily responsible for managing resources?
A) Kernel
B) User Interface
C) File System
D) Device Driver
A) Kernel
What is a process?
A) A hardware component of the computer
B) A sequence of static instructions
C) A program in execution
D) A component of the OS
C) A program in execution
Which of the following is a characteristic of a thread?
A) Operates independently of processes
B) Does not share memory space with other threads in the same process
C) Is a smaller unit of execution within a process
D) Is managed only at the hardware level
C) Is a smaller unit of execution within a process
What does the Process Control Block (PCB) store?
A) Information about a process, such as its state, memory, and open files
B) Details about all threads in the system
C) The instructions for a process
D) Information about CPU hardware
A) Information about a process, such as its state, memory, and open files
In which scheduling algorithm does each process get a fixed time quantum?
A) Shortest Job First (SJF)
B) Priority Scheduling
C) Round Robin (RR)
D) First-Come, First-Served (FCFS)
C) Round Robin (RR)
What is a critical section?
A) A part of the OS that schedules threads
B) A file that controls resource access
C) A section of code that must not be executed by more than one process at a time
D) A memory area shared by multiple processes
C) A section of code that must not be executed by more than one process at a time
What is the difference between user-level threads and kernel-level threads?
A) User-level threads are managed by the OS kernel, while kernel-level threads are managed by user applications
B) User-level threads are managed in user space, while kernel-level threads are managed by the OS kernel
C) Kernel-level threads are faster to manage than user-level threads
D) User-level threads require no scheduling mechanism
B) User-level threads are managed in user space, while kernel-level threads are managed by the OS kernel
What is the purpose of paging in memory management?
A) To allocate memory in fixed-size blocks
B) To divide programs into logical segments
C) To map virtual memory pages to physical frames
D) To allocate entire memory blocks to processes
C) To map virtual memory pages to physical frames
What is internal fragmentation?
A) Unused memory outside allocated regions
B) Unused memory within allocated blocks
C) Wasted memory due to segmentation
D) Wasted memory from page tables
B) Unused memory within allocated blocks
What is the role of the Translation Lookaside Buffer (TLB)?
A) Manages all memory allocations
B) Caches recent address translations for faster access
C) Handles interrupts during memory access
D) Prevents segmentation faults
B) Caches recent address translations for faster access
Which memory management technique combines segmentation and paging?
A) Virtual Memory
B) Hybrid Memory Management
C) Relocation
D) Cache Memory
B) Hybrid Memory Management
What is external fragmentation?
A) Unused memory between allocated memory blocks
B) Unused memory within allocated blocks
C) Memory waste caused by paging
D) Memory waste from TLB misses
A) Unused memory between allocated memory blocks
Which RAID level provides no redundancy but increases performance?
A) RAID 0
B) RAID 1
C) RAID 5
D) RAID 6
A) RAID 0
Which RAID level duplicates data on two disks for fault tolerance?
A) RAID 0
B) RAID 1
C) RAID 5
D) RAID 6
B) RAID 1