0
0
Operating Systemsknowledge~5 mins

File attributes and operations in Operating Systems - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are file attributes in an operating system?
File attributes are metadata that describe properties of a file, such as its size, creation date, permissions, and type. They help the system manage and control access to files.
Click to reveal answer
beginner
Name three common file operations performed by an operating system.
Common file operations include:
  • Creating a file
  • Reading from a file
  • Writing to a file
  • Deleting a file
  • Renaming a file
Click to reveal answer
beginner
What does the read-only attribute mean for a file?
A read-only attribute means the file can be opened and read, but it cannot be modified or deleted until the attribute is changed.
Click to reveal answer
intermediate
How does the hidden attribute affect a file?
The hidden attribute makes a file invisible in normal directory listings, helping to protect system or important files from accidental changes.
Click to reveal answer
intermediate
Explain the difference between sequential and random access file operations.
Sequential access reads or writes data in order, from start to end. Random access allows jumping directly to any part of the file to read or write data, making it faster for certain tasks.
Click to reveal answer
Which file attribute prevents a file from being modified?
ARead-only
BHidden
CArchive
DSystem
What operation would you use to remove a file from the system?
ACopy
BRename
CDelete
DOpen
Which file attribute makes a file invisible in normal folder views?
AHidden
BRead-only
CExecutable
DTemporary
What is the main difference between sequential and random access?
ARandom access only reads files; sequential access only writes files.
BSequential access reads data in order; random access jumps to any part.
CSequential access is faster than random access.
DThey are the same.
Which file operation changes the name of a file?
ACopy
BDelete
CMove
DRename
Describe what file attributes are and why they are important in managing files.
Think about the extra information that tells the system how to treat a file.
You got /3 concepts.
    Explain the difference between sequential and random access file operations with examples.
    Consider how you read a book from start to finish versus jumping to a chapter.
    You got /3 concepts.