HomeSubjectsUniversityBlogAbout

Secondary Storage

Topic in Operating Systems

210 total MCQsShowing 30 with explanations10 Easy10 Medium10 Hard

About This Topic

Secondary storage is non-volatile storage, such as hard disks and solid-state drives, that keeps programs and data permanently, unlike volatile main memory. Questions on hard disks break access time into seek time, rotational latency and transfer time, and many are worked disk-scheduling problems: given a request queue and head position, compute total head movement for FCFS, SSTF, SCAN, C-SCAN, LOOK or C-LOOK. RAID levels 0, 1, 5, 6 and 10 are compared for redundancy and capacity. You may also meet low-level formatting, partitions, boot blocks, bad-block handling, swap space, and SSD concepts like wear leveling, TRIM and the flash translation layer.

Below are 30 practice questions from a pool of 210 Secondary Storage MCQs, one of 12 topics in Operating Systems. Each shows the correct answer with an explanation; when you are ready, take a timed quiz to test recall under exam conditions.

Practice Questions

Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.

Secondary StorageEasy

Q1. Secondary storage refers to:

  1. A.Processor register files
  2. B.Non-volatile storage like disks✓ Correct
  3. C.Random access memory chips
  4. D.CPU cache memory modules

Explanation

Secondary storage consists of non-volatile storage devices (hard drives, SSDs, optical disks) that retain data even when power is off, providing permanent storage for programs and data.

Report an error in this question

Secondary StorageEasy

Q2. A hard disk drive (HDD) stores data on:

  1. A.Flash memory components
  2. B.Semiconductor memory chips
  3. C.Rotating magnetic platters✓ Correct
  4. D.Optical disc technology

Explanation

A hard disk drive stores data on rotating magnetic platters. Data is read/written by a read/write head that moves across the surface of the spinning platters.

Report an error in this question

Secondary StorageEasy

Q3. Seek time in a disk drive is:

  1. A.Time for the disk to spin to correct sector
  2. B.Time to transfer requested data from disk
  3. C.Time for the head to move to correct track✓ Correct
  4. D.Time to process and queue the I/O request

Explanation

Seek time is the time required for the disk arm to move the read/write head to the track (cylinder) containing the desired data. It is typically the largest component of disk access time.

Report an error in this question

Secondary StorageEasy

Q4. The SSTF (Shortest Seek Time First) disk scheduling algorithm:

  1. A.Services the closest request to head✓ Correct
  2. B.Always moves the head toward outer
  3. C.Services the largest request first
  4. D.Services all requests in arrival order

Explanation

SSTF selects the request with the minimum seek time from the current head position. It reduces total head movement but may cause starvation of requests far from the head.

Report an error in this question

Secondary StorageEasy

Q5. Rotational latency is:

  1. A.Time to start the disk motor from stopped
  2. B.Time for desired sector to rotate under head✓ Correct
  3. C.Time for the head to move to correct track
  4. D.Time to format a disk sector with structure

Explanation

Rotational latency is the time waiting for the desired sector to rotate under the read/write head after the head has been positioned on the correct track. On average, it is half of one full rotation time.

Report an error in this question

Secondary StorageEasy

Q6. A disk partition is:

  1. A.A physical disk drive unit in chassis
  2. B.A type of data file stored on the disk
  3. C.A backup copy of the entire disk drive
  4. D.An independent section with own file system✓ Correct

Explanation

A disk partition is a logically independent section of a physical disk. Each partition can be formatted with its own file system and acts as a separate logical disk.

Report an error in this question

Secondary StorageEasy

Q7. FCFS disk scheduling processes disk I/O requests:

  1. A.Based on closest track first
  2. B.In the order they arrive✓ Correct
  3. C.In reverse arrival order
  4. D.Based on request priority

Explanation

FCFS (First-Come, First-Served) disk scheduling services disk I/O requests in the order they arrive. It is simple but can result in long seek times due to random head movements.

Report an error in this question

Secondary StorageEasy

Q8. Disk formatting prepares a disk for use by:

  1. A.Deleting all viruses from the disk
  2. B.Creating file system structure on disk✓ Correct
  3. C.Increasing the disk rotational speed
  4. D.Adding more storage space to a disk

Explanation

Disk formatting creates the necessary data structures (file system metadata, directory structures, free space tracking) on the disk so the OS can store and retrieve files.

Report an error in this question

Secondary StorageEasy

Q9. A Solid State Drive (SSD) stores data using:

  1. A.Magnetic tape reels
  2. B.Magnetic platters
  3. C.Flash memory chips✓ Correct
  4. D.Optical technology

Explanation

SSDs use flash memory (NAND) to store data electronically. They have no moving parts, resulting in faster access times, lower power consumption, and greater durability compared to HDDs.

Report an error in this question

Secondary StorageEasy

Q10. Disk access time is the sum of:

  1. A.Only the seek time component alone
  2. B.Only the data transfer time component
  3. C.Only the rotational latency component
  4. D.Seek time, rotational latency, transfer time✓ Correct

Explanation

Total disk access time = seek time (moving head to correct track) + rotational latency (waiting for sector to come under head) + data transfer time (reading/writing the data).

