Computer Knowledge
Computer File Systems
1,516 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
-
flcommand()
-
command()
-
fcommand()
-
fscommand()
D
Correct answer
Explanation
fscommand() is the ActionScript function that enables communication between a SWF file and its host environment (Flash Player or web browser). It can send commands to JavaScript, control fullscreen mode, prevent scaling, and execute other host-specific operations. The other options (flcommand, command, fcommand) are not valid ActionScript functions.
-
The +x right is meaningless for directory
-
To give permission to other users
-
To move into that directory
-
None of these
C
Correct answer
Explanation
The execute (+x) permission on a directory grants the ability to enter (cd into) that directory and access files within it by name. Without +x on a directory, even if you have read/write permissions on files inside, you cannot traverse the directory path to reach those files. It does not grant permissions to other users specifically.
B
Correct answer
Explanation
Unix does allow spaces in file and directory names, though they require special handling with quotes or escaping. The statement claims Unix cannot use spaces, which is false. Option B is correct because Unix filenames can contain spaces, unlike the statement suggests.
-
name.doc
-
name.tsr
-
name.qrs
-
name.trs
B
Correct answer
Explanation
In QTP (QuickTest Professional), object repository files use the .tsr extension. This is the Test Shared Repository file format. Option D (.trs) is similar but incorrect - .tsr is the standard extension. The question tests knowledge of QTP file conventions.
-
name.tsr
-
name.prs
-
name.qrs
-
name.trs
C
Correct answer
Explanation
Recovery Scenario files in QTP (QuickTest Professional) use the .qrs file extension. QTP is a functional testing automation tool, and Recovery Scenarios are used to handle unexpected errors or events during test execution. The .qrs extension specifically identifies these recovery configuration files. The other extensions (.tsr, .prs, .trs) are not associated with QTP Recovery Scenarios.
-
stock.sdf
-
stock.fdf
-
stock
-
stock.sds
A
Correct answer
Explanation
The .sdf (SQL Database File) extension is used for storing structured data, including stock information in handheld systems. Other extensions like .fdf, .sds, or no extension are not standard database file formats used for this purpose in the context.
A
Correct answer
Explanation
In Unix filesystems, directories ARE stored as special files on disk containing filename-to-inode mappings. They have file metadata (permissions, timestamps, ownership) just like regular files, with a special 'd'irectory bit set. This is a core Unix design principle.
-
File is opened for input and an attempt is made To write to it (or Logic error).
-
Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgn and the JCL ( or the dataset label).
-
Attempted to open a file that is already open.
-
File not found.
A
Correct answer
Explanation
File status 92 indicates that the file was opened for input and a write operation was attempted, which is a logic error. The first option correctly describes this condition, so the stored answer is right.
C
Correct answer
Explanation
File status code 35 in COBOL indicates 'File not found' when attempting to open a file that doesn't exist. Other common file status codes include 00 (success), 04 (wrong length record), 06 (record duplicate key), 13 (file not found), and 30 (permanent error). The specific code 35 is the standard COBOL file status for a non-existent file on OPEN. This is a fundamental concept in COBOL file handling.
-
Password failure
-
Resource not available
-
Logic error
-
No DD statement specified for this file
C
Correct answer
Explanation
In COBOL file status codes, 92 indicates a logic error occurred during file processing. This is a catch-all error code for problems that stem from programming logic rather than physical file issues or resource constraints.
-
An OPEN statement was attempted for a file in the open mode
-
A CLOSE statement was attempted for a file not in the open mode
-
An OPEN statement was attempted on a file previously closed with lock
-
The execution of a WRITE statement was attempted on a file not open in the I-O, output, or extend mode
A
Correct answer
Explanation
File status 41 indicates that an OPEN statement was attempted for a file that is already in the open mode. This is a logical error because a file cannot be opened again while it's already open - it must be closed first before being reopened.
-
pfile is a binary file
-
spfile is a binary file
-
spfile is a text file
-
pfile is a binary file ; spfile is a text file
B
Correct answer
Explanation
SPFILE (Server Parameter File) is a binary file stored on the server that enables persistent parameter changes. PFILE (Parameter File) is a text-based initialization file. The binary nature of SPFILE allows Oracle to read it more efficiently and make changes that survive restarts.
A
Correct answer
Explanation
split is the correct command to divide a file into multiple smaller files. Unix commands are case-sensitive, so 'SPLIT' would not work. 'cut' extracts columns or fields, not splitting files.
A
Correct answer
Explanation
In QTP, the Local Object Repository file uses the .MTR file extension (Mercury Test Repository). The .TSR extension is for Shared Object Repository files, not local repositories.