100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COP 4600 - FINAL EXAM QUESTIONS AND 100% CORRECT ANSWERS LATEST UPDATE $13.99   Add to cart

Exam (elaborations)

COP 4600 - FINAL EXAM QUESTIONS AND 100% CORRECT ANSWERS LATEST UPDATE

 4 views  0 purchase
  • Course
  • COP 4600
  • Institution
  • COP 4600

COP 4600 - FINAL EXAM QUESTIONS AND 100% CORRECT ANSWERS LATEST UPDATE...

Preview 3 out of 30  pages

  • November 18, 2024
  • 30
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COP 4600
  • COP 4600
avatar-seller
Easton
COP 4600 - FINAL EXAM QUESTIONS AND 100% CORRECT
ANSWERS LATEST UPDATE


What is a path? - ANSWER A path is a sequence of directories used to reference a file.
They can be relative or absolute.



Why do we need file systems? - ANSWER 1. Locate free storage space

2. Store information in a persistent way (survives process termination)

3. Allow more than one process to access the information store concurrently

4. Find information by human-accessible identifiers

5. Protect data from unauthorized use

6. Identifying types of data stored and programs that can read the data



How are directories implemented? - ANSWER Directories can be implemented in-line or
via reference -> Variable attribute/name size



Why do we mount filesystems? - ANSWER We mount a file system to make it accessible
to programs through the operating system.



Problems with mounting file system? -ANSWER Where would the root of the file system
appear to the user?



How should the various device be presented to the user?

When accessing file system on a device, we must know? - ANSWER boot block,
Filesystem type/organization (super block), and where is the root directory



What does the file system superblock contain? - ANS The file system superblock
maintains data about its type, format, and organization

,What happens because you have issued a mounting call in Unix - ANS Copies
Superblock from disk to be mounted to the superblock table in main memory.

Sets pointers in the directory inode to FS mounted

What are the techniques/strategies for file allocation? - ANS 1. Contiguous
allocation-all-in-a-row

2. Linked list allocation(block)

3. Chained table allocation(FAT)

4. Indexed allocation(index nodes)

5. Chained indexed allocation(index + linked list)

6. Multi-level indexed allocation(tree structure)



Hardware is an abstraction that provides primarily two things- ANSWER 1. Read block
at index "k"

2. Write block at index "k"

3. Allocate and Deallocate



Contiguous allocation- ANSWER DEFINITION: The contents of a file are stored purely in
order on the drive

CONS: Suffers from external fragmentation, because it is a contiguous approach of
system memory



Linked List Allocation - ANSWER DEFINITION: Each block contains a pointer to the next.
Requires iteration through drive blocks-drive accesses-for random access

CONS: Problematic in large files; App has to iterate through each node.



Chained Table Allocation- ANSWER DEFINITION: Chain store the linked list as a table in
memory to minimize disk access. It is called a File Allocation Table FAT



Indexed Allocation - ANSWER DEFINITION: Indexed allocation stores locations of each

, block in an index block referenced by the file control block

CONS: A pure index system limits file size



Multi-level Indexed Allocation - ANSWER Use direct and indirect blocks to increase
maximum file size



Chained Indexed Allocation - ANSWER Direct blocks with an additional indirect pointer



What are Inodes? - ANSWER 1. Index Nodes

2. Store file block information, along with some block pointers - but are usually smaller
(128B or 256B



(T/F) Does a bigger block size have a better data rate? - ANSWER True



T/F A bigger the block size implies a good disk space utilization. - ANSWER False



What about if it has a worse disk space utilization? - ANSWER Internal Fragmentation



T/F A smaller block size therefore a better data rate - ANSWER False, lower data rate



T/F A smaller block size therefore good disk space utilization - ANSWER True



MS-DOS File System - ANSWER 1. Maximum partition size for different block sizes.

2. The blank boxes are the forbidden combinations.



How would you keep track of a free block? - ANSWER (a) Store free list on a linked list

(b) A bitmap

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Easton. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

71498 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.99
  • (0)
  Add to cart