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
-
JOB AND SORT
-
JOB AND DEFINE
-
SORT AND DEFINE
-
FILE AND JOB
A
Correct answer
Explanation
In CA Easytrieve, the ACTIVITY section contains JOB and SORT statements which define the processing activities of the program. Other terms like DEFINE or FILE are used in the library section, not the activity section. Thus, JOB AND SORT is the correct option.
B
Correct answer
Explanation
POINT is the EasyTrieve statement used for skip sequential file processing. It allows positioning to a specific record location in a file, enabling efficient access without reading all preceding records sequentially. SELECT, READ, and GET have different purposes in file operations.
-
FILE INFILE FB(80 800)
-
FILE INFILE VS
-
FILE INFILE VB(100 504)
-
NONE OF THE ABOVE
B
Correct answer
Explanation
To solve this question, the user needs to have knowledge of VSAM files and how they are defined in JCL.
Option A: FILE INFILE FB(80 800)
This option represents a flat file. The FB indicates that the file is fixed blocked, and the numbers in the parentheses specify the record length (80) and the block size (800). This is not a VSAM file.
Option B: FILE INFILE VS
This option represents a VSAM file. The "VS" indicates that it is a VSAM file. However, this option is incomplete since it does not specify the file organization (KSDS, ESDS, or RRDS) and the access method (ESDS or RRDS).
Option C: FILE INFILE VB(100 504)
This option represents a variable blocked file. The VB indicates that the file is variable blocked, and the numbers in the parentheses specify the maximum record length (100) and the block size (504). This is not a VSAM file.
Therefore, the correct answer is:
The Answer is: B
-
FILE IS A FIXED BLOCK FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0
-
FILE IS A FIXED BLOCK FILE WITH RECORD LENGTH 0 AND BLOCK SIZE 150
-
FILE IS A VSAM FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0
-
FILE IS A VARIABLE BLOCK FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0
A
Correct answer
Explanation
In EasyTrieve file declaration, FB(150 0) represents a Fixed Block (FB) file with record length 150 and block size 0. Fixed block means records are of fixed length, 150 specifies the record size in bytes, and 0 indicates system-determined block size. The syntax is FB(record-length block-size).
-
All the above
-
cat meminfo
-
file <filename>
-
stat <filename>
D
Correct answer
Explanation
The 'stat' command displays detailed file status information including permissions, size, ownership, timestamps, and inode details. 'cat meminfo' would display memory info, not file status. 'file ' shows file type, not comprehensive status. 'All the above' is incorrect since only one option is correct.
-
rw-rwx-wx
-
rwxrwxrwx
-
rwxrwx-wx
-
rw-rw-rw-
C
Correct answer
Explanation
.AVI (Audio Video Interleave) is a well-known PC video file format introduced by Microsoft in 1992. .MP3 is an audio format (not video). .MVE is a less common video format used in some games, but .VDO is not a standard PC video extension. Among these, .AVI is the most established PC video file extension.
B
Correct answer
Explanation
The default permission for a regular file in Unix/Linux is 644 (rw-r--r--), not 655. The 644 setting means owner has read/write, group and others have read-only. The umask typically defaults to 022, which subtracts from 666 to yield 644.
-
parameter file
-
data files
-
redo log files
-
alert.log file
C
Correct answer
Explanation
In Oracle databases, redo log files can be multiplexed - meaning multiple copies of the same redo log group can be maintained simultaneously on different disks to protect against disk failure. The parameter file (spfile or pfile) is a single configuration file. Data files cannot be multiplexed - they are the actual storage for database data. The alert.log is a single text file that records database events and cannot be multiplexed.
-
C:\WINDOWS\system32\LogFiles\W3SVC1
-
C:\wwwroot\inetpub
-
C:\WINDOWS\system32\LogFiles\W3SVC
-
C:\WINDOWS\system32\Logs
A
Correct answer
Explanation
In Windows Server 2003, the default IIS log location is C:\WINDOWS\system32\LogFiles\W3SVC1, where W3SVC1 represents the default website's instance ID. Each website has its own W3SVC# subdirectory. The path structure is consistent across IIS 6.0 installations.
-
ITS A DUMMY RULE
-
TO BALANCE THE EXTRACTION AND LOADING PROCESS
-
EASY TO MAINTAIN
-
TO RESOLVE THE PERFORMANCE ISSUES
B,D
Correct answer
Explanation
Flat files are used in ETL processes to balance the extraction and loading operations (staging area concept) and to resolve performance issues by providing an intermediate storage format that can be processed efficiently. They are not a dummy rule, and ease of maintenance is not their primary technical purpose.
-
C:\WINDOWS\system32\LogFiles\W3SVC1
-
C:\WINDOWS\LogFiles\W3SVC1
-
C:\inetpub\LogFiles\W3SVC1
-
C:\inetpub\wwwroot\LogFiles\W3SVC1
A
Correct answer
Explanation
IIS log files are stored by default in the system directory under LogFiles. For IIS 7 and later versions, the path C:\WINDOWS\system32\LogFiles\W3SVC1 is correct, where W3SVC1 represents the website identifier.
-
None
-
file <exefile>
-
./a.out
-
strings <exefile>
D
Correct answer
Explanation
The strings command extracts and displays printable ASCII/Unicode strings from binary files, making it ideal for examining compiled executables to see embedded text, error messages, and configuration paths without executing code. file command only shows file type, ./a.out executes the binary, and None is meaningless.
-
On the file system
-
In a repository
-
In a database
-
All the above
-
getSharedPreferences()
-
getPreferences()
-
openFileOutput()
-
putBoolean()
C
Correct answer
Explanation
In Android, openFileOutput() is the standard Context method used to open and write a private file associated with the application's internal storage. getSharedPreferences() and getPreferences() access preference files, while putBoolean() writes boolean preferences.