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

Multiple choice technology databases
  1. FCLOSE

  2. GET_LINE

  3. IS_OPEN

  4. 1,2

  5. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The INVALID_FILEHANDLE exception is raised by UTL_FILE procedures like FCLOSE and GET_LINE when they receive an invalid or uninitialized file handle. Conversely, the IS_OPEN function evaluates whether a handle is open and returns a boolean value instead of raising this exception, making the combination 1,2 correct.

Multiple choice technology databases
  1. INVALID_OFFSET

  2. VALUE_ERROR

  3. ACCESS_DENIED

  4. INVALID_MAXLINE_SIZE

  5. INVALID_FILENAME

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

INVALID_MAXLINE_SIZE is a valid UTL_FILE exception raised when the MAX_LINESIZE parameter in FOPEN or FOPEN_NCHAR exceeds implementation limits. Other valid exceptions include INVALID_PATH, INVALID_MODE, INVALID_FILEHANDLE, and WRITE_ERROR, but INVALID_OFFSET, VALUE_ERROR, and ACCESS_DENIED are not standard UTL_FILE exceptions.

Multiple choice technology databases
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

UTL_FILE can read files on Windows systems, but only if the Oracle database server is running on Windows and the directory is properly configured in the DIRECTORY object and utl_file_dir parameter. The question likely tests whether you understand UTL_FILE operates server-side, not client-side, so it depends on the server OS, not the client environment.

Multiple choice technology mainframe
  1. 10

  2. 40

  3. 30

  4. 15

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

SFT outbox retention period is set to 30 days as a standard configuration. This balances the need for audit trails with storage management - keeping files long enough for troubleshooting but not indefinitely. The other options (10, 15, 40) are not standard SFT retention values.

Multiple choice technology mainframe
  1. &TXLATE=YES and &TDATTYP=TEXT

  2. &TXLATE=YES and &TDATTYP=BINARY

  3. &TXLATE=NO and &TDATTYP=TEXT

  4. &TXLATE=NO and &TDATTYP=BINARY

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

For binary mode file transmission via SFT (Secure File Transfer), you must disable translation (&TXLATE=NO) and specify the data type as binary (&TDATTYP=BINARY). Translation converts data between character sets (e.g., EBCDIC to ASCII), which would corrupt binary files. The other combinations either enable translation when binary is needed or specify TEXT type incorrectly.

Multiple choice technology mainframe
  1. Lower case characters

  2. Spaces

  3. Numbers

  4. Semi Colon

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Secure File Transfer (SFT) protocols and automated scripts typically restrict spaces in filenames. Spaces cause parsing errors, unexpected truncation, or command execution failures in script arguments. Lower case characters, numbers, and semicolons are generally allowed or handled more safely, making spaces the primary prohibited character here.

Multiple choice technology operating systems
  1. 666

  2. 777

  3. 755

  4. 766

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Perl programs need execute permission to run directly. The common permission scheme is 755 (rwxr-xr-x): owner can read/write/execute, group/others can read/execute. 777 gives write permission to everyone which is a security risk. 666 is read/write for all with no execute permission - not executable. 766 is unusual and gives write to group/others.

Multiple choice technology
  1. xmlstore

  2. com

  3. sites

  4. config

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In Genesys applications, the config folder conventionally contains configuration files including properties files that define system behavior, database connections, and environment settings. The xmlstore folder stores XML templates, com contains Java packages, and sites typically holds site-specific configurations.

Multiple choice technology operating systems
  1. This gives the file read/write by the owner and only read by everyone else

  2. This gives the file read/execute by the owner and only read by everyone else

  3. This gives the file read/write by the owner and only execute by everyone else

  4. This gives the file read/write/execute by the owner and only execute by everyone else

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

chmod 644 sets permissions as: owner gets read (4) + write (2) = 6, group gets read (4) = 4, others get read (4) = 4. This results in read/write for owner and read-only for everyone else. Execute permission would require adding 1 to the octal value.

Multiple choice technology operating systems
  1. Uncompress the file myfile.gz

  2. compress the file myfile.gz and if the uncompressed file(s) already exist force an overwrite

  3. Uncompress the file myfile.gz and if the uncompressed file(s) already exist force an overwrite

  4. compress the file myfile.gz

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The gunzip command is used to decompress gzip files. Applying the -f or --force option forces decompression and overwrites any existing uncompressed files with the same name without prompting, whereas the other options incorrectly suggest that this command performs file compression.

Multiple choice technology web technology
  1. Get

  2. Post

  3. Both Get and Post

  4. There is no direct way for larger form. You need to store them in a file and retrieve

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

POST is designed for larger form submissions because it sends data in the request body without size limitations imposed by URLs. GET has length restrictions due to URL limits. Option A is wrong because GET isn't suitable for large data. Option C is incorrect because POST is specifically suitable. Option D is unnecessary - POST handles this directly.

Multiple choice technology web technology
  1. W

  2. W+

  3. A

  4. A+

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The 'a' mode in fopen() opens a file for writing only, positions the pointer at the end, and creates the file if it doesn't exist. 'w' truncates the file, not append. 'w+' allows both read and write but truncates. 'a+' allows both reading and writing without truncating, starting at the end. Therefore 'a' matches the description exactly.

Multiple choice technology web technology
  1. allow_url_fopen

  2. allow_remote_files

  3. both of above

  4. none of above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

allow_url_fopen is the php.ini directive that enables PHP to open remote files using functions like fopen() with URLs. allow_remote_files is not a valid PHP directive. Option A is the correct configuration setting. Option B doesn't exist. Option C is incorrect because 'allow_remote_files' is not a real setting.