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
-
IEFBR14
-
IEBGENER
-
IEBCOPY
-
IDCAMS
C
Correct answer
Explanation
IEBCOPY is the IBM mainframe utility used for copying and compressing Partitioned Datasets (PDS). It can copy entire PDS libraries, merge members, and compress unused space within PDS files to reclaim storage. IEBGENER copies sequential datasets, IEFBR14 is a dummy program, and IDCAMS manages VSAM and GDG datasets.
-
META-INF is a suitable location for storing digital certificates.
-
META-INF is used as a repository for common code.
-
The MANIFEST.MF file is found in the META-INF directory.
-
The deployment descriptor file is found in the META-INF directory.
-
META-INF is not directly accessible to clients.
A,C,E
Correct answer
Explanation
META-INF stores JAR metadata like MANIFEST.MF and digital certificates. It is not for shared code. Critically, resources in META-INF are protected and not directly accessible via web URLs to clients.
-
path of executables
-
zip archive
-
unzipped files
-
The way you want
B
Correct answer
Explanation
Delivering software to deployment teams using a zip archive is standard practice to prevent file corruption, preserve file structures, and facilitate single-file transport. Delivering raw paths or unzipped files is prone to access issues or configuration loss.
A
Correct answer
Explanation
The .txt extension is the universal standard for plain text files across all operating systems. Text extensions like .text are rarely used, and alternatives like .xtx or .ext are not standard file extensions. File extensions identify the file type to both the OS and applications.
-
A. .INI
-
B. .TXT
-
C. .QFL
-
D. .VBS
C
Correct answer
Explanation
In QTP, procedures created in the Function Library editor are saved with the .QFL extension (QuickTest Function Library). This is QTP's standard file format for storing reusable functions and procedures that can be associated with multiple tests. .INI files are configuration files, .TXT are plain text, and .VBS are standalone VBScript files - none of these are used for Function Library procedures in QTP.
-
A. Local Data Sheet, Global Data Sheet, Folder
-
B. Local Object Repository, Local Data Sheet, Folder
-
C. Global Data Sheet, Local Object Repository, Folder
-
D. Local Data Sheet, Global Data Sheet, Local Object Repository
B
Correct answer
Explanation
In QTP/UFT, creating a new action automatically generates a dedicated subdirectory containing a Local Object Repository (.or file) and a Local Data Sheet (action-specific sheet). Global sheets exist at the test level rather than action level, making options containing the Global Data Sheet incorrect.
-
True
-
False
-
Compile error
-
none
C
Correct answer
Explanation
The code fails to compile because it lists catch(Exception e) before catch(IOException io). Since Exception is the parent class of IOException, the second block is unreachable, causing a compile error.
-
Uplaod is not successful, error occurred
-
The file uploaded with success
-
Uploaded file size is 0
-
File upload progress is 0% completed
B
Correct answer
Explanation
UPLOAD_ERR_OK with value 0 indicates the file was uploaded successfully. This constant is part of PHP's file upload error reporting system where non-zero values indicate specific error conditions like file size exceeds upload_max_filesize or partial upload.
-
reading
-
writing
-
none of above
-
both of above
D
Correct answer
Explanation
The r+ mode in fopen() opens a file for both reading AND writing operations. The file pointer is placed at the beginning of the file, allowing you to read existing content and write new content. Options A (reading only) and B (writing only) are incomplete since r+ supports both operations.
-
allow_url_fopen
-
allow_remote_files
-
both of above
-
none of above
A
Correct answer
Explanation
The allow_url_fopen PHP ini directive enables URL-aware fopen wrappers that allow accessing remote files via HTTP/FTP. Option B (allow_remote_files) is not a valid PHP directive. This setting is essential for functions like fopen(), file_get_contents(), and include() to work with remote URLs.
A
Correct answer
Explanation
The 'a' (append) mode opens a file for writing only, places the pointer at the end, and creates the file if it doesn't exist. Option C (W+) would open for reading AND writing but would truncate the file. Options B (W) and D (A+) are incorrect for 'writing only' requirement.
-
file_read()
-
file()
-
read()
-
array()
B
Correct answer
Explanation
The file() function reads a file into an array where each element corresponds to a line in the file. file_read() and read() are not standard PHP file-reading functions, and array() is a language construct for creating arrays, not reading files.
-
unlink()
-
delete_file()
-
delete()
-
remove()
A
Correct answer
Explanation
unlink() is the PHP function used to delete files. delete_file(), delete(), and remove() are not standard PHP file deletion functions - these might exist in other languages but not in PHP's filesystem functions.
-
FileUpLoad
-
Function
-
File
-
Date
C
Correct answer
Explanation
In historic Netscape Server-Side JavaScript, the File object allowed server-side file manipulation. FileUpload is client-side, while standard built-in objects like Date and Function exist on both environments but are generic, making File the specific server-side object.
-
KSDS, ESDS
-
ESDS, RRDS
-
KSDS, ESDS, RRDS
-
KSDS, RRDS
C
Correct answer
Explanation
VSAM (Virtual Storage Access Method) supports four main file organization types: KSDS (Key Sequenced Data Set) for indexed access, ESDS (Entry Sequenced Data Set) for sequential-only access, RRDS (Relative Record Data Set) for direct access via relative record number, and LDS (Linear Data Set). COBOL can work with KSDS, ESDS, and RRDS, which are the primary VSAM file types used in mainframe applications.