In: Computer Science
1. A hard disk drive has 16 platters, 8192 cylinders, and 256 4KB sectors per track. The storage capacity of this disk drive is at most
Select one:
a. 32 GB.
b. 128 GB.
c. 32 TB.
2. To further optimize I/O performance, some SSD schedulers
Select one:
a. merge adjacent write requests but not adjacent read requests.
b. do not merge requests at all.
c. merge adjacent read requests but not adjacent write requests.
3. What steps are necessary to create a file?
Select one:
a. allocating a space in the file system
b. all of the other answers
c. making an entry for the file in the directory
d. none of the other answers
4.When the shared lock is applied to a file then ____________
Select one:
a. only one process can use this file
b. many processes can write to this file concurrently
c. several processes can acquire the lock concurrently
d. many processes can read and write to this file concurrently
5. close() operation _____ an open count associated with a given file.
Select one:
a. decreases
b. increases
c. does not change
d. resets
Q.1 Answer The correct answer is option b "128GB"
Given: Number of platters = 16, Number of cylinders = 8192
Capacity per track = 4 * 256KB = 1024KB = 1MB
Capacity per platter = Number of cylinders * capacity per track
= 8192 * 1MB = 8192 MB
Now,
Total capacity = Number of platter * Capacity per platter
= 16 * 8192 MB = 131072 MB
Answer is given in GB, so conver the MB into GB
Total capacity = 131072/1024 = 128GB
Q.2 Answer: None of the answer seems true because to optimize the further I/O performance, SSD schedulers merges all adjacent I/O request.
Q.3 Answer: The correct answer is option b "All the other answers"
To create a file we need to allocate a space in the file system and make an entry for the file in the directory.
Q.4 Answer: The correct answer is option C "several processes can acquire the lock concurrently"
When the shared loack is acquired to the file than many processes can acquire the lock concurrently.
Q.5 Answer: The correct answer is option a "decreases"
Close() opertaion decreases the open count associated with the given file.