Report an error in this question

Secondary StorageMedium

Q11. The SCAN (elevator) disk scheduling algorithm:

  1. A.Moves head one direction servicing, then reverses✓ Correct
  2. B.Only scans tracks that have pending I/O requests
  3. C.Scans files for viruses and malware threats
  4. D.Scans all tracks in a random selection order

Explanation

SCAN moves the disk arm in one direction, servicing all requests along the way until it reaches the end of the disk, then reverses direction. It is called the elevator algorithm due to its similarity to elevator movement.

Report an error in this question

Secondary StorageMedium

Q12. The C-SCAN (Circular SCAN) algorithm differs from SCAN in that:

  1. A.It only works on solid state drives not on HDDs
  2. B.It is slower than the standard SCAN algorithm is
  3. C.Returns to start without servicing for uniform wait✓ Correct
  4. D.It never reverses the head direction at all

Explanation

C-SCAN treats the cylinders as circular. When the head reaches one end, it immediately returns to the beginning without servicing requests during the return trip, providing more uniform wait times.

Report an error in this question

Secondary StorageMedium

Q13. The LOOK disk scheduling algorithm differs from SCAN in that:

  1. A.It is significantly slower than the SCAN algorithm
  2. B.Reverses when no more requests ahead, not at end✓ Correct
  3. C.It only handles one single request at a time
  4. D.It looks at all pending requests before starting

Explanation

LOOK is a practical version of SCAN that reverses direction when there are no more requests ahead in the current direction, rather than always traveling to the physical end of the disk.

Report an error in this question

Secondary StorageMedium

Q14. Why is disk scheduling less important for SSDs compared to HDDs?

  1. A.SSDs use a completely different data interface
  2. B.SSDs are actually slower than HDDs overall
  3. C.SSDs have no moving parts, so seek is negligible✓ Correct
  4. D.SSDs cannot handle multiple concurrent requests

Explanation

SSDs have no mechanical head movement, so there is no seek time or rotational latency. Access time is nearly uniform regardless of data location, making traditional disk scheduling algorithms less relevant.

Report an error in this question

Secondary StorageMedium

Q15. RAID 0 provides:

  1. A.Data redundancy only for safety
  2. B.Performance via striping, no redundancy✓ Correct
  3. C.Mirroring of data across two disks
  4. D.Parity-based protection from failure

Explanation

RAID 0 stripes data across multiple disks for improved read/write performance but provides no redundancy. If any disk fails, all data is lost.

Report an error in this question

Secondary StorageMedium

Q16. RAID 1 provides:

  1. A.No data protection of any kind
  2. B.Striping data across disks only
  3. C.Parity-based protection on disks
  4. D.Mirroring via duplicate on disks✓ Correct

Explanation

RAID 1 mirrors data by keeping identical copies on two or more disks. It provides high data reliability at the cost of double the storage, and read performance can be improved by reading from both disks.

Report an error in this question

Secondary StorageMedium

Q17. RAID 5 uses:

  1. A.Double parity across all the disks
  2. B.Block striping with distributed parity✓ Correct
  3. C.No redundancy of any kind at all
  4. D.Only mirroring for redundancy

Explanation

RAID 5 uses block-level striping with distributed parity spread across all disks. It can tolerate one disk failure, offers good read performance, and has efficient storage utilization (only one disk worth of parity).

Report an error in this question

Secondary StorageMedium

Q18. Low-level (physical) formatting creates:

  1. A.Logical partitions and volume table structures
  2. B.A high-level file system and all its metadata
  3. C.Sector structure with headers and error correction✓ Correct
  4. D.Directories and user files on the disk surface

Explanation

Low-level formatting divides the disk surface into sectors that the controller can read and write. It writes sector headers, data areas, and error-correcting codes for each sector. This is done at the factory.

Report an error in this question

Secondary StorageHard

Q19. What is the TRIM command in the context of SSDs?

  1. A.A command to reduce overall file size used
  2. B.A command to trim long file names shorter
  3. C.Tells SSD which blocks are free for erasure✓ Correct
  4. D.A command to resize existing disk partitions

Explanation

TRIM informs the SSD controller which blocks contain deleted data and can be erased. Without TRIM, the SSD must erase-before-write during future operations, degrading performance. TRIM enables proactive garbage collection.

Report an error in this question

Secondary StorageHard

Q20. What is wear leveling in SSDs and why is it necessary?

  1. A.Equalizing read speeds across memory blocks
  2. B.Distributing physical wear on the drive casing
  3. C.Distributing write/erase cycles evenly on cells✓ Correct
  4. D.Leveling the drive in its mounting bracket

Explanation

Flash memory cells have a limited number of write/erase cycles. Wear leveling distributes these operations evenly across all cells to prevent some cells from wearing out prematurely, extending the SSD's overall lifespan.

Report an error in this question

Secondary StorageMedium

Q21. The boot block on a disk contains:

  1. A.Bootstrap code to load OS✓ Correct
  2. B.User data and documents
  3. C.Error correction for sectors
  4. D.File system metadata tables

Explanation

