Computer Knowledge
Computer File Systems
1,249 Questions
Computer file systems dictate how data is stored, organized, and retrieved on storage devices. Important concepts include file allocation tables, access mechanisms, and various formats like sequential and video files. Candidates preparing for banking and government exams should practice these fundamentals thoroughly.
File access mechanismsVideo and password filesFile extensionsFile allocation tableSystem metadata
Computer File Systems Questions
D
Correct answer
Explanation
There are four Android Project Folder Structure:
1. src/
2. res/
3. gen/
4. assets/
-
contiguous allocation
-
linked allocation
-
indexed allocation
-
an extension of indexed allocation
D
Correct answer
Explanation
Generally a large file system for UNIX OS use indexed allocation but for very large systems an extension of indexed allocation i.e ext 2, ext . are used.
B
Correct answer
Explanation
Unix file permissions use octal notation: 4 (read), 2 (write), 1 (execute). For owner with read AND write: 4 + 2 = 6. This gives read (4) and write (2) permissions to the owner. The octal value 6 represents rw- (read-write, no execute) for the owner permission.
C
Correct answer
Explanation
The file command analyzes a file's contents and determines its type based on the file's magic numbers and content structure, not just the extension. This is useful for identifying unknown files.
D
Correct answer
Explanation
The -s option with ls (and other file listing commands) displays the size of the file in blocks (typically 512-byte or 1KB blocks depending on the system). This shows how much disk space the file actually occupies.
C
Correct answer
Explanation
Within the mail command interface, the 'w' command saves the current message to a separate file. The 's' command typically marks for saving but doesn't write immediately, 'r' replies, and 'd' deletes.
-
chmod value
-
fmask value
-
umask value
-
none of the above
C
Correct answer
Explanation
The umask command controls the default permission bits for newly created files by setting which permissions to remove. chmod changes permissions on existing files, and fmask is not a standard Unix command.
-
text file
-
data file
-
binary file
-
core
A
Correct answer
Explanation
A text file stores data as a sequence of characters (human-readable). An integer stored as characters like '12345' rather than binary representation makes it a text file. Binary files store data in raw format.
-
shadow
-
password
-
profile
-
all the the above
A
Correct answer
Explanation
The shadow file stores secure account information, including encrypted passwords and password aging parameters like maximum and minimum days between changes. The password (passwd) file historically stores basic user information, while profile handles shell configuration.
A
Correct answer
Explanation
The cp (copy) command in UNIX copies files and directories. The options listed as 'cpy' and 'cmp' don't exist as standard commands. Cp can copy single files, multiple files to a directory, or recursively copy entire directory structures with the -r flag.
-
CDdir
-
CD
-
Cd
-
None of the above
A
Correct answer
Explanation
The command to change directories in operating systems like DOS and Windows is cd or CD, and Unix is case-sensitive where cd works. CDdir is not a recognized command for changing directories, making it the invalid form.
-
Ordinary
-
Directories
-
Device
-
Link
-
All of the above
E
Correct answer
Explanation
This is the correct answer because all of the above options are the types of file in UNIX file system.
-
fgetc
-
getc
-
fseek
-
all of the above
C
Correct answer
Explanation
It is used to set the file-position indicator for the stream pointed to by the stream. The new position is measured in bytes from the begning of the file and obtained by adding offset to the position specified by whence, whose values are defined in <stdio.h>. fseek() function is used to randomly access a file. For example: int fseek(FILE *stream, long offset, int whence);
-
Regular file, directories, device file
-
Regular disk file, special file, device file
-
Tape file, directories, special file
-
All of the above
A
Correct answer
Explanation
Regular file, Directory file and Device files are three types of files of Unix. The regular file is also called as ordinary file. Directory file is used for directories files and diectory. The device file is used for peripheral devices and other devices operations.
-
File modification time
-
File size
-
Directory name to which file belongs
-
File permissions
C
Correct answer
Explanation
We cannot find the file or directory name from inode. We can see the file type not file or directory name in inode attributes, so it is not a part of inode.