Question 21
EasyWhich operation must usually be performed before a program reads a file?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Which operation must usually be performed before a program reads a file?
Renaming the file
Formatting the disk
Opening the file
Deleting the file
Sign up free to see the answer and a step-by-step explanation.
What are file access permissions such as read, write and execute for?
Making files load faster
Counting how many times a file is opened
Compressing files
Controlling who may read, change or run a file
Sign up free to see the answer and a step-by-step explanation.
In Unix permissions, what does 'x' allow on a regular file?
Copying the file
Deleting the file
Executing (running) the file
Hiding the file
Sign up free to see the answer and a step-by-step explanation.
What does a free-space list (or free-space map) record?
Which files are open
Which programs are installed
Which users are logged in
Which disk blocks are not in use
Sign up free to see the answer and a step-by-step explanation.
In a file system, what is a block?
A banned user
The smallest unit of disk space that can be allocated to a file
A type of directory
A piece of the CPU
Sign up free to see the answer and a step-by-step explanation.
What does closing a file do?
Renames the file
Deletes the file
Releases the resources tied to it and writes out any buffered data
Formats the disk
Sign up free to see the answer and a step-by-step explanation.
Which file system is most commonly used by Windows?
APFS
NTFS
ext4
HFS
Sign up free to see the answer and a step-by-step explanation.
An inode has 12 direct block pointers and the block size is 4 KB. How large can a file be using direct pointers only?
4 KB
48 KB
4 MB
12 KB
Sign up free to see the answer and a step-by-step explanation.
Blocks are 4 KB and block pointers are 4 bytes. How much data can a single indirect block address?
4 MB
1 MB
4 KB
1 GB
Sign up free to see the answer and a step-by-step explanation.
What happens to a symbolic link when the file it points to is deleted?
The file is restored
It now points to the parent directory
It becomes a dangling link that points to nothing
The link is deleted automatically
Sign up free to see the answer and a step-by-step explanation.