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
Correct answer
Explanation
Excel has a 'Save As' feature that allows saving workbooks in multiple formats including CSV (Comma Separated Values). CSV is a plain text format where each column is separated by commas and each row by line breaks. This is commonly used for data interchange between different systems. The statement is true.
A
Correct answer
Explanation
VSAM files (KSDS, RRDS) must be opened in I-O mode for DELETE operations because I-O mode allows both reading and writing operations. This mode is required to locate and then remove records from the dataset.
B
Correct answer
Explanation
In COBOL file status codes, '35' indicates that an OPEN operation was attempted on a non-existent or empty file that does not support dynamic creation.
B
Correct answer
Explanation
In COBOL, Dynamic access mode means you can choose to access files either sequentially OR randomly in the same program, not both simultaneously for a single operation. You use specific verbs (READ vs READ NEXT) to indicate the access method.
-
Place the file 'secret.txt' in a directory called 'protected' in the 'myApp' Web Application.
-
Place the file 'secret.txt' in a directory called 'private' in the 'myApp' Web Application.
-
Place the file 'secret.txt' in a directory called 'WEB-INF' in the 'myApp' Web Application.
-
Any filename starting with 'secret' are usually not accessible by the Clients, so this file can be places anywhere in the Web Application.
C
Correct answer
Explanation
The WEB-INF directory is specially protected in the web application structure - contents cannot be directly accessed by clients via URLs. Options A and B ('protected' and 'private' directories) are not special. Option D is incorrect - filenames starting with 'secret' have no special protection.
B
Correct answer
Explanation
The File class in Java represents file and directory pathnames abstractly but does not provide methods to read or write file contents. It only manipulates file metadata (existence, deletion, path operations). For actual I/O operations, you need stream classes like FileReader, FileWriter, BufferedReader, or Files utilities.
-
Local Object repository
-
Shared Object repository
-
Both
-
None
A
Correct answer
Explanation
In QTP, the Local Object Repository is embedded within the test or action file and is not accessible as a separate file. In contrast, the Shared Object Repository is stored as a separate .tsr file that can be accessed and reused across multiple tests.
-
an open folder.
-
the folder contains subfolders.
-
a text file.
-
a graphics file.
B
Correct answer
Explanation
In Windows Explorer, a plus (+) sign indicates that a folder contains subfolders and can be expanded to show them. This is standard Windows UI convention.
-
A file is a collection of related pieces of information stored together for easy reference.
-
Files can be generated from an application.
-
Files are stored in RAM.
-
Files should be organized in folders.
C
Correct answer
Explanation
Files are stored on secondary storage devices like hard disks or SSDs, not in RAM. RAM is volatile memory used for temporary data while the computer is running - it loses all contents when power is turned off. Files must persist on non-volatile storage to be retained between sessions. Organizing files in folders (A, D) and generating them from applications (B) are true statements about file management.
-
TYPE
-
CHMOD
-
ATTRIB
-
SYSTYPE
C
Correct answer
Explanation
The ATTRIB command in MS-DOS/Windows is used to display or change file attributes like Read-only, Archive, System, and Hidden. TYPE displays file contents, CHMOD is a Unix command for changing permissions, and SYSTYPE is not a standard MS-DOS command.
-
LOOKUP
-
FIND
-
STRFIND
-
SEARCH
B
Correct answer
Explanation
The FIND command in MS-DOS/Windows searches for a specific text string within a file or files. LOOKUP, STRFIND, and SEARCH are not standard MS-DOS commands for this purpose. FIND can also search multiple files and display matching lines.
-
compare
-
comfile
-
fc
-
diff files
C
Correct answer
Explanation
fc (file compare) is the Windows command that compares two files and displays their differences line by line. Options A, B, and D are not standard Windows commands. While 'diff' exists in Unix, Windows uses fc. The name fc is short for 'file compare'.
-
filetype
-
assoc
-
ext
-
display /ext
B
Correct answer
Explanation
The ASSOC command displays or modifies file extension associations (like .txt=notepad). Used alone, it shows all current file extension associations. Options A, C, and D (filetype, ext, display /ext) are not valid Windows commands.