0
0
Operating Systemsknowledge~20 mins

File attributes and operations in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
File Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding File Permissions

Which of the following correctly describes the meaning of the file permission rwxr-x--x?

AOwner can read and execute; group can write only; others can read and execute.
BOwner can read, write, and execute; group can read and execute; others can execute only.
COwner can read and write; group can read and write; others have no permissions.
DOwner can execute only; group can read and execute; others can read only.
Attempts:
2 left
💡 Hint

Remember that 'r' means read, 'w' means write, and 'x' means execute. The order is owner, group, others.

📋 Factual
intermediate
1:30remaining
File Operation Effects

What happens when you perform the append operation on a file?

ANew data is added to the end of the existing file content.
BThe file is locked and cannot be read or written.
CThe file is duplicated with the new data added to the copy.
DThe file content is erased and replaced with new data.
Attempts:
2 left
💡 Hint

Think about what 'append' means in everyday writing or note-taking.

🔍 Analysis
advanced
2:00remaining
File Attribute Change Impact

If a file's read-only attribute is set, which of the following operations will fail?

AModifying the file content.
BDeleting the file.
CReading the file content.
DCopying the file to another location.
Attempts:
2 left
💡 Hint

Consider what 'read-only' means for file access.

Comparison
advanced
2:00remaining
Difference Between File Open Modes

Which statement correctly compares the write (w) and append (a) modes when opening a file?

ABoth write and append modes erase existing content before writing.
BWrite mode adds data to the end; append mode erases existing content before writing.
CWrite mode erases existing content; append mode adds data to the end without erasing.
DBoth write and append modes add data only to the beginning of the file.
Attempts:
2 left
💡 Hint

Think about what happens to the existing file content in each mode.

Reasoning
expert
2:30remaining
File System Behavior on Attribute Change

Consider a file system where a file's hidden attribute is toggled on. Which of the following best describes the immediate effect on the file's visibility and accessibility?

AThe file is deleted from the file system and cannot be recovered.
BThe file is moved to a special hidden folder and is inaccessible until unhidden.
CThe file becomes read-only and cannot be modified or deleted.
DThe file becomes invisible in normal directory listings but can still be accessed directly if the path is known.
Attempts:
2 left
💡 Hint

Think about how hidden files behave in common operating systems like Windows or Linux.