Question 31
MediumA 1 TB disk with 4 KB blocks tracks free space with a bit vector. How large is the bit vector?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
A 1 TB disk with 4 KB blocks tracks free space with a bit vector. How large is the bit vector?
256 MB
4 MB
1 GB
32 MB
Sign up free to see the answer and a step-by-step explanation.
What does a journaling file system do?
Keeps a diary of user activity
Writes intended metadata changes to a log first, so it can recover quickly after a crash
Stores files on tape
Compresses every file
Sign up free to see the answer and a step-by-step explanation.
What does mounting a file system mean?
Deleting it
Attaching it to a directory in the existing directory tree
Formatting the disk
Copying all its files to RAM
Sign up free to see the answer and a step-by-step explanation.
Which Linux command shows the inode number of each file?
pwd
ls -l
ls -i
df -h
Sign up free to see the answer and a step-by-step explanation.
An inode has 10 direct block pointers and blocks are 1 KB. What is the largest file the direct pointers alone can address?
1 MB
1 KB
10 KB
100 KB
Sign up free to see the answer and a step-by-step explanation.
Blocks are 1 KB and block addresses are 4 bytes. How many blocks can a single indirect block point to?
256
128
1024
4
Sign up free to see the answer and a step-by-step explanation.
A disk of 500 GB uses 4 KB blocks. How big is a free-space bitmap with one bit per block?
About 15.6 MB
About 500 MB
About 4 MB
About 125 MB
Sign up free to see the answer and a step-by-step explanation.
A config file must be readable and writable by its owner, readable by its group, and hidden from everyone else. Which chmod value does that?
644
640
604
460
Sign up free to see the answer and a step-by-step explanation.
Which allocation method makes random access to the middle of a large file slowest?
Extent-based allocation
Indexed allocation
Contiguous allocation
Linked allocation
Sign up free to see the answer and a step-by-step explanation.
What is an extent in a file system?
A contiguous run of blocks allocated to a file
A single file name
A directory entry
A backup
Sign up free to see the answer and a step-by-step explanation.