The boot block (boot sector) contains the bootstrap program that is loaded and executed when the system starts up. It initializes the system and begins loading the operating system.

Report an error in this question

Secondary StorageMedium

Q22. A swap space on a disk is used for:

  1. A.Disk defragmentation temporary workspace
  2. B.Exchanging files between different users
  3. C.Temporary file storage for applications
  4. D.Storing pages swapped out from memory✓ Correct

Explanation

Swap space is a dedicated area on disk used by the virtual memory system to store pages that have been swapped out of main memory, extending the available memory beyond physical RAM.

Report an error in this question

Secondary StorageHard

Q23. What is the difference between RAID 5 and RAID 6?

  1. A.RAID 6 uses mirroring instead of distributed parity
  2. B.There is no significant difference between them at all
  3. C.RAID 6 is faster in overall performance than RAID 5
  4. D.RAID 6 uses double parity, surviving two disk failures✓ Correct

Explanation

RAID 6 extends RAID 5 by adding a second parity block, enabling the array to survive two simultaneous disk failures. This provides higher reliability at the cost of additional storage overhead and slightly slower writes.

Report an error in this question

Secondary StorageHard

Q24. What is disk striping and how does it improve performance?

  1. A.Painting visual stripes on the disk surface
  2. B.Removing unused sectors from the disk drive
  3. C.Compressing data stored on the disk drive
  4. D.Distributing data across disks for parallel I/O✓ Correct

Explanation

Disk striping splits data across multiple disks at the bit, byte, or block level. This allows parallel I/O operations - multiple disks can read/write simultaneously, multiplying the effective throughput.

Report an error in this question

Secondary StorageHard

Q25. What is the I/O scheduler's role in Linux and how do different schedulers (CFQ, deadline, noop) differ?

  1. A.They all work in an identical way overall
  2. B.CFQ ensures fairness; deadline prevents starvation; noop for SSDs✓ Correct
  3. C.They only differ in their names not in actual behavior
  4. D.They are all deprecated and no longer used in modern Linux

Explanation

CFQ (Completely Fair Queuing) allocates I/O bandwidth fairly. Deadline scheduler ensures requests are served within a time deadline. Noop performs simple FIFO with merging, ideal for SSDs where seek optimization is unnecessary.

Report an error in this question

Secondary StorageHard

Q26. What is the purpose of a disk controller's command queue (NCQ/TCQ)?

  1. A.To queue commands issued by the user at terminal
  2. B.To encrypt all disk commands for data security
  3. C.To reorder pending I/O for reduced head movement✓ Correct
  4. D.To limit the number of concurrent disk requests

Explanation

Native Command Queuing (NCQ) allows the disk to accept multiple commands and reorder their execution internally to minimize head movement and rotational latency, improving overall throughput.

Report an error in this question

Secondary StorageHard

Q27. What is the write amplification problem in SSDs?

  1. A.Data being written too quickly to the drive
  2. B.Amplified noise during write operations on the drive
  3. C.Physical writes exceed logical due to garbage collection✓ Correct
  4. D.Writing same data multiple times for data redundancy

Explanation

Write amplification occurs because SSDs must erase entire blocks before writing. Garbage collection may require reading, erasing, and rewriting valid data from partially-used blocks, causing more physical writes than the logical data would suggest.

Report an error in this question

Secondary StorageHard

Q28. What is a hot spare disk in RAID configurations?

  1. A.A disk that runs at higher operating temperature
  2. B.An unused disk that auto-replaces a failed disk✓ Correct
  3. C.A backup disk stored off-site for recovery use
  4. D.A disk storing the most frequently accessed files

Explanation

A hot spare is an inactive disk installed in a RAID array. When an active disk fails, the hot spare is automatically activated and data is rebuilt onto it, minimizing the window of vulnerability.

Report an error in this question

Secondary StorageHard

Q29. What is the difference between NVMe and SATA interfaces for SSDs?

  1. A.SATA is faster than NVMe in all standard benchmarks
  2. B.NVMe uses PCIe for higher bandwidth and lower latency✓ Correct
  3. C.NVMe only works with traditional hard disk drive units
  4. D.They are the exact same interface standard overall

Explanation

NVMe (Non-Volatile Memory Express) is a protocol designed for SSDs using PCIe lanes, offering much higher bandwidth (up to 7 GB/s vs 600 MB/s), lower latency, and deeper command queues compared to the SATA interface.

Report an error in this question

Secondary StorageHard

Q30. What is the significance of the 4K sector size (Advanced Format) in modern disk drives?

  1. A.It slows down the disk read and write speed
  2. B.It reduces overall disk capacity significantly
  3. C.It is designed only for SSD drives and not HDDs
  4. D.Larger sectors improve error correction and efficiency✓ Correct

Explanation

Advanced Format uses 4K sectors instead of traditional 512-byte sectors. Larger sectors reduce the ratio of overhead (headers, ECC) to data, improve error correction capability, and better align with OS block sizes.

Report an error in this question

Ready to test yourself on Secondary Storage?

Take a timed quiz drawn from 210+ questions on this topic. No signup required — your progress saves in your browser.

Start Secondary Storage Quiz