Operating System Questions & Answers – File System Implementation – Allocation Methods – 2

This set of Basic Operating System Questions and Answers focuses on “File System Implementation – Allocation Methods – 2”.

1. A device driver can be thought of like a translator. Its input consists of _____ commands and output consists of _______ instructions.
a) high level, low level
b) low level, high level
c) complex, simple
d) low level, complex
View Answer

Answer: a
Explanation: None.

2. The file organization module knows about _____________
a) files
b) logical blocks of files
c) physical blocks of files
d) all of the mentioned
View Answer

Answer: d
Explanation: None.

3. Metadata includes _____________
a) all of the file system structure
b) contents of files
c) both file system structure and contents of files
d) none of the mentioned
View Answer

Answer: c
Explanation: None.
advertisement
advertisement

4. For each file there exists a ___________ that contains information about the file, including ownership, permissions and location of the file contents.
a) metadata
b) file control block
c) process control block
d) all of the mentioned
View Answer

Answer: b
Explanation: None.

5. For processes to request access to file contents, they need _____________
a) to run a seperate program
b) special interrupts
c) to implement the open and close system calls
d) none of the mentioned
View Answer

Answer: c
Explanation: None.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. During compaction time, other normal system operations _______ be permitted.
a) can
b) cannot
c) is
d) none of the mentioned
View Answer

Answer: b
Explanation: None.

7. When in contiguous allocation the space cannot be extended easily?
a) the contents of the file have to be copied to a new space, a larger hole
b) the file gets destroyed
c) the file will get formatted and lost all its data
d) none of the mentioned
View Answer

Answer: a
Explanation: None.
advertisement

8. In the linked allocation, the directory contains a pointer to which block?
I. first block
II. last block
a) I only
b) II only
c) Both I and II
d) Neither I nor II
View Answer

Answer: c
Explanation: None.

9. There is no __________ with linked allocation.
a) internal fragmentation
b) external fragmentation
c) starvation
d) all of the mentioned
View Answer

Answer: b
Explanation: None.
advertisement

10. What is the major disadvantage with a linked allocation?
a) internal fragmentation
b) external fragmentation
c) there is no sequential access
d) there is only sequential access
View Answer

Answer: d
Explanation: None.

11. What if a pointer is lost or damaged in a linked allocation?
a) the entire file could get damaged
b) only a part of the file would be affected
c) there would not be any problems
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

12. FAT stands for _____________
a) File Attribute Transport
b) File Allocation Table
c) Fork At Time
d) None of the mentioned
View Answer

Answer: b
Explanation: None.

13. By using FAT, random access time is __________
a) the same
b) increased
c) decreased
d) not affected
View Answer

Answer: c
Explanation: None.

Sanfoundry Global Education & Learning Series – Operating System.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.