This section contains carefully selected MCQs and Previous Year Questions with explanations to help students understand concepts and prepare effectively for examinations, interviews, and competitive tests.
Q: 1What is the maximum size of the disk for the following details?
No. of Cylinders : 1024
No. of Heads : 16 (two tracks per head)
Sector per Track : 63
Each Sector : 512 bytes
Option C
To calculate the maximum disk size, we use the formula:
Disk Size = Cylinders × Heads × Sectors per Track × Bytes per Sector.
Here, the important detail is that each head has two tracks, so the effective number of heads becomes 16*2 = 32. This increases the total storage capacity accordingly.
Substituting the values, we get, 1024*32*63*512 = 1,056,964,608 bytes. This represents the total number of bytes that can be stored on the disk based on the given configuration.
Now converting bytes into megabytes using decimal notation (1 MB = 106 bytes), we get approximately 1056 MB.
Q: 2
Match the following—
| List – I | List – II |
|---|---|
| A. Disk Scheduling | 1. Round Robin |
| B. Batch Processing | 2. Scan |
| C. Time Sharing | 3. LIFO |
| D. Interrupt Processing | 4. FIFO |
Option C
Disk scheduling algorithms manage the order in which disk I/O requests are processed. Common methods are FCFS (FIFO), SSTF, SCAN, LOOK, etc. The SCAN (also called Elevator algorithm) which moves the disk arm across the disk servicing requests in one direction.
In Batch Processing, jobs are processed in the order they arrive or according to some simple sequence. A common scheduling method is FIFO (First In First Out), where the first job to arrive is the first to be processed.
Time-sharing systems use Round Robin Scheduling to give each process a fair share of CPU.
Interrupts are handled in the reverse order of occurrence, often following a LIFO (Last In First Out) scheme where the most recent interrupt is serviced first.
Q: 3The smallest amount of information that can be read from or written to the disk is __________.
Option B
In disk storage, data is organized into structures like tracks, sectors, and cylinders. The Sector is the smallest unit of data that can be physically read from or written to a disk.
Q: 4Consider a disk queue with requests for Input/Output to blocks on cylinders in the given order. The disk head is initially at cylinder 53.
98, 183, 37, 122, 14, 124, 65, 67
What will be the number of total head movement for SSTF and SCAN algorithms respectively?
Option A
Disk scheduling algorithms decide the order in which I/O requests are serviced to minimize disk head movement. Two common algorithms are:
SSTF (Shortest Seek Time First):
SCAN (Elevator Algorithm):
Q: 5Which of the following is NOT a characteristic of RAID?
Option D
RAID (Redundant Array of Independent Disks) is a storage technology that combines multiple physical disks into a single logical unit to improve performance and reliability (fault tolerance). Key characteristics of RAID include:
Q: 6If there are nine 1 TB drives and one 500GB drive, what is the size of RAID5?
Option D
In RAID 5, data and parity information are distributed across all drives. The usable storage capacity is calculated using the formula:
RAID 5 Capacity = (N-1)*Size of Smallest Drive
In the given question, there are a total of 10 drives (Nine 1 TB drives and one 500 GB drive), and since RAID 5 always considers the smallest disk size, all drives are effectively treated as 500 GB each for capacity calculation.
So,
Q: 7
Match the List—1 with List—2 following:
| List—1 | List—2 |
|---|---|
| i. Disk Scheduling | A. Shortest Job First |
| ii. CPU Scheduling | B. Banker’s Algorithm |
| iii. Page Replacement | C. Shortest Seek Time |
| iv. Deadlock | D. Least Recently Used |
Option A
Different Operating System techniques are used for different management tasks such as CPU scheduling, disk scheduling, page replacement, and deadlock handling.
| Techniques | Related Algorithm | Reason |
|---|---|---|
| Disk Scheduling | Shortest Seek Time | SSTF minimizes disk head movement. |
| CPU Scheduling | Shortest Job First | SJF selects process with shortest burst time. |
| Page Replacement | Least Recently Used | LRU replaces least recently used page. |
| Deadlock | Banker’s Algorithm | Used for deadlock avoidance. |
Q: 8Move the Read/Write head of disk in or out to position on a correct track is known as ____________.
Option C
Seek Time is the time required to move the disks read/write head to the correct track where the required data is located.
When a disk operation is requested, the read/write head may initially be positioned on a different track. It must move inward or outward across the disk surface until it reaches the required track. The time taken for this movement is called Seek Time.
Q: 9A hard disk has a rotational speed of 6000 RMP. Its average latency time is?
Option A
The rotational speed of the hard disk is 6000 RPM, which means the disk completes 6000 rotations in one minute. To find the time for one complete rotation, we divide 60 seconds by 6000, giving 60/6000=0.01 seconds per rotation.
The average rotational latency is the time the system waits for the required sector to come under the read/write head. On average, this waiting time is half of one full rotation.
So, the average latency time is 0.01/2=0.005 seconds, which can also be written as 5*10-3 seconds.
Q: 10Consider a disk queue with request for I/O to blocks on cylinders 98, 183, 37, 122, 14, 124, 65, 67. Consider the Shortest Seek Time First (SSTF) algorithm for disk scheduling. If the initial head position is at 53, the total head movement in cylinders is
Option B
In SSTF (Shortest Seek Time First), at every step we choose the request which is closest to the current head position.
Given:
At each step, keep track of:
Step 1: Head at 53
Pending: {98, 183, 37, 122, 14, 124, 65, 67}
Distances from 53:
Closest: 65 (Distance 12).
Movement: 53 → 65
Remaining: 98, 183, 37, 122, 14, 124, 67
Step 2: Head at 65
Pending: {98, 183, 37, 122, 14, 124, 67}
Distances from 65:
Closest: 67 (Distance 2).
Movement: 65 → 67
Remaining: 98, 183, 37, 122, 14, 124
Step 3: Head at 67
Pending: {98, 183, 37, 122, 14, 124}
Distances from 67:
Closest: 37 (Distance 30).
Movement: 67 → 37
Remaining: 98, 183, 122, 14, 124
Step 4: Head at 37
Pending: {98, 183, 122, 14, 124}
Distances from 37:
Closest: 14 (Distance 23).
Movement: 37 → 14
Remaining: 98, 183, 122, 124
Step 5: Head at 14
Pending: {98, 183, 122, 124}
Distances from 14:
Closest: 98 (Distance 84).
Movement: 14 → 98
Remaining: 183, 122, 124
Step 6: Head at 98
Pending: {183, 122, 124}
Distances from 98:
Closest: 122 (Distance 24).
Movement: 98 → 122
Remaining: 183, 124
Step 7: Head at 122
Pending: {183, 124}
Distances from 122:
Closest: 124 (Distance 2).
Movement: 122 → 124
Remaining: 183
Step 8: Head at 124
Pending: {183}
Distances from 124:
Movement: 124 → 183
Total Head Movement:
12+2+30+23+84+24+2+59 = 236 Cylinders.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.