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
-
A file group is a collection of physically distinct files that appear to the end user as multiple logical entity.
-
A file group is a collection of logically distinct files that appear to the end user as single logical entity.
-
A file group is a collection of physically distinct files that appear to the end user as single logical entity.
-
A file group is a collection of logically distinct files that appear to the end user as multiple logical entity.
C
Correct answer
Explanation
In database systems like SQL Server, a filegroup is a logical grouping of physically distinct database files. This abstraction allows database administrators to manage physical storage while presenting a single logical entity to users.
-
PNFPROD
-
PROD
-
NFPROD
-
PRD2PROD
C
Correct answer
Explanation
The logical name NFPROD is derived from the filename PNF.M204PRD2.NFPROD. In Model 204 file naming conventions, the logical name is typically the rightmost qualifier in the dataset name, which in this case is NFPROD. This name identifies the file to applications and users.
C
Correct answer
Explanation
In Unix and Linux shell scripting, the file test operator -S is specifically used to check if a given file is a socket. The operator -s checks if a file has a size greater than zero, while -l checks for a symbolic link.
-
With the #include preprocessor command
-
Adding the file’s directory to @INC and then passing the filename to require.
-
Both A & B
-
None of the above
C
Correct answer
Explanation
Perl offers multiple ways to include code from other files. The #include preprocessor command works like C-style includes, and adding the file's directory to @INC then using require is the dynamic Perl approach. Both methods are valid for code inclusion in different contexts.
-
nameas
-
rename
-
name
-
now_known_as
B
Correct answer
Explanation
In Perl, the built-in rename function is used to change the name of a file. It takes two arguments: the old filename and the new filename, returning true on success and false on failure.
B
Correct answer
Explanation
In Perl, the stat function returns a 13-element list giving status information about a file, including its device, inode, mode, number of links, UID, GID, size, access time, modification time, and change time (ctime).
D
Correct answer
Explanation
In Perl file tests, -k checks if the sticky bit is set on a file. The -s test checks if file is non-empty (size), -l checks if it's a symbolic link, and -S checks if it's a socket. The sticky bit is a special permission bit.
B
Correct answer
Explanation
Perl's file test operator -l checks if a file is a symbolic link. The -s test checks if a file has non-zero size, -S checks for socket files, and -k checks for sticky bit. File test operators are single-character prefixes preceded by a hyphen.
A
Correct answer
Explanation
The -s file test operator returns true if the file exists AND has a size greater than zero. This combines both existence and non-empty checks. The -l operator tests for symbolic links, -S for sockets, and -k for the sticky bit.
C
Correct answer
Explanation
In Unix and Linux file test operators, -S is specifically used to determine if a file is a socket. This is a duplicate of a previous question testing the same command-line flag.
-
With the #include preprocessor command
-
Adding the file’s directory to @INC and then passing the filename to require.
-
Both A & B
-
None
-
nameas
-
rename
-
name
-
now_known_as
B
Correct answer
Explanation
The built-in rename function in Perl is used to change a file's name or move it across directories. Other options like nameas, name, and now_known_as do not exist in Perl's standard function library, making them incorrect distractors.
B
Correct answer
Explanation
The stat function in Perl returns a 13-element list giving status information about a file, including its owner UID, group GID, and change time (ctime).
D
Correct answer
Explanation
In Perl, file test operator -k checks if the sticky bit is set on a file. The -s operator tests for non-zero file size, -l tests for symbolic link, and -S tests for socket file. Sticky bit is a permission bit that restricts deletion to the file owner even on writable directories.
B
Correct answer
Explanation
In Perl, file test operator -l checks if a file is a symbolic link. The -s operator tests for non-zero file size, -S tests for socket file, and -k tests for sticky bit. Symbolic links are references to other files in the filesystem.