Secondary-Memory

Question 1
A hard disk has 63 sectors per track, 10 platters each with 2 recording surfaces and 1000 cylinders. The address of a sector is given as a triple , where c is the cylinder number, h is the surface number and s is the sector number. Thus, the 0th sector is addressed as <0, 0, 0>, the 1st sector as <0,0,1>, and so on.
The address of the 1039th sector is
A
〈0, 15, 31〉
B
〈0, 16, 30〉
C
〈0, 16, 31〉
D
〈0, 17, 31〉
Question 1 Explanation: 
We know in each track there are 63 sectors. And we know there is one track per surface.
From the given options we can calculate the sector numbers as
Option A - 15*63+31 = 976
Option B - 16*63+30 = 1038
Option C - 16*63+31 = 1039
Option D - 17*63+31 = 1102
Hence Option C is the answer.
Question 2
A particular disk unit uses a bit string to record the occupancy or vacancy of its tracks, with 0 denoting vacant and 1 for occupied. A 32-bit segment of this string has hexadecimal value D4FE2003. The percentage of occupied tracks for the corresponding part of the disk, to the nearest percentage is
A
12
B
25
C
38
D
44
Question 3
Consider a disk pack with 16 surfaces, 128 tracks per surface and 256 sectors per track. 512 bytes of data are stored in a bit serial manner in a sector. The capacity of the disk pack and the number of bits required to specify a particular sector in the disk are respectively:
A
256 Mbyte, 19 bits
B
256 Mbyte, 21 bits
C
512 Mbyte, 20 bits
D
64 GB, 28 bits
Question 3 Explanation: 
→ Given that the disk pack has 16 surfaces, 128 tracks per surface, 256 sectors per track and each sector size is 512 bytes.
→ So the disk pack capacity = 16*128*256*512 bytes = 256 MB
→ To specify a sector we need the information about surface number, track number and sector number within a track.
→ Surface number needs 4 bits as there are 16 surfaces(24), track number needs 7 bits as there are 128 tracks(27) within a surface, within a track the sector number needs 8 bits as there are 256 sectors (28).
→ Total number bits needed to specify a particular sector = 4+7+8 = 19 bits.
Question 4
There are 200 tracks on a disc platter and the pending requests have come in the order – 36, 69, 167, 76, 42, 51, 126, 12 and 199. Assume the arm is located at the 100 track and moving towards track 199. If the sequence of disc access is 126, 167, 199, 12, 36, 42, 51, 69 and 76 then which disc access scheduling policy is used?
A
Elevator
B
Shortest seek-time first
C
C-SCAN
D
First Come First Served
Question 4 Explanation: 
Total tracks are :200
Tracks order is 36, 69, 167, 76, 42, 51, 126, 12 and 199
Track position is at 100 and moving towards 199.
sequence of disc access is 126, 167, 199, 12, 36, 42, 51, 69 and 76
From the above sequence , we can observe that disc moving from 100 to 126 from there to moving right side direction until last disc 199
From the last disc(199) to first disc(12) and from there to next disc(36) and so on.
C-SCAN sweeps the disk from end-to-end, but as soon it reaches one of the end tracks it then moves to the other end track without servicing any requesting location. As soon as it reaches the other end track it then starts servicing and grants requests headed to its direction
Question 5

A Computer uses a memory unit with 256K word of 32 bits each. A binary instruction code is stored in one word of memory. The instruction has four parts: an indirect bit, an operation code and a register code part to specify one of 64 registers and an address part. How many bits are there in operation code, the register code part and the address part?

A
7, 7, 18
B
18, 7, 7
C
7, 6, 18
D
6, 7, 18
Question 5 Explanation: 
An instruction size is given as 32-bits.
Now, the instruction is divided into four parts :
An indirect bit
Register code part : Since number of registers given as 64(26) so to identify each register uniquely 6-bits are needed.
Address part : 256K(218) word memory is mentioned so to identify each word uniquely 18-bits are needed.
Operation code:
Size of Operation code = Complete instruction size - (size of indirect bit + size of register code + size of address part)
Size of Operation code = 7-bits
Question 6
What is the average access time for a Drum rotating at 4000 revolutions per minute?
A
2.5 milliseconds
B
5.0 milliseconds
C
7.5 milliseconds
D
4.0 milliseconds
Question 6 Explanation: 
→ 4000 revolution per minute means 60/4000 seconds for 1 revolution.
→ Average access time is time to complete 1/2 revolution= 7.5milliseconds.
Question 7
A disk has 200 tracks(numbered 0 through 199). At a given time, it was servicing the request of reading data from track 120 and at the previous request, service was for track 90. The pending requests(in order of their arrival) are for track numbers 30 70 115 130 110 80 20 25. How many times will the head change its direction for the disk scheduling policies SSTF(Shortest Seek Time First) and FCFS(First come first serve)?
A
2 and 3
B
3 and 3
C
3 and 4
D
4 and 4
Question 7 Explanation: 
According to Shortest Seek Time First:
90-> 120-> 115-> 110-> 130-> 80-> 70-> 30-> 25-> 20
Change of direction(Total 3); 120->15; 110->130; 130->80
According to First Come First Serve:
90-> 120-> 30-> 70-> 115-> 130-> 110-> 80-> 20-> 25
Change of direction(Total 4); 120->30; 30->70; 130->110;20->25
There are 7 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access